Skip to content
Noroxi
CVE-2018-12020· NVD / CVE Program· CNA mitre

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

Noroxi assessment

Priority: Monitor (action score 32/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 8.2% (FIRST EPSS); higher than 94.8% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: gnupg (Alpine:v3.10) 2.2.8-r0; gnupg1 (Alpine:v3.10) 1.4.22-r1; gnupg (Alpine:v3.4) 2.1.12-r1.

Low priority for now. Upgrade to gnupg (Alpine:v3.10) 2.2.8-r0; gnupg1 (Alpine:v3.10) 1.4.22-r1; gnupg (Alpine:v3.4) 2.1.12-r1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

HighCVSS 7.5 · v3.1—No exploit Fix available
Published
Jun 8, 2018
Updated
Jun 16, 2026
EPSS
8.2% · 94th percentile

Report tools

JSON

Action score

32

Monitor

Low priority for now.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
2 / 30 · 8.2%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2018-12020

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
gnupggnupg
redhatenterprise linux desktop
redhatenterprise linux server
redhatenterprise linux server aus
redhatenterprise linux server eus
redhatenterprise linux server tus
redhatenterprise linux workstation
canonicalubuntu linux
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • 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
  • 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

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.10gnupgbefore 2.2.8-r02.2.8-r0
Alpine:v3.10gnupg1before 1.4.22-r11.4.22-r1
Alpine:v3.4gnupgbefore 2.1.12-r12.1.12-r1
Alpine:v3.5gnupgbefore 2.1.15-r12.1.15-r1
Alpine:v3.6gnupgbefore 2.2.3-r12.2.3-r1
Debian:12gnupg1before 1.4.22-51.4.22-5
Debian:12gnupg2before 2.2.8-12.2.8-1
Debian:8gnupgbefore 1.4.18-7+deb8u51.4.18-7+deb8u5
Debian:8gnupg2before 2.0.26-6+deb8u22.0.26-6+deb8u2
Debian:9gnupg1before 1.4.21-4+deb9u11.4.21-4+deb9u1
Debian:9gnupg2before 2.1.18-8~deb9u22.1.18-8~deb9u2
Debian:9python-gnupgbefore 0.3.9-1+deb9u10.3.9-1+deb9u1
openSUSE:Tumbleweedenigmailbefore 2.2.4-1.42.2.4-1.4
openSUSE:Tumbleweedgpg2before 2.2.27-2.42.2.27-2.4
openSUSE:Tumbleweedpython-python-gnupgbefore 0.5.6-2.10.5.6-2.1
openSUSE:Tumbleweedpython-python-gnupgbefore 0.5.2-1.50.5.2-1.5
Red Hat:enterprise_linux:6::clientgnupg2before 0:2.0.14-9.el6_100:2.0.14-9.el6_10
Red Hat:enterprise_linux:6::clientgnupg2-debuginfobefore 0:2.0.14-9.el6_100:2.0.14-9.el6_10
Red Hat:enterprise_linux:6::clientgnupg2-smimebefore 0:2.0.14-9.el6_100:2.0.14-9.el6_10
Red Hat:enterprise_linux:7::clientgnupg2before 0:2.0.22-5.el7_50:2.0.22-5.el7_5
Red Hat:enterprise_linux:7::clientgnupg2-debuginfobefore 0:2.0.22-5.el7_50:2.0.22-5.el7_5
Red Hat:enterprise_linux:7::clientgnupg2-smimebefore 0:2.0.22-5.el7_50:2.0.22-5.el7_5
SUSE:Linux Enterprise Module for Basesystem 15gpg2before 2.2.5-4.3.12.2.5-4.3.1
SUSE:Linux Enterprise Point of Sale 11 SP3gpg2before 2.0.9-25.33.42.3.12.0.9-25.33.42.3.1

+2

Other highest-scoring records for the same primary product.

  • CVE-2026-24881In GnuPG before 2.5.17, a crafted CMS (S/MIME) EnvelopedData message carrying an oversized wrapped session key can cause a stack-based buffe
    40Plan
  • CVE-2008-1530GnuPG (gpg) 1.4.8 and 2.0.8 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via crafted dup
    38Monitor
  • CVE-2018-1000858GnuPG version 2.1.12 - 2.2.11 contains a Cross ite Request Forgery (CSRF) vulnerability in dirmngr that can result in Attacker controlled CS
    35Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2014-4617Jun 25, 2014 · The do_uncompress function in g10/compress.c in GnuPG 1.x before 1.4.17 and 2.x before 2.0.24 allows context-dependent attackers to cause a
    21Monitor
  • ← EarlierCVE-2018-9234Apr 3, 2018 · GnuPG 2.2.4 and 2.2.5 does not enforce a configuration in which key certification requires an offline master Certify key, which results in a
    31Monitor
  • Later →CVE-2019-13050Jun 29, 2019 · Interaction between the sks-keyserver code through 1.2.0 of the SKS keyserver network, and GnuPG through 2.2.16, makes it risky to have a Gn
    31Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:gnupg2.2.8-r0 · Alpine:v3.10Package registry (OSV)
alpine:gnupg11.4.22-r1 · Alpine:v3.10Package registry (OSV)
debian:gnupg1.4.18-7+deb8u5 · Debian:8Package registry (OSV)
debian:gnupg11.4.22-5 · Debian:12Package registry (OSV)
debian:gnupg22.2.8-1 · Debian:12Package registry (OSV)
debian:python-gnupg0.3.9-1+deb9u1 · Debian:9Package registry (OSV)
opensuse:enigmail2.2.4-1.4 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:gpg22.2.27-2.4 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python-python-gnupg0.5.2-1.5 · openSUSE:TumbleweedPackage registry (OSV)
red hat:gnupg20:2.0.14-9.el6_10 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:gnupg2-debuginfo0:2.0.14-9.el6_10 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:gnupg2-smime0:2.0.14-9.el6_10 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
suse:enigmail2.0.7-3.7.2 · SUSE:Linux Enterprise Workstation Extension 15Package registry (OSV)
suse:gpg22.0.9-25.33.42.3.1 · SUSE:Linux Enterprise Point of Sale 11 SP3Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
high · data or configuration can be modified
Availability
none
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
High
Availability impact
None

CVSS vector

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

nvd-primary

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records