ubuntu-cve-2026-78367
Vulnerability from osv_ubuntu
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).
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "debugedit",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "librpm3",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "librpmbuild3",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "librpmio3",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "librpmsign1",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "python-rpm",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "rpm",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "rpm-common",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "rpm-i18n",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
},
{
"binary_name": "rpm2cpio",
"binary_version": "4.11.1-3ubuntu0.1+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:14.04:LTS",
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm@4.11.1-3ubuntu0.1+esm1?arch=source\u0026distro=trusty/esm"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.11.1-2",
"4.11.1-3",
"4.11.1-3ubuntu0.1",
"4.11.1-3ubuntu0.1+esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "debugedit",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "librpm3",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "librpmbuild3",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "librpmio3",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "librpmsign3",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "python-rpm",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "python3-rpm",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "rpm",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "rpm-common",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "rpm-i18n",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
},
{
"binary_name": "rpm2cpio",
"binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm@4.12.0.1+dfsg1-3ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.12.0.1+dfsg1-3build2",
"4.12.0.1+dfsg1-3build3",
"4.12.0.1+dfsg1-3ubuntu0.1~esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "debugedit",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "librpm8",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "librpmbuild8",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "librpmio8",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "librpmsign8",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "python-rpm",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "python3-rpm",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "rpm",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "rpm-common",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "rpm-i18n",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
},
{
"binary_name": "rpm2cpio",
"binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm@4.14.1+dfsg1-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.12.0.2+dfsg1-2build2",
"4.14.0+dfsg1-2",
"4.14.1+dfsg1-2",
"4.14.1+dfsg1-2ubuntu0.1~esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "debugedit",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "librpm8",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "librpmbuild8",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "librpmio8",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "librpmsign8",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "python-rpm",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "python3-rpm",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "rpm",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "rpm-common",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "rpm-i18n",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
},
{
"binary_name": "rpm2cpio",
"binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm@4.14.2.1+dfsg1-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.14.2.1+dfsg1-1",
"4.14.2.1+dfsg1-1build1",
"4.14.2.1+dfsg1-1build2",
"4.14.2.1+dfsg1-1ubuntu0.1~esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librpm9",
"binary_version": "4.17.0+dfsg1-4build1"
},
{
"binary_name": "librpmbuild9",
"binary_version": "4.17.0+dfsg1-4build1"
},
{
"binary_name": "librpmio9",
"binary_version": "4.17.0+dfsg1-4build1"
},
{
"binary_name": "librpmsign9",
"binary_version": "4.17.0+dfsg1-4build1"
},
{
"binary_name": "python3-rpm",
"binary_version": "4.17.0+dfsg1-4build1"
},
{
"binary_name": "rpm",
"binary_version": "4.17.0+dfsg1-4build1"
},
{
"binary_name": "rpm-common",
"binary_version": "4.17.0+dfsg1-4build1"
},
{
"binary_name": "rpm-i18n",
"binary_version": "4.17.0+dfsg1-4build1"
},
{
"binary_name": "rpm2cpio",
"binary_version": "4.17.0+dfsg1-4build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm@4.17.0+dfsg1-4build1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.16.1.2+dfsg1-3ubuntu1",
"4.16.1.2+dfsg1-3ubuntu3",
"4.17.0+dfsg1-1",
"4.17.0+dfsg1-3",
"4.17.0+dfsg1-4",
"4.17.0+dfsg1-4build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librpm9t64",
"binary_version": "4.18.2+dfsg-2.1build2"
},
{
"binary_name": "librpmbuild9t64",
"binary_version": "4.18.2+dfsg-2.1build2"
},
{
"binary_name": "librpmio9t64",
"binary_version": "4.18.2+dfsg-2.1build2"
},
{
"binary_name": "librpmsign9t64",
"binary_version": "4.18.2+dfsg-2.1build2"
},
{
"binary_name": "python3-rpm",
"binary_version": "4.18.2+dfsg-2.1build2"
},
{
"binary_name": "rpm",
"binary_version": "4.18.2+dfsg-2.1build2"
},
{
"binary_name": "rpm-common",
"binary_version": "4.18.2+dfsg-2.1build2"
},
{
"binary_name": "rpm-i18n",
"binary_version": "4.18.2+dfsg-2.1build2"
},
{
"binary_name": "rpm2cpio",
"binary_version": "4.18.2+dfsg-2.1build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm@4.18.2+dfsg-2.1build2?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.18.0+dfsg-1build1",
"4.18.0+dfsg-1build2",
"4.18.2+dfsg-1",
"4.18.2+dfsg-2",
"4.18.2+dfsg-2.1build1",
"4.18.2+dfsg-2.1build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librpm10",
"binary_version": "6.0.1-1build1"
},
{
"binary_name": "librpmbuild10",
"binary_version": "6.0.1-1build1"
},
{
"binary_name": "librpmio10",
"binary_version": "6.0.1-1build1"
},
{
"binary_name": "librpmsign10",
"binary_version": "6.0.1-1build1"
},
{
"binary_name": "python3-rpm",
"binary_version": "6.0.1-1build1"
},
{
"binary_name": "rpm",
"binary_version": "6.0.1-1build1"
},
{
"binary_name": "rpm-common",
"binary_version": "6.0.1-1build1"
},
{
"binary_name": "rpm2cpio",
"binary_version": "6.0.1-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm@6.0.1-1build1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.20.1+dfsg-3",
"6.0.0-2",
"6.0.1-1",
"6.0.1-1build1"
]
}
],
"aliases": [],
"details": "A vulnerability was found in RPM\u0027s 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).",
"id": "UBUNTU-CVE-2026-78367",
"modified": "2026-09-02T16:27:47Z",
"published": "2026-08-24T14:17:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-78367"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-78367"
},
{
"type": "REPORT",
"url": "https://github.com/rpm-software-management/rpm/issues/4314"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-78367"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.