# CVE-2018-12020

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 8% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2018-06-08 · Modified: 2024-08-05
- Aliases: ALPINE-CVE-2018-12020, MGASA-2018-0292, SUSE-SU-2018:1696-1, SUSE-SU-2018:1698-1, SUSE-SU-2018:1698-2, SUSE-SU-2018:1814-1, RHSA-2018:2180, RHSA-2018:2181, UBUNTU-CVE-2018-12020, USN-3675-2, DEBIAN-CVE-2018-12020, DSA-4222-1, DSA-4223-1, DSA-4224-1, CGA-67wx-7jmv-pgqr, CGA-8qpv-gw9x-67mp, USN-9100-1
- Record: https://cvemate.com/vulnerability/CVE-2018-12020 · JSON: https://cvemate.com/vulnerability/CVE-2018-12020/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 8.194%, percentile 95.027%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 47)

- alpine gnupg (Alpine Linux): \< 2.2.8-r0 \| \< 2.1.12-r1 \| \< 2.1.15-r1 \| \< 2.2.3-r1
- alpine gnupg1 (Alpine Linux): \< 1.4.22-r1
- chainguard gnupg (Chainguard): All versions (No fix recorded)
- wolfi gnupg (Wolfi): All versions (No fix recorded)
- canonical ubuntu\_linux: 12.04 \| 14.04 \| 16.04 \| 17.10 \| 18.04 \| 18.10 \| 19.04
- debian gnupg (Debian): \< 1.4.18-7+deb8u5
- debian gnupg1 (Debian): \< 1.4.22-5 \| \< 1.4.21-4+deb9u1
- debian gnupg2 (Debian): \< 2.2.8-1 \| \< 2.0.26-6+deb8u2 \| \< 2.1.18-8~deb9u2
- ubuntu enigmail (Ubuntu): All versions (No fix recorded)
- ubuntu gnupg (Ubuntu): \< 1.4.16-1ubuntu2.5 \| \< 1.4.20-1ubuntu3.2
- ubuntu gnupg1 (Ubuntu): All versions (No fix recorded) \| \< 1.4.22-3ubuntu2+esm1
- ubuntu gnupg2 (Ubuntu): \< 2.0.22-3ubuntu1.4 \| \< 2.1.11-6ubuntu2.1 \| \< 2.2.4-1ubuntu1.1
- ubuntu python-gnupg (Ubuntu): \< 0.3.6-1ubuntu0.1~esm1 \| \< 0.3.8-2ubuntu0.1~esm1 \| \< 0.4.1-1ubuntu1.18.04.1
- debian debian\_linux: 8.0 \| 9.0
- gnupg gnupg: \< 2.2.8
- mageia gnupg (Mageia): \< 1.4.19-1.4.mga5
- mageia gnupg2 (Mageia): \< 2.0.27-1.2.mga5
- mageia python-gnupg (Mageia): \< 0.3.6-4.1.mga5
- mageia gnupg (Mageia): \< 1.4.23-1.mga6
- mageia gnupg2 (Mageia): \< 2.1.21-3.1.mga6

## References (first 20 of 50)

- <https://usn.ubuntu.com/3675-2/>
- <https://access.redhat.com/errata/RHSA-2018:2180>
- <https://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html>
- <http://openwall.com/lists/oss-security/2018/06/08/2>
- <https://www.debian.org/security/2018/dsa-4222>
- <https://access.redhat.com/errata/RHSA-2018:2181>
- <https://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0>
- <https://www.debian.org/security/2018/dsa-4224>
- <http://www.securityfocus.com/bid/104450>
- <https://www.debian.org/security/2018/dsa-4223>
- <https://usn.ubuntu.com/3675-3/>
- <http://www.securitytracker.com/id/1041051>
- <https://usn.ubuntu.com/3675-1/>
- <https://dev.gnupg.org/T4012>
- <http://www.openwall.com/lists/oss-security/2019/04/30/4>
- <http://seclists.org/fulldisclosure/2019/Apr/38>
- <http://packetstormsecurity.com/files/152703/Johnny-You-Are-Fired.html>
- <https://usn.ubuntu.com/3964-1/>
- <https://github.com/RUB-NDS/Johnny-You-Are-Fired>
- <https://github.com/RUB-NDS/Johnny-You-Are-Fired/blob/master/paper/johnny-fired.pdf>

---

Data as of 2026-12-05T04:36:33.833Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
