CVE-2026-78367
Rpm: rpmbuild gettarspec() crafted tar member name → macro injection
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).
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.0
Rpm: rpmbuild gettarspec() crafted tar member name → macro injection
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).
- Record
CVE-2026-78367- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-94
- Updated
- 2026-11-06
EUVDEUVD-2026-64885
7.0
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).
- Record
EUVD-2026-64885- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-06
GitHub AdvisoriesGHSA-pghw-ch4m-h3f9
7.0
A flaw was found in rpmbuild. When rpmbuild processes a crafted tarball in tarball mode, a...
A flaw was found in rpmbuild. When rpmbuild processes a crafted tarball in tarball mode, a specially designed tar member name can lead to macro injection. This vulnerability allows a remote attacker to execute arbitrary code on the system by convincing a user to build a malicious tarball.
- Record
GHSA-pghw-ch4m-h3f9- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-74, CWE-94
- Updated
- 2026-11-02
NVD
7.0
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).
- Record
CVE-2026-78367- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-94
- Updated
- 2026-11-06
OSVDEBIAN-CVE-2026-78367
7.0
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).
- Record
DEBIAN-CVE-2026-78367- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-07
OSVOESA-2026-3860
7.0
rpm security update
The RPM Package Manager (RPM) is a powerful package management system capability as below
Security Fix(es):
A flaw was found in rpmbuild. When rpmbuild processes a crafted tarball in tarball mode, a specially designed tar member name can lead to macro injection. This vulnerability allows a remote attacker to execute arbitrary code on the system by convincing a user to build a malicious tarball.(CVE-2026-78367)
- Record
OESA-2026-3860- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVOESA-2026-3861
7.0
rpm security update
The RPM Package Manager (RPM) is a powerful package management system capability as below
Security Fix(es):
A flaw was found in rpmbuild. When rpmbuild processes a crafted tarball in tarball mode, a specially designed tar member name can lead to macro injection. This vulnerability allows a remote attacker to execute arbitrary code on the system by convincing a user to build a malicious tarball.(CVE-2026-78367)
- Record
OESA-2026-3861- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-3862
7.0
rpm security update
The RPM Package Manager (RPM) is a powerful package management system capability as below
Security Fix(es):
A flaw was found in rpmbuild. When rpmbuild processes a crafted tarball in tarball mode, a specially designed tar member name can lead to macro injection. This vulnerability allows a remote attacker to execute arbitrary code on the system by convincing a user to build a malicious tarball.(CVE-2026-78367)
- Record
OESA-2026-3862- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-3863
7.0
rpm security update
The RPM Package Manager (RPM) is a powerful package management system capability as below
Security Fix(es):
A flaw was found in rpmbuild. When rpmbuild processes a crafted tarball in tarball mode, a specially designed tar member name can lead to macro injection. This vulnerability allows a remote attacker to execute arbitrary code on the system by convincing a user to build a malicious tarball.(CVE-2026-78367)
- Record
OESA-2026-3863- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-3928
7.0
rpm security update
The RPM Package Manager (RPM) is a powerful package management system capability as below
Security Fix(es):
A flaw was found in rpmbuild. When rpmbuild processes a crafted tarball in tarball mode, a specially designed tar member name can lead to macro injection. This vulnerability allows a remote attacker to execute arbitrary code on the system by convincing a user to build a malicious tarball.(CVE-2026-78367)
- Record
OESA-2026-3928- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2026:82378
7.8
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
- Record
RHSA-2026:82378- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-78367
7.0
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).
- Record
UBUNTU-CVE-2026-78367- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1792688613 No score
rpm: Fix of 3 CVEs
- CVE-2026-95519: do not macro expand manifest entries and package paths in rpmgi before opening them
- CVE-2026-95521: do not macro expand source package file basenames when installing or rebuilding a source RPM
- CVE-2026-78367: do not macro expand the spec file name when parsing a spec, such as one taken from a tarball by rpmbuild -t
- Record
CLSA-2026-1792688613- Updated
- 2026-11-02
OSVCLSA-2026-1792689108 No score
rpm: Fix of 3 CVEs
- CVE-2026-95519: do not macro expand manifest entries and package paths in rpmgi before opening them
- CVE-2026-95521: do not macro expand source package file basenames when installing or rebuilding a source RPM
- CVE-2026-78367: do not macro expand the spec file name when parsing a spec, such as one taken from a tarball by rpmbuild -t
- Record
CLSA-2026-1792689108- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
rpmTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-apidocsTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-buildTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-build-libsTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-cronTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-develTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-libsTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-plugin-systemd-inhibitTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-pythonTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-signTuxCare:OracleLinux:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
Show 46 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rpmTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-apidocsTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-buildTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-build-libsTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-cronTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-develTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-libsTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-plugin-systemd-inhibitTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-pythonTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpm-signTuxCare:RHEL:7 From an advisory covering 3 CVEs |
before 4.11.3-48.0.3.el7_9.tuxcare.els2 | 4.11.3-48.0.3.el7_9.tuxcare.els2 |
rpmDebian:12 |
All versions, plus listed versions 4.18.0+dfsg-14.18.0+dfsg-1+deb12u14.18.2+dfsg-14.18.2+dfsg-1.1~exp14.18.2+dfsg-2 Show 15 moreShow less4.18.2+dfsg-2.14.18.2+dfsg-2.1~exp14.19.1.1+dfsg-14.19.1.1+dfsg-1~exp4.20.0+dfsg-14.20.0+dfsg-24.20.0+dfsg-34.20.0+dfsg-44.20.1+dfsg-14.20.1+dfsg-24.20.1+dfsg-36.0.0-16.0.0-26.0.1-16.1.0-1 |
None known |
rpmDebian:13 |
All versions, plus listed versions 4.20.1+dfsg-36.0.0-16.0.0-26.0.1-16.1.0-1 |
None known |
rpmDebian:14 |
All versions, plus listed versions 4.20.1+dfsg-36.0.0-16.0.0-26.0.1-16.1.0-1 |
None known |
rpmopenEuler:20.03-LTS-SP4 |
before 4.15.1-66.oe2003sp4 | 4.15.1-66.oe2003sp4 |
rpmopenEuler:22.03-LTS-SP4 |
before 4.17.0-53.oe2203sp4 | 4.17.0-53.oe2203sp4 |
rpmopenEuler:24.03-LTS-SP1 |
before 4.18.2-41.oe2403sp1 | 4.18.2-41.oe2403sp1 |
rpmopenEuler:24.03-LTS-SP4 |
before 4.18.2-41.oe2403sp4 | 4.18.2-41.oe2403sp4 |
rpmopenEuler:24.03-LTS-SP3 |
before 4.18.2-41.oe2403sp3 | 4.18.2-41.oe2403sp3 |
python3-rpmRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpmRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-apidocsRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-buildRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-build-libsRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-cronRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-develRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-libsRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-auditRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-dbus-announceRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-fapolicydRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-fsverityRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-imaRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-prioresetRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-selinuxRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-syslogRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-systemd-inhibitRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-plugin-unshareRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-signRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpm-sign-libsRed Hat:hummingbird:1 From an advisory covering 3 CVEs |
before 0:6.1.0-1.3.hum1 | 0:6.1.0-1.3.hum1 |
rpmUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 4.11.1-24.11.1-34.11.1-3ubuntu0.14.11.1-3ubuntu0.1+esm1 |
None known |
rpmUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 4.12.0.1+dfsg1-3build24.12.0.1+dfsg1-3build34.12.0.1+dfsg1-3ubuntu0.1~esm1 |
None known |
rpmUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 4.12.0.2+dfsg1-2build24.14.0+dfsg1-24.14.1+dfsg1-24.14.1+dfsg1-2ubuntu0.1~esm1 |
None known |
rpmUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 4.14.2.1+dfsg1-14.14.2.1+dfsg1-1build14.14.2.1+dfsg1-1build24.14.2.1+dfsg1-1ubuntu0.1~esm1 |
None known |
rpmUbuntu:22.04:LTS |
All versions, plus listed versions 4.16.1.2+dfsg1-3ubuntu14.16.1.2+dfsg1-3ubuntu34.17.0+dfsg1-14.17.0+dfsg1-34.17.0+dfsg1-44.17.0+dfsg1-4build1 |
None known |
rpmUbuntu:24.04:LTS |
All versions, plus listed versions 4.18.0+dfsg-1build14.18.0+dfsg-1build24.18.2+dfsg-14.18.2+dfsg-24.18.2+dfsg-2.1build14.18.2+dfsg-2.1build2 |
None known |
rpmUbuntu:26.10 |
All versions, plus listed versions 6.0.1-1build16.1.0-1 |
None known |
rpmUbuntu:26.04:LTS |
All versions, plus listed versions 4.20.1+dfsg-36.0.0-26.0.1-16.0.1-1build1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, products | CVE List, EUVD, NVD | |
| facts | CVE List, EUVD | |
| affected, aliases, references | CVE List | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-78367 is a high vulnerability (CVSS 7.0) in Red Hat Enterprise Linux 10, published August 24, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.20%, the 9th percentile. Fixed in rpm 4.15.1-66.oe2003sp4.
References
access.redhat.com/errata/RHSA-2026:82378
access.redhat.com/security/cve/CVE-2026-78367
bugzilla.redhat.com/show_bug.cgi?id=2521857
github.com/rpm-software-management/rpm/issues/4314
nvd.nist.gov/vuln/detail/CVE-2026-78367
github.com/advisories/GHSA-pghw-ch4m-h3f9
Show 23 moreShow less
errata.tuxcare.com/els_os/oraclelinux7els/CLSA-2026-1792688613.html
nvd.nist.gov/vuln/detail/CVE-2026-95519
nvd.nist.gov/vuln/detail/CVE-2026-95521
errata.tuxcare.com/els_os/rhel7els/CLSA-2026-1792689108.html
security-tracker.debian.org/tracker/CVE-2026-78367
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-3860
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-3861
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-3862
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-3863
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-3928
access.redhat.com/security/cve/CVE-2026-84837
access.redhat.com/security/cve/CVE-2026-84838
access.redhat.com/security/updates/classification
images.redhat.com
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_82378.json
cve.org/CVERecord?id=CVE-2026-78367
bugzilla.redhat.com/show_bug.cgi?id=2478408
cve.org/CVERecord?id=CVE-2026-84837
nvd.nist.gov/vuln/detail/CVE-2026-84837
bugzilla.redhat.com/show_bug.cgi?id=2462222
cve.org/CVERecord?id=CVE-2026-84838
nvd.nist.gov/vuln/detail/CVE-2026-84838
ubuntu.com/security/CVE-2026-78367