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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gnupg1 | 1.4.22-5 | — |
| Debian 14 | gnupg2 | 2.2.8-1 | — |
| Debian 13 | gnupg1 | 1.4.22-5 | — |
| Debian 13 | gnupg2 | 2.2.8-1 | — |
| Debian 12 | gnupg1 | 1.4.22-5 | — |
| Debian 12 | gnupg2 | 2.2.8-1 | — |
| Debian 9 | gnupg1 | 1.4.21-4+deb9u1 | DSA-4223-1 |
| Debian 9 | gnupg2 | 2.1.18-8~deb9u2 | DSA-4222-1 |
| Debian 9 | python-gnupg | 0.3.9-1+deb9u1 | DLA-2862-1 |
| Debian 8 | gnupg | 1.4.18-7+deb8u5 | DSA-4224-1 |
| Debian 8 | gnupg2 | 2.0.26-6+deb8u2 | DSA-4222-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | enigmail | No fix yet | — |
| Ubuntu 20.04 LTS | enigmail | No fix yet | — |
| Ubuntu 18.04 LTS | gnupg1 +1 | No fix yet | — |
| Ubuntu 18.04 LTS | gnupg2 | 2.2.4-1ubuntu1.1 | USN-3675-1 |
| Ubuntu 18.04 LTS | python-gnupg | 0.4.1-1ubuntu1.18.04.1 | USN-3964-1 |
| Ubuntu 16.04 LTS | enigmail | No fix yet | — |
| Ubuntu 16.04 LTS | gnupg | 1.4.20-1ubuntu3.2 | USN-3675-1 |
| Ubuntu 16.04 LTS | gnupg2 | 2.1.11-6ubuntu2.1 | USN-3675-2 |
| Ubuntu 14.04 LTS | gnupg | 1.4.16-1ubuntu2.5 | USN-3675-1 |
| Ubuntu 14.04 LTS | gnupg2 | 2.0.22-3ubuntu1.4 | USN-3675-2 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | python-gnupg | 0.3.8-2ubuntu0.1~esm1 | USN-4839-1 |
| Ubuntu Pro 14.04 LTS | python-gnupg | 0.3.6-1ubuntu0.1~esm1 | USN-4839-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | gnupg2 +1 | 2.0.22-5.el7_5 | RHSA-2018:2181 |
| RHEL 6 | gnupg2 +1 | 2.0.14-9.el6_10 | RHSA-2018:2180 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | enigmail | 2.0.7-3.7.2 | SUSE-SU-2018:2243-1 |
| SLES 15 | gpg2 | 2.2.5-4.3.1 | SUSE-SU-2018:1814-1 |
| SLES 12 SP3 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SLES 12 SP2 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-2, SUSE-SU-2018:1698-1 |
| SLES 12 SP1 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SLES 12 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP4 | gpg2 | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SLES 11 SP3 | gpg2 | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SLES for SAP 12 SP3 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SLES for SAP 12 SP2 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SLES for SAP 12 SP1 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SLES for SAP 11 SP4 | gpg2 | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE OpenStack Cloud 7 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | gpg2 | 2.0.9-25.33.42.3.1 | SUSE-SU-2018:1696-1 |
| SUSE Enterprise Storage 4 | gpg2 | 2.0.24-9.3.1 | SUSE-SU-2018:1698-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | enigmail | 2.2.4-1.4 | openSUSE-SU-2024:10736-1 |
| openSUSE Tumbleweed | gpg2 | 2.2.27-2.4 | openSUSE-SU-2024:10815-1 |
| openSUSE Tumbleweed | python-python-gnupg | 0.5.2-1.5 | openSUSE-SU-2026:11755-1, openSUSE-SU-2024:14158-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | gnupg | 2.2.8-r0 | — |
| Alpine v3.23 | gnupg | 2.2.8-r0 | — |
| Alpine v3.22 | gnupg | 2.2.8-r0 | — |
| Alpine v3.21 | gnupg | 2.2.8-r0 | — |
| Alpine v3.20 | gnupg | 2.2.8-r0 | — |
Show 16 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | gnupg | 2.2.8-r0 | — |
| Alpine v3.18 | gnupg | 2.2.8-r0 | — |
| Alpine v3.17 | gnupg | 2.2.8-r0 | — |
| Alpine v3.16 | gnupg | 2.2.8-r0 | — |
| Alpine v3.15 | gnupg | 2.2.8-r0 | — |
| Alpine v3.15 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.14 | gnupg | 2.2.8-r0 | — |
| Alpine v3.14 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.13 | gnupg | 2.2.8-r0 | — |
| Alpine v3.13 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.12 | gnupg | 2.2.8-r0 | — |
| Alpine v3.12 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.11 | gnupg | 2.2.8-r0 | — |
| Alpine v3.11 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.10 | gnupg | 2.2.8-r0 | — |
| Alpine v3.10 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.9 | gnupg | 2.2.8-r0 | — |
| Alpine v3.9 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.8 | gnupg | 2.2.8-r0 | — |
| Alpine v3.8 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.7 | gnupg | 2.2.3-r1 | — |
| Alpine v3.7 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.6 | gnupg | 2.2.3-r1 | — |
| Alpine v3.6 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.5 | gnupg | 2.1.15-r1 | — |
| Alpine v3.5 | gnupg1 | 1.4.22-r1 | — |
| Alpine v3.4 | gnupg | 2.1.12-r1 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | gnupg2 +1 | 2.0.22-5.amzn2.0.2 | ALAS2-2018-1045 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | gnupg2 +1 | 2.0.22-5.el7_5 | ELSA-2018-2181 |
Advisories 21
- openSUSE-SU-2026:11755-1 python313-python-gnupg-0.5.6-2.1 on GA media SUSE / openSUSE Security Updates · Sep 12, 2026
- USN-4839-1 python-gnupg vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- RHSA-2018:2180 Red Hat Security Advisory: gnupg2 security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2018:2181 Red Hat Security Advisory: gnupg2 security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-3675-1 gnupg, gnupg2 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-3964-1 python-gnupg vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-3675-2 gnupg2 vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-4222-1 gnupg2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-4223-1 gnupg1 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2862-1 python-gnupg - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-4224-1 gnupg - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:2243-1 Security update for enigmail SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1698-2 Security update for gpg2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14158-1 python310-python-gnupg-0.5.2-1.5 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1698-1 Security update for gpg2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10815-1 dirmngr-2.2.27-2.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10736-1 enigmail-2.2.4-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1814-1 Security update for gpg2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1696-1 Security update for gpg2 SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2018-1045 Important: gnupg2 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Aug 9, 2018
- ELSA-2018-2181 Important: gnupg2 security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jul 11, 2018
References
- USN-3675-2 vendor-advisory
- RHSA-2018:2180 vendor-advisory
- https://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html
- http://openwall.com/lists/oss-security/2018/06/08/2
- DSA-4222 vendor-advisory
- RHSA-2018:2181 vendor-advisory
- https://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0
- DSA-4224 vendor-advisory
- 104450 vdb-entry
- DSA-4223 vendor-advisory
- USN-3675-3 vendor-advisory
- 1041051 vdb-entry
- USN-3675-1 vendor-advisory
- https://dev.gnupg.org/T4012
- [oss-security] 20190430 Spoofing OpenPGP and S/MIME Signatures in Emails (multiple clients) mailing-list
- 20190430 OpenPGP and S/MIME signature forgery attacks in multiple email clients mailing-list
- http://packetstormsecurity.com/files/152703/Johnny-You-Are-Fired.html
- USN-3964-1 vendor-advisory
- https://github.com/RUB-NDS/Johnny-You-Are-Fired
- https://github.com/RUB-NDS/Johnny-You-Are-Fired/blob/master/paper/johnny-fired.pdf
- [debian-lts-announce] 20211228 [SECURITY] [DLA 2862-1] python-gnupg security update mailing-list