CVE-2018-12020
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| gnupg2 | Amazon Linux | 2.0.22-5.amzn2.0.2 |
| gnupg | Arch Linux | 2.2.8-1 |
| gnupg | gnupg | 2.2.8 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/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
- USN-3675-2 vendor-advisoryx_refsource_UBUNTU
- RHSA-2018:2180 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_MISC
- DSA-4222 vendor-advisoryx_refsource_DEBIAN
- RHSA-2018:2181 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- DSA-4224 vendor-advisoryx_refsource_DEBIAN
- 104450 vdb-entryx_refsource_BID
- DSA-4223 vendor-advisoryx_refsource_DEBIAN
- USN-3675-3 vendor-advisoryx_refsource_UBUNTU
- 1041051 vdb-entryx_refsource_SECTRACK
- USN-3675-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- [oss-security] 20190430 Spoofing OpenPGP and S/MIME Signatures in Emails (multiple clients) mailing-listx_refsource_MLIST
- 20190430 OpenPGP and S/MIME signature forgery attacks in multiple email clients mailing-listx_refsource_FULLDISC
- x_refsource_MISC
- USN-3964-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- x_refsource_MISC
…and 1 more