rpm — security advisory
A command injection flaw was found in rpm. Installing or rebuilding a source RPM whose source or spec file basenames contain a %() macro construct causes rpm to execute an attacker-controlled shell command via popen() while relocating the source file list. This allows arbitrary command execution as the invoking (typically non-root) user, simply by installing, rebuilding, or otherwise processing an untrusted .src.rpm.
- Products
- rpm
- Affected versions
- 4.11.1-2, 4.11.1-3, 4.11.1-3ubuntu0.1, 4.11.1-3ubuntu0.1+esm1, 4.12.0.1+dfsg1-3build2, 4.12.0.1+dfsg1-3build3, 4.12.0.1+dfsg1-3ubuntu0.1~esm1, 4.12.0.2+dfsg1-2build2, 4.14.0+dfsg1-2, 4.14.1+dfsg1-2, 4.14.1+dfsg1-2ubuntu0.1~esm1, 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, 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, 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, 4.20.1+dfsg-3, 6.0.0-2, 6.0.1-1, 6.0.1-1build1, 6.1.0-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-95521
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:34 UTC · Revision 1
Source evidence
A command injection flaw was found in rpm. Installing or rebuilding a source RPM whose source or spec file basenames contain a %() macro construct causes rpm to execute an attacker-controlled shell command via popen() while relocating the source file list. This allows arbitrary command execution as the invoking (typically non-root) user, simply by installing, rebuilding, or otherwise processing an untrusted .src.rpm.
osv:UBUNTU-CVE-2026-95521
rpm
Fixed versions: Not specified
rpm
Fixed versions: Not specified
rpm
Fixed versions: Not specified
rpm
Fixed versions: Not specified
rpm
Fixed versions: Not specified
rpm
Fixed versions: Not specified
rpm
Fixed versions: Not specified
rpm
Fixed versions: Not specified
Complete source record
{
"id": "6a9edb1dffffc18a0a7ecede05ded8f389a60fff62225ef3c27fc3cdc5220533",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-95521",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-95521",
"summary": "A command injection flaw was found in rpm. Installing or rebuilding a source RPM whose source or spec file basenames contain a %() macro construct causes rpm to execute an attacker-controlled shell command via popen() while relocating the source file list. This allows arbitrary command execution as the invoking (typically non-root) user, simply by installing, rebuilding, or otherwise processing an untrusted .src.rpm.",
"evidence": "osv:UBUNTU-CVE-2026-95521",
"products": [
{
"name": {
"value": "rpm",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.11.1-2",
"evidence": "/affected/0/versions"
},
{
"value": "4.11.1-3",
"evidence": "/affected/0/versions"
},
{
"value": "4.11.1-3ubuntu0.1",
"evidence": "/affected/0/versions"
},
{
"value": "4.11.1-3ubuntu0.1+esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rpm",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.12.0.1+dfsg1-3build2",
"evidence": "/affected/1/versions"
},
{
"value": "4.12.0.1+dfsg1-3build3",
"evidence": "/affected/1/versions"
},
{
"value": "4.12.0.1+dfsg1-3ubuntu0.1~esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rpm",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.12.0.2+dfsg1-2build2",
"evidence": "/affected/2/versions"
},
{
"value": "4.14.0+dfsg1-2",
"evidence": "/affected/2/versions"
},
{
"value": "4.14.1+dfsg1-2",
"evidence": "/affected/2/versions"
},
{
"value": "4.14.1+dfsg1-2ubuntu0.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "rpm",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.14.2.1+dfsg1-1",
"evidence": "/affected/3/versions"
},
{
"value": "4.14.2.1+dfsg1-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "4.14.2.1+dfsg1-1build2",
"evidence": "/affected/3/versions"
},
{
"value": "4.14.2.1+dfsg1-1ubuntu0.1~esm1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "rpm",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.16.1.2+dfsg1-3ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "4.16.1.2+dfsg1-3ubuntu3",
"evidence": "/affected/4/versions"
},
{
"value": "4.17.0+dfsg1-1",
"evidence": "/affected/4/versions"
},
{
"value": "4.17.0+dfsg1-3",
"evidence": "/affected/4/versions"
},
{
"value": "4.17.0+dfsg1-4",
"evidence": "/affected/4/versions"
},
{
"value": "4.17.0+dfsg1-4build1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "rpm",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.18.0+dfsg-1build1",
"evidence": "/affected/5/versions"
},
{
"value": "4.18.0+dfsg-1build2",
"evidence": "/affected/5/versions"
},
{
"value": "4.18.2+dfsg-1",
"evidence": "/affected/5/versions"
},
{
"value": "4.18.2+dfsg-2",
"evidence": "/affected/5/versions"
},
{
"value": "4.18.2+dfsg-2.1build1",
"evidence": "/affected/5/versions"
},
{
"value": "4.18.2+dfsg-2.1build2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "rpm",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.0.1-1build1",
"evidence": "/affected/6/versions"
},
{
"value": "6.1.0-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "rpm",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.20.1+dfsg-3",
"evidence": "/affected/7/versions"
},
{
"value": "6.0.0-2",
"evidence": "/affected/7/versions"
},
{
"value": "6.0.1-1",
"evidence": "/affected/7/versions"
},
{
"value": "6.0.1-1build1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-95521",
"aliases": [
"UBUNTU-CVE-2026-95521"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm?arch=source&distro=trusty%2Fesm",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"versions": [
"4.11.1-2",
"4.11.1-3",
"4.11.1-3ubuntu0.1",
"4.11.1-3ubuntu0.1+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-95521.json"
},
"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"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"4.12.0.1+dfsg1-3build2",
"4.12.0.1+dfsg1-3build3",
"4.12.0.1+dfsg1-3ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-95521.json"
},
"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"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"4.12.0.2+dfsg1-2build2",
"4.14.0+dfsg1-2",
"4.14.1+dfsg1-2",
"4.14.1+dfsg1-2ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-95521.json"
},
"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"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-95521.json"
},
"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"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-95521.json"
},
"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"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-95521.json"
},
"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"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"6.0.1-1build1",
"6.1.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-95521.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librpm10",
"binary_version": "6.1.0-1"
},
{
"binary_name": "librpmbuild10",
"binary_version": "6.1.0-1"
},
{
"binary_name": "librpmio10",
"binary_version": "6.1.0-1"
},
{
"binary_name": "librpmsign10",
"binary_version": "6.1.0-1"
},
{
"binary_name": "python3-rpm",
"binary_version": "6.1.0-1"
},
{
"binary_name": "rpm",
"binary_version": "6.1.0-1"
},
{
"binary_name": "rpm-common",
"binary_version": "6.1.0-1"
},
{
"binary_name": "rpm2cpio",
"binary_version": "6.1.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rpm",
"purl": "pkg:deb/ubuntu/rpm?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"4.20.1+dfsg-3",
"6.0.0-2",
"6.0.1-1",
"6.0.1-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-95521.json"
},
"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"
}
]
}
}
],
"modified": "2026-10-17T13:01:19.556420938Z",
"provider": "osv",
"upstream": [
"CVE-2026-95521"
],
"references": [
"https://ubuntu.com/security/CVE-2026-95521",
"https://www.cve.org/CVERecord?id=CVE-2026-95521"
]
},
"related_cves": [
{
"value": "CVE-2026-95521",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 361683,
"published_at": "2026-09-24T14:18:00+00:00"
}