cve.bz

CVE-2021-20266 Out-of-bounds Read

4.9 mediumEPSS 1.5%Fix available

Medium (4.9). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in RPM's hdrblobInit() in lib/header.c. This flaw allows an attacker who can modify the rpmdb to cause an out-of-bounds read. The highest threat from this vulnerability is to system availability.

Severity

CVSS 3.1

4.9 medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20266 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20266?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20266?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-2021-20266 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

Versions

From the NVD's CPE matches.

ProductAffected
rpm:rpmbefore 4.16.1.3
fedoraproject:fedora33
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rpm4.16.1.2+dfsg1-1DEBIAN-CVE-2021-20266
UbuntuPro:16.04:LTSrpm4.12.0.1+dfsg1-3ubuntu0.1~esm1USN-5273-1
UbuntuPro:18.04:LTSrpm4.14.1+dfsg1-2ubuntu0.1~esm1UBUNTU-CVE-2021-20266 USN-5273-1
UbuntuPro:20.04:LTSrpm4.14.2.1+dfsg1-1ubuntu0.1~esm1UBUNTU-CVE-2021-20266 USN-5273-1
Red Hatenterprise_linux:8::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 13 more0:4.14.3-19.el8RHSA-2021:4489
Red Hatenterprise_linux:8::baseosrpm, rpm-cron, rpm-libs and 24 more0:4.14.3-19.el8RHSA-2021:4489
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Development Tools 15 SP2 and 2 morerpm4.14.1-22.4.2SUSE-SU-2021:3444-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2python-rpm4.14.1-22.4.1SUSE-SU-2021:3444-1
SUSELinux Enterprise Module for Basesystem 15 SP3rpm, python-rpm4.14.3-37.2SUSE-SU-2021:2682-1
SUSELinux Enterprise Module for Development Tools 15 SP3, Manager Proxy Module 4.2, Manager Server Module 4.2rpm4.14.3-37.2SUSE-SU-2021:2682-1
SUSELinux Enterprise Module for Public Cloud 15 SP2rpm-ndb4.14.1-22.4.2SUSE-SU-2021:3444-1
SUSELinux Enterprise Module for Public Cloud 15 SP3rpm-ndb4.14.3-37.2SUSE-SU-2021:2682-1
SUSELinux Enterprise Module for Python 2 15 SP3python-rpm4.14.3-37.2SUSE-SU-2021:2682-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5rpm, rpm-python, python3-rpm4.11.2-16.26.1SUSE-SU-2022:3939-1
SUSELinux Enterprise Software Development Kit 12 SP5rpm4.11.2-16.26.1SUSE-SU-2022:3939-1
openSUSELeap 15.2rpm, python-rpm4.14.1-lp152.18.3.1openSUSE-SU-2021:1366-1
openSUSELeap 15.3rpm, rpm-ndb, python-rpm4.14.3-37.2openSUSE-SU-2021:2682-1
AlmaLinux8rpm-build, rpm-plugin-fapolicyd4.14.3-19.el8ALSA-2021:4489
Rocky Linux8rpm0:4.14.3-19.el8RLSA-2021:4489
Alpinev3.13, v3.14, v3.15 and 9 morerpm4.16.1.3-r0ALPINE-CVE-2021-20266

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; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

In order to exploit this flaw with rpm tooling as shipped in Red Hat Enterprise Linux, an attacker would need to already have root access to modify the rpm database.

Red Hat's mitigation

If using the headerCheck() and headerImport() APIs in your software, do not run them on headers from untrusted sources.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8rpm-0:4.14.3-19.el8Fixed 2021-11-09RHSA-2021:4489
Red Hat Enterprise Linux 6rpmOut of support scope
Red Hat Enterprise Linux 7rpmOut of support scope
Red Hat Enterprise Linux 9rpmNot affected

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-2021-20266.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON