CVE-2018-12020
publishedgnupg2: Improper sanitization of filenames allows for the display of fake status messages and the bypass of signature verification
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2018-1045 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Debian | jessie | gnupg | Advisory build | 1.4.18-7+deb8u5 | DSA-4224-1 |
| Oracle Linux | 6 | gnupg2i686 | Advisory build | 0:2.0.14-9.el6_10 | ELSA-2018-2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2i686 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| SUSE / openSUSE | SLE-11-SP3 | gpg2i586 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| Alpine Linux | v3.10 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.10 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.11 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.11 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.12 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.12 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.13 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.13 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.14 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.14 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.15 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.15 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.16 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.17 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.18 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.19 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.20 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.21 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.22 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.23 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.24 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.4 | gnupg | Fixed | 2.1.12-r1 | Package fix record |
| Alpine Linux | v3.5 | gnupg | Fixed | 2.1.15-r1 | Package fix record |
| Alpine Linux | v3.5 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.6 | gnupg | Fixed | 2.2.3-r1 | Package fix record |
| Alpine Linux | v3.6 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.7 | gnupg | Fixed | 2.2.3-r1 | Package fix record |
| Alpine Linux | v3.7 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.8 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.8 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Alpine Linux | v3.9 | gnupg | Fixed | 2.2.8-r0 | Package fix record |
| Alpine Linux | v3.9 | gnupg1 | Fixed | 1.4.22-r1 | Package fix record |
| Debian | jessie | gnupg2 | Advisory build | 2.0.26-6+deb8u2 | DSA-4222-1 |
| Debian | stretch | gnupg1 | Advisory build | 1.4.21-4+deb9u1 | DSA-4223-1 |
| Debian | stretch | gnupg2 | Advisory build | 2.1.18-8~deb9u2 | DSA-4222-1 |
| Debian | stretch | python-gnupg | Advisory build | 0.3.9-1+deb9u1 | DLA-2862-1 |
| Oracle Linux | 6 | gnupg2x86_64 | Advisory build | 0:2.0.14-9.el6_10 | ELSA-2018-2180 |
| Oracle Linux | 6 | gnupg2-smimei686 | Advisory build | 0:2.0.14-9.el6_10 | ELSA-2018-2180 |
| Oracle Linux | 6 | gnupg2-smimex86_64 | Advisory build | 0:2.0.14-9.el6_10 | ELSA-2018-2180 |
| Oracle Linux | 7 | gnupg2aarch64 | Advisory build | 0:2.0.22-5.el7_5 | ELSA-2018-2181 |
| Oracle Linux | 7 | gnupg2x86_64 | Advisory build | 0:2.0.22-5.el7_5 | ELSA-2018-2181 |
| Oracle Linux | 7 | gnupg2-smimeaarch64 | Advisory build | 0:2.0.22-5.el7_5 | ELSA-2018-2181 |
| Oracle Linux | 7 | gnupg2-smimex86_64 | Advisory build | 0:2.0.22-5.el7_5 | ELSA-2018-2181 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2ppc64 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2s390x | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2src | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2x86_64 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2-debuginfoi686 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2-debuginfoppc64 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2-debuginfos390x | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2-debuginfox86_64 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2-smimei686 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2-smimeppc64 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2-smimes390x | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-6 | gnupg2-smimex86_64 | Advisory build | 2.0.14-9.el6_10 | RHSA-2018:2180 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2aarch64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2ppc64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2ppc64le | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2s390x | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2src | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2x86_64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-debuginfoaarch64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-debuginfoppc64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-debuginfoppc64le | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-debuginfos390x | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-debuginfox86_64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-smimeaarch64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-smimeppc64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-smimeppc64le | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-smimes390x | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| Red Hat Enterprise Linux | RHEL-7 | gnupg2-smimex86_64 | Advisory build | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| SUSE / openSUSE | SLE-11-SP3 | gpg2s390x | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP3 | gpg2x86_64 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP3 | gpg2-langi586 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP3 | gpg2-langs390x | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP3 | gpg2-langx86_64 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2i586 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2ia64 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2ppc64 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2s390x | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2x86_64 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2-langi586 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2-langia64 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2-langppc64 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2-langs390x | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-11-SP4 | gpg2-langx86_64 | Advisory build | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE / openSUSE | SLE-12 | gpg2ppc64le | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE / openSUSE | SLE-12 | gpg2s390x | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE / openSUSE | SLE-12 | gpg2x86_64 | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE / openSUSE | SLE-12 | gpg2-langnoarch | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE / openSUSE | SLE-12-SP1 | gpg2ppc64le | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE / openSUSE | SLE-12-SP1 | gpg2s390x | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE / openSUSE | SLE-12-SP1 | gpg2x86_64 | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE / openSUSE | SLE-12-SP1 | gpg2-langnoarch | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE / openSUSE | SLE-12-SP2 | gpg2ppc64le | Advisory build | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
21- http://openwall.com/lists/oss-security/2018/06/08/2
- http://packetstormsecurity.com/files/152703/Johnny-You-Are-Fired.html
- 20190430 OpenPGP and S/MIME signature forgery attacks in multiple email clients http://seclists.org/fulldisclosure/2019/Apr/38
- [oss-security] 20190430 Spoofing OpenPGP and S/MIME Signatures in Emails (multiple clients) http://www.openwall.com/lists/oss-security/2019/04/30/4
- 104450 http://www.securityfocus.com/bid/104450
- 1041051 http://www.securitytracker.com/id/1041051
- RHSA-2018:2180 https://access.redhat.com/errata/RHSA-2018:2180
- RHSA-2018:2181 https://access.redhat.com/errata/RHSA-2018:2181
- https://dev.gnupg.org/T4012
- 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://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0
- [debian-lts-announce] 20211228 [SECURITY] [DLA 2862-1] python-gnupg security update https://lists.debian.org/debian-lts-announce/2021/12/msg00027.html
- https://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html
- USN-3675-1 https://usn.ubuntu.com/3675-1/
- USN-3675-2 https://usn.ubuntu.com/3675-2/
- USN-3675-3 https://usn.ubuntu.com/3675-3/
- USN-3964-1 https://usn.ubuntu.com/3964-1/
- DSA-4222 https://www.debian.org/security/2018/dsa-4222
- DSA-4223 https://www.debian.org/security/2018/dsa-4223
- DSA-4224 https://www.debian.org/security/2018/dsa-4224
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 64195520503bb53e70a7720316eefc1fb1218281a1fd30d70cd83e9db76a6b75
- Ingested
- 23 Sep 2026, 07:43:30 UTC
- Source record
- Official CVE record