CVE Database›Document archive›CVE-2021-3445

CVE-2021-3445

libdnf: Signature verification bypass via signature placed in the main RPM header

Loading…

Severity

Moderate

Red Hat Product Security

6.4

CVSS 3.1

Review impact separately from score.

Published · March 17, 2021

Updated · June 27, 2026

Description

A flaw was found in libdnf's signature verification functionality. This flaw allows an attacker to achieve code execution if they can alter the header information of an RPM package and then trick a user or system into installing it. The highest risk of this vulnerability is to confidentiality, integrity, as well as system availability.

Statement

The exploitation of this flaw requires RPM's package verification level to be set to "digest" or "none". In addition, to exploit this flaw, an attacker must either compromise an RPM repository or convince an administrator to install an untrusted RPM. It is strongly recommended to only use RPMs from trusted repositories.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

A mitigation for this flaw is to set %_pkgverify_level allor%_pkgverify_level signaturein/etc/rpm/macros`.

CVSS / CWE

CVSS 3.1 · 6.4
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H

CWE-347 · Improper Verification of Cryptographic Signature