{"schemaVersion":3,"id":"CVE-2020-25125","aliases":["ALPINE-CVE-2020-25125","CGA-7jg7-f28j-2j44","CGA-vjmv-m294-mhvq"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2020-09-03T17:48:07.000Z","modified":"2024-08-04T15:26:09.468Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01283,"percentile":0.69688,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01283},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01283,"percentile":0.69688}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01283,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01283,"percentile":0.69688}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_239DBE8FBC444D2F","name":"Exploit Reference (bugzilla.opensuse.org)","source":"reference","url":"https://bugzilla.opensuse.org/show_bug.cgi?id=1176034","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"}],"affected":[{"vendor":"alpine","product":"gnupg","name":"gnupg","label":"gnupg","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/gnupg","purlType":"apk","versions":[{"text":"< 2.2.23-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.23-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"gnupg","name":"gnupg","label":"gnupg","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gnupg","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gnupg","name":"gnupg","label":"gnupg","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gnupg","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gnupg","product":"gnupg","name":"gnupg","label":"gnupg","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.2.21","noFixRecorded":false,"fixedIn":null},{"text":"2.2.22","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.2.21 | 2.2.22","eol":null,"hubHref":"/vendor/gnupg/gnupg"},{"vendor":"gpg4win","product":"gpg4win","name":"gpg4win","label":"gpg4win","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.1.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.1.12","eol":null,"hubHref":"/vendor/gpg4win/gpg4win"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.opensuse.org/show_bug.cgi?id=1176034","label":"bugzilla.opensuse.org/show_bug.cgi?id=1176034","hostname":"bugzilla.opensuse.org","tags":["X Refsource MISC","REPORT","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://dev.gnupg.org/rG8ec9573e57866dda5efb4677d4454161517484bc","label":"dev.gnupg.org/rG8ec9573e57866dda5efb4677d4454161517484bc","hostname":"dev.gnupg.org","tags":["X Refsource MISC","FIX","Patch","Vendor Advisory"]},{"url":"https://lists.gnupg.org/pipermail/gnupg-announce/2020q3/000448.html","label":"lists.gnupg.org/pipermail/gnupg-announce/2020q3/000448.html","hostname":"lists.gnupg.org","tags":["X Refsource MISC","Advisory","Vendor Advisory"]},{"url":"https://dev.gnupg.org/T5050","label":"dev.gnupg.org/T5050","hostname":"dev.gnupg.org","tags":["X Refsource MISC","ARTICLE","Mailing List"]},{"url":"http://www.openwall.com/lists/oss-security/2020/09/03/4","label":"www.openwall.com/lists/oss-security/2020/09/03/4","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Advisory","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2020/09/03/5","label":"www.openwall.com/lists/oss-security/2020/09/03/5","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Advisory","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2020-25125","label":"security.alpinelinux.org/vuln/CVE-2020-25125","hostname":"security.alpinelinux.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:10815-1"],"duplicates":[],"related":["CGA-8482-9GV7-9MW8","CGA-W8M2-Q2WR-48V4","OPENSUSE-SU-2024:10815-1"]},"timeline":[{"kind":"published","date":"2020-09-03T17:48:07.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T15:26:09.468Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:25:16.469Z","stale":false,"partial":false}}