CVE catalog

CVE-2026-78367

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 membe

[CVE catalog]

Severity
High · CVSS 7CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.20% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianrpmsid6.1.0-1vulnerable
Debianrpmforky6.1.0-1vulnerable
Debianrpmtrixie4.20.1+dfsg-3vulnerable
Debianrpmbookworm4.18.0+dfsg-1+deb12u1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianrpmsourcesid(unfixed)not yet assignedNot reported[1145876]
Debianrpmsourceforky(unfixed)not yet assignedNot reported[1145876]
Debianrpmsourcetrixie(unfixed)not yet assignedNot reported[1145876]
Debianrpmsourcebookworm(unfixed)not yet assignedNot reported[1145876]

[Debian bug #1145876]

Notes

[trixie] rpm: Minor issue [bookworm] rpm: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [librpm9]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [librpmbuild9]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [librpm-dev]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [librpmio9]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [librpmsign9]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [python3-rpm]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [rpm]Affected
    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [rpm2cpio]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [rpm-common]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · rpm · debian · bookworm

  • [rpm-i18n]Affected

    Source package: [rpm]

    Details (2)
    • 4.18.0+dfsg-1+deb12u1 · all · bookworm

      Affected

      nvd · rpm · debian · bookworm

    • 4.18.0+dfsg-1+deb12u1 · all · bookworm

      Affected

      nvd · rpm · debian · bookworm

Observed:

References