Skip to content
Fencer Vulns
high 7.8

CVE-2020-25125 json

GnuPG 2.2.21 and 2.2.22 (and Gpg4win 3.1.12) has an array overflow, leading to a crash or possibly unspecified other impact, when a victim…

published 2020-09-03 6 y ago modified 2026-06-17 4 mo ago also EUVD-2020-17816

cvss
7.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 70%
public exploits
0
none known

Summary

GnuPG 2.2.21 and 2.2.22 (and Gpg4win 3.1.12) has an array overflow, leading to a crash or possibly unspecified other impact, when a victim imports an attacker's OpenPGP key, and this key has AEAD preferences. The overflow is caused by a g10/key-check.c error. NOTE: GnuPG 2.3.x is unaffected. GnuPG 2.2.23 is a fixed version.

Patch / fix

  • gpg2 openSUSE Tumbleweed 2.2.27-2.4

opensuse advisories openSUSE-SU-2024:10815-1

  • gnupg Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 2.2.23-r0

alpine advisories ALPINE-CVE-2020-25125

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • gnupg Arch Linux 2.2.23-1

arch linux advisories AVG-1218

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-25125 updated cvss 7.0

gnupg: AEAD preference list overflow

  • Red Hat Enterprise Linux 5 gnupg, gnupg2 Red Hat Enterprise Linux 6 gnupg2, gnupg2-smime Red Hat Enterprise Linux 7 gnupg2, gnupg2-smime Red Hat Enterprise Linux 8 gnupg2, gnupg2-smime
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.28% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • bugzilla.opensuse.org https://bugzilla.opensuse.org/show_bug.cgi?id=1176034 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-120 Buffer Copy without Checking Size of Input

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.