CVE-2018-12020

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.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 1.45% Top 25%
Vendor Advisory ubuntu.com Vendor Advisory redhat.com Vendor Advisory debian.org Vendor Advisory redhat.com Vendor Advisory debian.org Vendor Advisory debian.org Vendor Advisory ubuntu.com Vendor Advisory ubuntu.com Vendor Advisory ubuntu.com Vendor Advisory gnupg.org Vendor Advisory gnupg.org
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
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 third party advisory mailing list
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 vdb entry broken link
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 vdb entry broken link
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 third party advisory mailing list
http://seclists.org/fulldisclosure/2019/Apr/38 third party advisory mailing list
http://packetstormsecurity.com/files/152703/Johnny-You-Are-Fired.html vdb entry third party advisory
https://usn.ubuntu.com/3964-1/ third party advisory vendor advisory
https://github.com/RUB-NDS/Johnny-You-Are-Fired third party advisory technical description
https://github.com/RUB-NDS/Johnny-You-Are-Fired/blob/master/paper/johnny-fired.pdf third party advisory technical description
https://lists.debian.org/debian-lts-announce/2021/12/msg00027.html third party advisory mailing list

Frequently Asked Questions

What is the severity of CVE-2018-12020?
CVE-2018-12020 has been scored as a high severity vulnerability.
How to fix CVE-2018-12020?
To fix CVE-2018-12020, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2018-12020 being actively exploited in the wild?
It is possible that CVE-2018-12020 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.