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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gpg2 | 2.2.27-2.4 | openSUSE-SU-2024:10815-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | gnupg | 2.2.23-r0 | — |
| Alpine v3.23 | gnupg | 2.2.23-r0 | — |
| Alpine v3.22 | gnupg | 2.2.23-r0 | — |
| Alpine v3.21 | gnupg | 2.2.23-r0 | — |
| Alpine v3.20 | gnupg | 2.2.23-r0 | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | gnupg | 2.2.23-r0 | — |
| Alpine v3.18 | gnupg | 2.2.23-r0 | — |
| Alpine v3.17 | gnupg | 2.2.23-r0 | — |
| Alpine v3.16 | gnupg | 2.2.23-r0 | — |
| Alpine v3.15 | gnupg | 2.2.23-r0 | — |
| Alpine v3.14 | gnupg | 2.2.23-r0 | — |
| Alpine v3.13 | gnupg | 2.2.23-r0 | — |
| Alpine v3.12 | gnupg | 2.2.23-r0 | — |
Advisories 1
- openSUSE-SU-2024:10815-1 dirmngr-2.2.27-2.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://bugzilla.opensuse.org/show_bug.cgi?id=1176034
- https://dev.gnupg.org/rG8ec9573e57866dda5efb4677d4454161517484bc
- https://lists.gnupg.org/pipermail/gnupg-announce/2020q3/000448.html
- https://dev.gnupg.org/T5050
- [oss-security] 20200903 GNUPG released with AEAD sec fix CVE-2020-25125 mailing-list
- [oss-security] 20200903 CVE-2020-25125: gnupg2: buffer overflow when importing a key with AEAD preferences mailing-list