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.
Source: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-25125
Reference (s):
- https://bugzilla.opensuse.org/show_bug.cgi?id=1176034
- https://dev.gnupg.org/T5050
- https://dev.gnupg.org/rG8ec9573e57866dda5efb4677d4454161517484bc
- https://lists.gnupg.org/pipermail/gnupg-announce/2020q3/000448.html
- MLIST:[oss-security] 20200903 CVE-2020-25125: gnupg2: buffer overflow when importing a key with AEAD preferences

