# CVE-2018-12020: mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and verification actions, which allows remote attackers…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 8.19%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2018-06-08T21:00:00.000Z
- Modified: 2026-06-17T01:37:00.507Z
- Weaknesses: CWE-706
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- redhat enterprise_linux_desktop: 6.0; 7.0
- redhat enterprise_linux_server: 6.0; 7.0
- redhat enterprise_linux_server_aus: 7.6
- redhat enterprise_linux_server_eus: 7.5; 7.6
- redhat enterprise_linux_server_tus: 7.6
- redhat enterprise_linux_workstation: 6.0; 7.0
- canonical ubuntu_linux: 12.04; 14.04; 16.04; 17.10; 18.04; 18.10; 19.04
- debian debian_linux: 8.0; 9.0
- gnupg gnupg: before 2.2.8

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

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

## Sources

- CVE List: [CVE-2018-12020](https://www.cve.org/CVERecord?id=CVE-2018-12020), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2018-12020](https://nvd.nist.gov/vuln/detail/CVE-2018-12020), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-12020 · Whole record: https://cve.day/CVE-2018-12020.json · Rebuilt by cve.day 2026-11-25T22:57:38.194Z
