CVE-2026-95520

Rpm: rpm: integer overflow in iterreadarchivenext() leads to heap-based buffer overflow when parsing untrusted rpm packages

Published Sep 29, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
First Time appeared Red Hat
Red Hat enterprise Linux
Redhat hardened Images
Rpm
Rpm rpm
Vendors & Products Red Hat
Red Hat enterprise Linux
Redhat hardened Images
Rpm
Rpm rpm
Type Values Removed Values Added
First Time appeared Redhat openshift Ai
CPEs cpe:/a:redhat:openshift_ai
Vendors & Products Redhat openshift Ai
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs 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
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
Metrics ssvc

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

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 13, 2026, 1:33 PM
Reserved
Sep 22, 2026, 8:44 AM
Status
Awaiting Analysis
Published
Sep 29, 2026, 12:17 PM
Modified
Nov 13, 2026, 2:18 PM
Severity
Moderate
Public date
Sep 29, 2026, 10:54 AM