CVEfocus › CVE database › CVE-2018-12020

CVE-2018-12020

CVSS 7.5 HighEPSS 8.2% (higher than 95% of CVEs)Published 2018-06-08Updated 2024-08-05Assigner: mitre

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

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

48Fixed
8Fix pending
2Will not fix
12Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04gnupg1Not affected
vulnerable_code_not_present
Ubuntu 26.04python-gnupgNot affected
vulnerable_code_not_present
Ubuntu 25.10gnupg1Not affected
vulnerable_code_not_present
Ubuntu 25.10python-gnupgNot affected
vulnerable_code_not_present
Ubuntu 24.04gnupg1Not affected
vulnerable_code_not_present
Ubuntu 24.04python-gnupgNot affected
vulnerable_code_not_present
Ubuntu 22.04enigmailFix pendingUBUNTU-CVE-2018-12020
Ubuntu 22.04gnupg1Not affected
vulnerable_code_not_present
Ubuntu 22.04python-gnupgNot affected
vulnerable_code_not_present
Ubuntu 20.04enigmailFix pendingUBUNTU-CVE-2018-12020
Ubuntu 20.04gnupg1Not affected
vulnerable_code_not_present
Ubuntu 20.04python-gnupgNot affected
vulnerable_code_not_present
Ubuntu 18.04enigmailFix pendingUBUNTU-CVE-2018-12020
Ubuntu 18.04gnupg1Fix pending1.4.22-3ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2018-12020
Ubuntu 18.04gnupg2Fixed2.2.4-1ubuntu1.1UBUNTU-CVE-2018-12020
Ubuntu 18.04python-gnupgFixed0.4.1-1ubuntu1.18.04.1UBUNTU-CVE-2018-12020
Ubuntu 16.04enigmailFix pendingUBUNTU-CVE-2018-12020
Ubuntu 16.04gnupgFixed1.4.20-1ubuntu3.2UBUNTU-CVE-2018-12020
Ubuntu 16.04gnupg2Fixed2.1.11-6ubuntu2.1UBUNTU-CVE-2018-12020
Ubuntu 16.04python-gnupgFix pending0.3.8-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2018-12020
Ubuntu 14.04enigmailFix pending
Ubuntu 14.04gnupgFixed1.4.16-1ubuntu2.5UBUNTU-CVE-2018-12020
Ubuntu 14.04gnupg2Fixed2.0.22-3ubuntu1.4UBUNTU-CVE-2018-12020
Ubuntu 14.04python-gnupgFix pending0.3.6-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2018-12020
Debian 14gnupg1Fixed1.4.22-5DEBIAN-CVE-2018-12020
Debian 14gnupg2Fixed2.2.8-1DEBIAN-CVE-2018-12020
Debian 13gnupg1Fixed1.4.22-5DEBIAN-CVE-2018-12020
Debian 13gnupg2Fixed2.2.8-1DEBIAN-CVE-2018-12020
Debian 12gnupg1Fixed1.4.22-5DEBIAN-CVE-2018-12020
Debian 12gnupg2Fixed2.2.8-1DEBIAN-CVE-2018-12020
Red Hat Enterprise Linux 8gnupg2Not affected
Red Hat Enterprise Linux 8gnupg2-smimeNot affected
Red Hat Enterprise Linux 7gnupg2Fixed0:2.0.22-5.el7_5RHSA-2018:2181
Red Hat Enterprise Linux 7gnupg2-smimeFixed0:2.0.22-5.el7_5RHSA-2018:2181
Red Hat Enterprise Linux 6gnupg2Fixed0:2.0.14-9.el6_10RHSA-2018:2180
Red Hat Enterprise Linux 6gnupg2-smimeFixed0:2.0.14-9.el6_10RHSA-2018:2180
Red Hat Enterprise Linux 5gnupgWill not fix
Will not fix
Red Hat Enterprise Linux 5gnupg2Will not fix
Will not fix
Alpine Linux 3.24gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.23gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.22gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.21gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.20gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.19gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.18gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.17gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.16gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.15gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.15gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.14gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.14gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.13gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.13gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.12gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.12gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.11gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.11gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.10gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.10gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.9gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.9gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.8gnupgFixed2.2.8-r0ALPINE-CVE-2018-12020
Alpine Linux 3.8gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.7gnupgFixed2.2.3-r1ALPINE-CVE-2018-12020
Alpine Linux 3.7gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.6gnupgFixed2.2.3-r1ALPINE-CVE-2018-12020
Alpine Linux 3.6gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.5gnupgFixed2.1.15-r1ALPINE-CVE-2018-12020
Alpine Linux 3.5gnupg1Fixed1.4.22-r1ALPINE-CVE-2018-12020
Alpine Linux 3.4gnupgFixed2.1.12-r1ALPINE-CVE-2018-12020

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.