CVE-2018-12020: Canonical Ubuntu Linux

High severity, CVSS 7.5. EPSS: 8.2% probability of exploitation activity in the next 30 days.

mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and verification actions, which allows remote attackers to spoof the output that GnuPG sends on file descriptor 2 to other programs that use the "--status-fd 2" option. For example, the OpenPGP data might represent an original filename that contains line feed characters in conjunction with GOODSIG or VALIDSIG status codes.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Gnupg, before 2.2.8: fixed in 2.2.8

Affected products

Published 2018-06-08. Last modified 2026-06-17.