Skip to content
OpenAdvisories
Unscored CVE-2018-12020 EUVD-2018-4011GHSA-678p-6r6j-65f9

mainproc.c in GnuPG before 2.2.8 mishandles the original filename during decryption and verification actions, which allows remote attackers…

Published Jun 8, 2018 · Updated Aug 5, 2024 · 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.

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2 gnupg2 +1 2.0.22-5.amzn2.0.2 ALAS2-2018-1045

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 gnupg2 +1 2.0.22-5.el7_5 ELSA-2018-2181

Advisories 21

References