---
id: CVE-2026-103242
title: A heap-based buffer overflow flaw was found in rpm
summary: >-
  A heap-based buffer overflow flaw was found in rpm. RPMTAG_FILESIGNATURES in a
  crafted, unsigned RPM package's main header is declared with the wrong header
  type, causing hex2binv() to allocate a one-byte buffer and then write the
  tag's …
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'
cwe:
  - CWE-122
vendor: Red Hat
product: rpm
affected:
  - rpm (all versions)
  - rpm
  - rpm
  - rpm (all versions)
  - rpm (all versions)
  - rpm (all versions)
published: '2026-09-30'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T12:17:12.653'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103242'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-103242'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2543866'
    label: secalert@redhat.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-09-30T12:02:58.586Z'
---

## Overview

A heap-based buffer overflow flaw was found in rpm. RPMTAG_FILESIGNATURES in a crafted, unsigned RPM package's main header is declared with the wrong header type, causing hex2binv() to allocate a one-byte buffer and then write the tag's attacker-controlled, hex-decoded content — of attacker-chosen length — past the end of that allocation. This is reachable via rpm2cpio, rpm2archive, and rpm -qlvp on an untrusted package.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
