PoC Monitor
← All CVEs
CVE-2026-78367published 24 Aug 2026 13:48 UTCData: JSON · API

Red Hat

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).

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.0high · scored by CNA · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Red Hat Red Hat Enterprise Linux 10

    Fixed in 0:4.19.1.1-29.el10_3

    Red Hat Red Hat Enterprise Linux 10.2 Extended Update Support

      Fixed in 0:4.19.1.1-23.el10_2.3

      Red Hat Red Hat Enterprise Linux 8

        Fixed in 0:4.14.3-34.el8_10

        Red Hat Red Hat Enterprise Linux 8

          Fixed in 0:4.14.3-34.el8_10

          Red Hat Red Hat Enterprise Linux 9

            Fixed in 0:4.16.1.3-43.el9_9

            Red Hat Red Hat Enterprise Linux 9

              Fixed in 0:4.16.1.3-43.el9_9

              Red Hat Red Hat Enterprise Linux 9.8 Extended Update Support

                Fixed in 0:4.16.1.3-40.el9_8.3

                Red Hat Red Hat Hardened Images

                  Fixed in 6.1.0-1.3.hum1

                  Mitigation

                  Upgrade Red Hat Enterprise Linux 10 to 0:4.19.1.1-29.el10_3 or later.

                  Upgrade Red Hat Enterprise Linux 10.2 Extended Update Support to 0:4.19.1.1-23.el10_2.3 or later.

                  Upgrade Red Hat Enterprise Linux 8 to 0:4.14.3-34.el8_10 or later.

                  Upgrade Red Hat Enterprise Linux 8 to 0:4.14.3-34.el8_10 or later.

                  Upgrade Red Hat Enterprise Linux 9 to 0:4.16.1.3-43.el9_9 or later.

                  Upgrade Red Hat Enterprise Linux 9 to 0:4.16.1.3-43.el9_9 or later.

                  Upgrade Red Hat Enterprise Linux 9.8 Extended Update Support to 0:4.16.1.3-40.el9_8.3 or later.

                  Upgrade Red Hat Hardened Images to 6.1.0-1.3.hum1 or later.

                  Workaround

                  Do not process untrusted tarballs with rpmbuild -ta/-tb/-ts. Extract and inspect archives first (reject member names containing }, %, or {), or build from a reviewed .spec outside tarball mode. Prefer isolated builders (mock/container) for any untrusted packaging related work.

                  References

                  3 more

                  Timeline

                  Days relative to CVE publication
                  -2t=0+2+4+6+8CVE published24 Aug 2026 · t = 0

                  No public PoC found yet; not in CISA KEV.

                  PoC repositories

                  Found on GitHub.

                  No PoC repositories found yet.