CVE-2018-12020 Other in n/a

High 7.5 Published Updated

Attackers can spoof GnuPG status output via crafted filenames when using status-fd, potentially bypassing signature verification checks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-12020?

CVE-2018-12020 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 8 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-706

Which versions are affected by CVE-2018-12020?

It affects 9 products.

Linux distribution packages (40)
gnupg2 Red Hat:enterprise_linux:6::clientAll versions0:2.0.14-9.el6_10
gnupg2-debuginfo Red Hat:enterprise_linux:6::clientAll versions0:2.0.14-9.el6_10
gnupg2-smime Red Hat:enterprise_linux:6::clientAll versions0:2.0.14-9.el6_10
gnupg2 Red Hat:enterprise_linux:6::computenodeAll versions0:2.0.14-9.el6_10
gnupg2-debuginfo Red Hat:enterprise_linux:6::computenodeAll versions0:2.0.14-9.el6_10
gnupg2-smime Red Hat:enterprise_linux:6::computenodeAll versions0:2.0.14-9.el6_10
gnupg2 Red Hat:enterprise_linux:6::serverAll versions0:2.0.14-9.el6_10
gnupg2-debuginfo Red Hat:enterprise_linux:6::serverAll versions0:2.0.14-9.el6_10
gnupg2-smime Red Hat:enterprise_linux:6::serverAll versions0:2.0.14-9.el6_10
gnupg2 Red Hat:enterprise_linux:6::workstationAll versions0:2.0.14-9.el6_10
gnupg2-debuginfo Red Hat:enterprise_linux:6::workstationAll versions0:2.0.14-9.el6_10
gnupg2-smime Red Hat:enterprise_linux:6::workstationAll versions0:2.0.14-9.el6_10
gnupg2 Red Hat:enterprise_linux:7::clientAll versions0:2.0.22-5.el7_5
gnupg2-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:2.0.22-5.el7_5
gnupg2-smime Red Hat:enterprise_linux:7::clientAll versions0:2.0.22-5.el7_5
gnupg2 Red Hat:enterprise_linux:7::computenodeAll versions0:2.0.22-5.el7_5
gnupg2-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:2.0.22-5.el7_5
gnupg2-smime Red Hat:enterprise_linux:7::computenodeAll versions0:2.0.22-5.el7_5
gnupg2 Red Hat:enterprise_linux:7::serverAll versions0:2.0.22-5.el7_5
gnupg2-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:2.0.22-5.el7_5
gnupg2-smime Red Hat:enterprise_linux:7::serverAll versions0:2.0.22-5.el7_5
gnupg2 Red Hat:enterprise_linux:7::workstationAll versions0:2.0.22-5.el7_5
gnupg2-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:2.0.22-5.el7_5
gnupg2-smime Red Hat:enterprise_linux:7::workstationAll versions0:2.0.22-5.el7_5
gpg2 SUSE:Enterprise Storage 4All versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Desktop 12 SP3All versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Module for Basesystem 15All versions2.2.5-4.3.1
gpg2 SUSE:Linux Enterprise Point of Sale 11 SP3All versions2.0.9-25.33.42.3.1
gpg2 SUSE:Linux Enterprise Server 11 SP3-LTSSAll versions2.0.9-25.33.42.3.1
gpg2 SUSE:Linux Enterprise Server 11 SP3-TERADATAAll versions2.0.9-25.33.42.3.1
gpg2 SUSE:Linux Enterprise Server 11 SP4All versions2.0.9-25.33.42.3.1
gpg2 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Server 12 SP2-BCLAll versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Server 12 SP3All versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Server 12-LTSSAll versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Server for SAP Applications 11 SP4All versions2.0.9-25.33.42.3.1
gpg2 SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions2.0.24-9.3.1
gpg2 SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions2.0.24-9.3.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Gnupg Gnupg, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus and 3 more.

How do I fix CVE-2018-12020?

Upgrade to a fixed version.

Is CVE-2018-12020 being exploited?

There is no known exploitation of CVE-2018-12020 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-12020, CLEANSTART-2026-SJ88469, DEBIAN-CVE-2018-12020, DSA-4222-1, DSA-4223-1, DSA-4224-1 and 10 more.

Is CVE-2018-12020 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free