VDB

CVE-2018-12020

CVE-2018-12020 PUBLISHED

Reported by mitre · Published June 8, 2018

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
gnupg2Amazon Linux2.0.22-5.amzn2.0.2
gnupgArch Linux2.2.8-1
gnupggnupg2.2.8

Affected products

VendorProductVersions
n/an/an/a
n/an/a*

Timeline

  • Jun 8, 2018 CVE Published
  • Jun 14, 2018 PoC Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Oct 24, 2025 CVE Updated
  • Mar 6, 2026 Distribution Patch (11 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (12 in total, the first dated here)
  • Sep 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-12020
vulnetix vdb fixes CVE-2018-12020

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-12020/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

…and 1 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›