CVE-2020-25125: GnuPG - Buffer Overflow
- Cve: CVE-2020-25125
- Name: GnuPG - Buffer Overflow
- 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.
- Impact: Attackers can cause crashes or potentially execute arbitrary code when victims import malicious OpenPGP keys with AEAD preferences.
- Remediation: Update to GnuPG 2.2.23 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: user_interaction
- Requirements: Victim must import a malicious OpenPGP key with AEAD preferences
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.01283
- Epss percentile: 0.70687
- Assignee: [email protected]
- Published at: 2020-09-03T18:15:15Z
- Age in days: 2273
- Modified at: 2026-06-17T03:06:24Z
- Patch available: yes
- Public exploits total: 1
- References total: 6
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-25125
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://bugzilla.opensuse.org/show_bug.cgi?id=1176034 | nvd | 2020-09-03 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://dev.gnupg.org/rG8ec9573e57866dda5efb4677d4454161517484bc | Patch, Vendor Advisory |
| https://lists.gnupg.org/pipermail/gnupg-announce/2020q3/000448.html | Vendor Advisory |
| https://bugzilla.opensuse.org/show_bug.cgi?id=1176034 | Exploit, Issue Tracking, Third Party Advisory |
| 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 |
| https://dev.gnupg.org/T5050 | Mailing List |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gnupg:gnupg | = 2.2.22, = 2.2.21 | no | nvd | /v1/products/gnupg/gnupg |
| gpg4win:gpg4win | = 3.1.12 | no | nvd | /v1/products/gpg4win/gpg4win |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2020-09-03
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts