CVE-2021-20271
NixOS vulnerability analysis and mitigation

Overview

A flaw was discovered in RPM's signature check functionality when reading a package file (CVE-2021-20271). The vulnerability was disclosed in March 2021 and affects the RPM Package Manager, which is a command-line driven package management system used in various Linux distributions. The vulnerability allows an attacker to bypass signature checks through a corrupted RPM package (Red Hat CVE, Ubuntu CVE).

Technical details

The vulnerability exists in the headerMergeLegacySigs function where the signature header verification process can be bypassed. The flaw allows copying of unknown tags from the signature header into the RPM metadata header without proper type and size validation. This can lead to corrupt header tags being placed into the RPM database if the package is installed (Bugzilla Report). The vulnerability has been assigned a CVSS v3.1 base score of 7.0 (High) with the vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H (StarWind Security).

Impact

The vulnerability can result in RPM database corruption and potential code execution if exploited. The highest threats from this vulnerability are to data integrity, confidentiality, and system availability. When exploited, it can cause the header to be inaccessible within the rpm database and lead to data integrity issues such as corrupt headers, bad tag errors, installed packages appearing as not installed, and seemingly missing dependencies (Bugzilla Report).

Exploitability

To exploit this vulnerability, an attacker must either compromise an RPM repository or convince an administrator to install an untrusted RPM package. The attack requires the ability to convince a victim to install a seemingly verifiable package whose signature header has been modified (Red Hat CVE).

Mitigation and workarounds

The vulnerability has been fixed in RPM version 4.16.1.3 and later releases. For affected systems, it is strongly recommended to only use RPMs from trusted repositories. If the database becomes corrupted, it can be repaired using the rpmdb --rebuilddb command, followed by installing the non-corrupted package (Gentoo Security, Bugzilla Report).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management