cve.bz

CVE-2018-12020 (SigSpoof)

7.5 highEPSS 8.2%Fix available

Known as SigSpoof

High (7.5). EPSS 8.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
8.2% (unchanged from 8.2% a week ago; 8.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-706 Use of Incorrectly-Resolved Name or Reference
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-12020 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-12020?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-12020?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-12020 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
canonical:ubuntu_linux19.04
debian:debian_linux8.0
debian:debian_linux9.0
gnupg:gnupgbefore 2.2.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8gnupg1.4.18-7+deb8u5DSA-4224-1
Debian8gnupg22.0.26-6+deb8u2DSA-4222-1
Debian9gnupg11.4.21-4+deb9u1DSA-4223-1
Debian9gnupg22.1.18-8~deb9u2DSA-4222-1
Debian9python-gnupg0.3.9-1+deb9u1DLA-2862-1
Debian12, 13, 14gnupg11.4.22-5DEBIAN-CVE-2018-12020
Debian12, 13, 14gnupg22.2.8-1DEBIAN-CVE-2018-12020
Ubuntu14.04:LTSgnupg1.4.16-1ubuntu2.5UBUNTU-CVE-2018-12020 USN-3675-1
Ubuntu14.04:LTSgnupg22.0.22-3ubuntu1.4UBUNTU-CVE-2018-12020 USN-3675-2
Ubuntu16.04:LTSgnupg1.4.20-1ubuntu3.2UBUNTU-CVE-2018-12020 USN-3675-1
Ubuntu16.04:LTSgnupg22.1.11-6ubuntu2.1UBUNTU-CVE-2018-12020 USN-3675-2
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 1 moreenigmailno fix listedUBUNTU-CVE-2018-12020
Ubuntu18.04:LTSgnupg22.2.4-1ubuntu1.1UBUNTU-CVE-2018-12020 USN-3675-1
Ubuntu18.04:LTSpython-gnupg0.4.1-1ubuntu1.18.04.1UBUNTU-CVE-2018-12020 USN-3964-1
UbuntuPro:14.04:LTSpython-gnupg0.3.6-1ubuntu0.1~esm1UBUNTU-CVE-2018-12020 USN-4839-1
UbuntuPro:16.04:LTSpython-gnupg0.3.8-2ubuntu0.1~esm1UBUNTU-CVE-2018-12020 USN-4839-1
UbuntuPro:18.04:LTSgnupg11.4.22-3ubuntu2+esm1UBUNTU-CVE-2018-12020 USN-9100-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moregnupg2, gnupg2-smime, gnupg2-debuginfo0:2.0.14-9.el6_10RHSA-2018:2180
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moregnupg2, gnupg2-smime, gnupg2-debuginfo0:2.0.22-5.el7_5RHSA-2018:2181
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP1-LTSS and 7 moregpg22.0.24-9.3.1SUSE-SU-2018:1698-1
SUSELinux Enterprise Module for Basesystem 15gpg22.2.5-4.3.1SUSE-SU-2018:1814-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 2 moregpg22.0.9-25.33.42.3.1SUSE-SU-2018:1696-1
SUSELinux Enterprise Server 12 SP2-BCLgpg22.0.24-9.3.1SUSE-SU-2018:1698-2
SUSELinux Enterprise Workstation Extension 15enigmail2.0.7-3.7.2SUSE-SU-2018:2243-1
openSUSETumbleweedenigmail2.2.4-1.4openSUSE-SU-2024:10736-1
openSUSETumbleweedgpg22.2.27-2.4openSUSE-SU-2024:10815-1
openSUSETumbleweedpython-python-gnupg0.5.2-1.5openSUSE-SU-2024:14158-1
openSUSETumbleweedpython-python-gnupg0.5.6-2.1openSUSE-SU-2026:11755-1
Alpinev3.4gnupg2.1.12-r1ALPINE-CVE-2018-12020
Alpinev3.5gnupg2.1.15-r1ALPINE-CVE-2018-12020
Alpinev3.5, v3.6, v3.7 and 8 moregnupg11.4.22-r1ALPINE-CVE-2018-12020
Alpinev3.6, v3.7gnupg2.2.3-r1ALPINE-CVE-2018-12020
Alpinev3.8, v3.9, v3.10 and 14 moregnupg2.2.8-r0ALPINE-CVE-2018-12020

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Product Security has rated this issue as having a security impact of Important, and a future update may address this flaw.

Red Hat's mitigation

This flaw can be mitigated by appending the --no-verbose command line flag.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6gnupg2-0:2.0.14-9.el6_10Fixed 2018-07-11RHSA-2018:2180
Red Hat Enterprise Linux 7gnupg2-0:2.0.22-5.el7_5Fixed 2018-07-11RHSA-2018:2181
Red Hat Enterprise Linux 5gnupgWill not fix
Red Hat Enterprise Linux 5gnupg2Will not fix
Red Hat Enterprise Linux 8gnupg2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-12020.

Attack patterns (CAPEC)

  • CAPEC-48 Passing Local Filenames to Functions That Expect a URL Likelihood: High · Severity: High
  • CAPEC-159 Redirect Access to Libraries Likelihood: High · Severity: Very High
  • CAPEC-177 Create files with the same name as files protected with a higher classification Severity: Very High
  • CAPEC-641 DLL Side-Loading Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON