cve.bz

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

7.1 highEPSS 0.2%Fix available

High (7.1) in red hat. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
EPSS
0.2% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-09-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-95520 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-95520?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-95520?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-95520 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • red hat:red hat enterprise linux 10
  • red hat:red hat enterprise linux 6
  • red hat:red hat enterprise linux 7
  • red hat:red hat enterprise linux 8
  • red hat:red hat enterprise linux 9
  • red hat:red hat hardened images
  • red hat:red hat openshift ai (rhoai)

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Hardened Images6.1.0-1.4.hum1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rpmno fix listedDEBIAN-CVE-2026-95520
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 5 morerpmno fix listedUBUNTU-CVE-2026-95520
Red Hathummingbird:1rpm, rpm-cron, rpm-libs and 17 more0:6.1.0-1.4.hum1RHSA-2026:98095
Azure Linux3rpmno fix listedAZL-105813

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is rated Moderate because, while parsing a crafted RPM triggers an attacker-controlled-length heap write, exploitation is local: a user or automated workflow must choose to run rpm2cpio, rpm2archive, rpm -qlvp, or an install/rebuild against the untrusted package. The flaw is not exposed as a network service, consistent with other Moderate-rated integer-overflow/heap-overflow flaws already tracked against the same iterReadArchiveNext() symlink-handling code path.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10rpmAffected
Red Hat Enterprise Linux 6rpmNot affected
Red Hat Enterprise Linux 7rpmNot affected
Red Hat Enterprise Linux 8rpmAffected
Red Hat Enterprise Linux 9rpmAffected
Red Hat Hardened ImagesrpmAffected
Red Hat OpenShift AI (RHOAI)rhoai/odh-ai-gateway-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-core-bff-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-data-science-pipelines-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kf-notebook-controller-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-llmisvc-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-module-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kuberay-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kube-rbac-proxy-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-k8s-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-maas-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-operator-rhel9Not affected
18 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-95520.

References

Check your stackJSON