Description
A heap-based buffer overflow flaw was found in rpm. Parsing a symlink entry in an untrusted RPM package whose declared RPMTAG_LONGFILESIZES value is 0xFFFFFFFFFFFFFFFF causes an integer overflow in iterReadArchiveNext() that shrinks a buffer allocation to one byte, after which the payload's independently-controlled cpio filesize field is used to write attacker-controlled data past the end of that allocation. This is reachable via rpm2cpio, rpm2archive, and rpm -qlvp on an untrusted package.
Published: 2026-09-29
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote code execution
Action: Patch immediately
AI Analysis

Impact

A heap‑based buffer overflow in rpm occurs when parsing a symlink entry in an untrusted RPM package whose declared RPMTAG_LONGFILESIZES value is 0xFFFFFFFFFFFFFFFF. The integer overflow in iterReadArchiveNext() reduces the allocated buffer to one byte, and an attacker‑controlled cpio file‑size field is then used to write beyond the end of that allocation. This flaw is reachable through rpm2cpio, rpm2archive, and rpm -qlvp when processing an untrusted package, enabling an attacker to potentially execute arbitrary code on the system.

Affected Systems

The vulnerability affects Red Hat Enterprise Linux releases 6, 7, 8, 9 and 10, as well as Red Hat Hardened Images. Any host running an affected rpm version in these distributions is at risk.

Risk and Exploitability

The CVSS score of 7.1 indicates a medium‑to‑high severity flaw. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local or remote use of rpm utilities to process an untrusted RPM package; systems that automatically handle user‑supplied RPMs or run rpm commands on external input are most exposed.

Generated by OpenCVE AI on September 30, 2026 at 03:13 UTC.

Remediation

Vendor Workaround

To reduce exposure, avoid processing or extracting RPM packages from untrusted sources. Do not use `rpm2cpio`, `rpm2archive`, or `rpm -qlvp` on RPM files whose origin and integrity cannot be verified.


OpenCVE Recommended Actions

  • Apply the latest Red Hat rpm package update that addresses CVE‑2026‑95520
  • If an update cannot be applied immediately, avoid processing or extracting RPM files from untrusted sources
  • Disallow or limit the use of rpm2cpio, rpm2archive, and rpm -qlvp on untrusted packages until a patch is installed

Generated by OpenCVE AI on September 30, 2026 at 03:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 29 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Description A heap-based buffer overflow flaw was found in rpm. Parsing a symlink entry in an untrusted RPM package whose declared RPMTAG_LONGFILESIZES value is 0xFFFFFFFFFFFFFFFF causes an integer overflow in iterReadArchiveNext() that shrinks a buffer allocation to one byte, after which the payload's independently-controlled cpio filesize field is used to write attacker-controlled data past the end of that allocation. This is reachable via rpm2cpio, rpm2archive, and rpm -qlvp on an untrusted package.
Title Rpm: rpm: integer overflow in iterreadarchivenext() leads to heap-based buffer overflow when parsing untrusted rpm packages
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-787
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'}

threat_severity

Moderate


Subscriptions

Redhat Enterprise Linux Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-09-29T13:19:42.202Z

Reserved: 2026-09-22T08:44:44.967Z

Link: CVE-2026-95520

cve-icon Vulnrichment

Updated: 2026-09-29T13:17:50.012Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-29T12:17:12.650

Modified: 2026-09-29T21:29:07.663

Link: CVE-2026-95520

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-29T10:54:13Z

Links: CVE-2026-95520 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T03:15:16Z

Weaknesses