High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-25125
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:10 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-25125
Complete source record
{
"id": "7ad2f56c505282305da204cb0153703c3ee998aaf8fb8546624072eb5039722a",
"url": "https://osv.dev/vulnerability/CVE-2020-25125",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-25125",
"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.",
"evidence": "osv:CVE-2020-25125",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-25125",
"aliases": [
"CVE-2020-25125"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "git://git.gnupg.org/gpg4win.git",
"type": "GIT",
"events": [
{
"introduced": "69077578c9cf52633e91b3cce5805fdedd643cc8"
},
{
"last_affected": "69077578c9cf52633e91b3cce5805fdedd643cc8"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gpg4win:gpg4win:3.1.12:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.12"
},
{
"last_affected": "3.1.12"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.1.12",
"gpg4win-3.1.12"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-25125.json"
}
}
],
"modified": "2026-10-24T10:30:25.352770320Z",
"provider": "osv",
"references": [
"https://lists.gnupg.org/pipermail/gnupg-announce/2020q3/000448.html",
"https://bugzilla.opensuse.org/show_bug.cgi?id=1176034",
"https://dev.gnupg.org/rG8ec9573e57866dda5efb4677d4454161517484bc",
"https://dev.gnupg.org/T5050"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:gnupg:gnupg:2.2.21:*:*:*:*:*:*:*",
"cpe:2.3:a:gnupg:gnupg:2.2.22:*:*:*:*:*:*:*"
],
"vendor_product": "gnupg:gnupg",
"extracted_events": [
{
"range": [
{
"introduced": "2.2.21"
},
{
"last_affected": "2.2.21"
},
{
"introduced": "2.2.22"
},
{
"last_affected": "2.2.22"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-25125",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 431340,
"published_at": "2020-09-03T18:15:15.16+00:00"
}