# CVE-2020-25125: 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…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.28%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-03T17:48:07.000Z
- Modified: 2026-06-17T03:06:24.997Z
- Weaknesses: CWE-120
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnupg gnupg: 2.2.21; 2.2.22
- gpg4win gpg4win: 3.1.12

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://bugzilla.opensuse.org/show_bug.cgi?id=1176034> (exploit, issue-tracking, third-party-advisory)
- <https://dev.gnupg.org/rG8ec9573e57866dda5efb4677d4454161517484bc> (patch, vendor-advisory)
- <https://lists.gnupg.org/pipermail/gnupg-announce/2020q3/000448.html> (vendor-advisory)
- <https://dev.gnupg.org/T5050> (mailing-list)
- <http://www.openwall.com/lists/oss-security/2020/09/03/4> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2020/09/03/5> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2020-25125](https://www.cve.org/CVERecord?id=CVE-2020-25125), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-25125](https://nvd.nist.gov/vuln/detail/CVE-2020-25125), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-25125 · Whole record: https://cve.day/CVE-2020-25125.json · Rebuilt by cve.day 2026-11-25T22:57:54.508Z
