CVE-2026-78367: rpmbuild - Remote Code Execution
- Cve: CVE-2026-78367
- Name: rpmbuild - Remote Code Execution
- Description: A vulnerability was found in RPM's rpmbuild tarball processing. When processing a crafted source archive, the getTarSpec() function in tools/rpmbuild.cc passes an attacker-controlled tar archive member name to rpmExpand() as part of a %{basename:...} macro expression. A specially crafted .spec member name can therefore inject RPM macros, including Lua expressions, resulting in arbitrary code execution with the privileges of the user running rpmbuild. This can be exploited when a victim or automated build system processes an attacker-controlled source tarball using rpmbuild tarball mode (such as -ts, -ta, or -tb).
- Impact: Remote attackers can execute arbitrary code on the system by tricking users into building malicious tarballs.
- Remediation: Update rpmbuild to the latest version.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker must convince user to build a malicious tarball.
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.0026
- Epss percentile: 0.17855
- Assignee: [email protected]
- Published at: 2026-08-24T14:17:04Z
- Age in days: 92
- Modified at: 2026-11-23T11:17:00Z
- References total: 9
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-78367
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gnome:libgepub | all versions | no | cna_alias | /v1/products/gnome/libgepub |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rpm-software-management/rpm | fix, issues | yes | /v1/repositories/rpm-software-management/rpm |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts