---
title: "CVE-2026-95520"
canonical_url: "https://pkgseek.com/security/CVE-2026-95520"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2026-95520

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.

CVE-2026-95520 is rated HIGH (7.1), with 10 indexed affected package builds across 1 distributions.

- **Severity / Score**: HIGH (7.1)
- **Affected builds**: 10
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | librpm10 | 4.20.1+dfsg-3 | — |
| Debian | trixie | librpmbuild10 | 4.20.1+dfsg-3 | — |
| Debian | trixie | librpm-dev | 4.20.1+dfsg-3 | — |
| Debian | trixie | librpmio10 | 4.20.1+dfsg-3 | — |
| Debian | trixie | librpmsign10 | 4.20.1+dfsg-3 | — |
| Debian | trixie | python3-rpm | 4.20.1+dfsg-3 | — |
| Debian | trixie | rpm | 4.20.1+dfsg-3 | — |
| Debian | trixie | rpm2cpio | 4.20.1+dfsg-3 | — |
| Debian | trixie | rpm-common | 4.20.1+dfsg-3 | — |
| Debian | trixie | rpm-i18n | 4.20.1+dfsg-3 | — |
