CVE & CISA-KEV Catalog

CVE-2018-12020

HIGHEPSS 95th pctl
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
gnupg2Amazon
Fixed in:0:2.0.22-5.amzn2.0.2
Fixed in:0:2.0.22-5.amzn2.0.2
gnupg2-debuginfoAmazon
Fixed in:0:2.0.22-5.amzn2.0.2
Fixed in:0:2.0.22-5.amzn2.0.2
gnupg2-smimeAmazon
Fixed in:0:2.0.22-5.amzn2.0.2
Fixed in:0:2.0.22-5.amzn2.0.2
gnupg1Debian
Fixed in:1.4.22-5CVE-2018-12020
Fixed in:1.4.22-5CVE-2018-12020
Fixed in:1.4.22-5CVE-2018-12020
gnupgUbuntu
Fixed in:1.4.16-1ubuntu2.5USN-3675-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:1.4.20-1ubuntu3.2USN-3675-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.2.4-1ubuntu1.1USN-3675-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

gnupg2Ubuntu
Fixed in:2.0.22-3ubuntu1.4USN-3675-2

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:2.1.11-6ubuntu2.1USN-3675-2

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.2.4-1ubuntu1.1USN-3675-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

gpgUbuntu
Fixed in:2.2.4-1ubuntu1.1USN-3675-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

python-gnupgUbuntu
Fixed in:0.3.6-1ubuntu0.1~esm1USN-4839-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:0.3.8-2ubuntu0.1~esm1USN-4839-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:0.4.1-1ubuntu1.18.04.1USN-3964-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

python3-gnupgUbuntu
Fixed in:0.3.6-1ubuntu0.1~esm1USN-4839-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:0.3.8-2ubuntu0.1~esm1USN-4839-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:0.4.1-1ubuntu1.18.04.1USN-3964-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Exploit Intelligence

8.55%probability of exploitation in 30 days
95thpercentile

High risk: more likely to be exploited than 95% of all known CVEs.

References

Related Vulnerabilities

Other CWE-706 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-24813Critical9.8100%KEVFix
CVE-2020-15505Critical9.8100%KEVFix
CVE-2021-40539Critical9.899%KEV + RansomFix
CVE-2024-27292High7.569%-Fix
CVE-2021-40856High7.550%--
CVE-2021-24122Medium5.923%-Fix

Common questions

How do I fix CVE-2018-12020?

Published advisories record a fix for 9 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2018-12020 being actively exploited?

Not that we know of. CVE-2018-12020 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 8.5% is the estimated probability that it will be exploited in the next 30 days. That is higher than 95% of all scored CVEs.

How severe is CVE-2018-12020?

CVE-2018-12020 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2018-12020 affect?

Published advisories record a fix for gnupg2 (Amazon), gnupg2-debuginfo (Amazon), gnupg2-smime (Amazon), gnupg1 (Debian), and 5 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2018-12020
CVE-2018-12020 severity badge

Markdown

[![CVE-2018-12020](https://tridentstack.com/cve/badge/CVE-2018-12020.svg)](https://tridentstack.com/cve/CVE-2018-12020)

HTML

<a href="https://tridentstack.com/cve/CVE-2018-12020"><img src="https://tridentstack.com/cve/badge/CVE-2018-12020.svg" alt="CVE-2018-12020"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.