CVE-2018-12020: High severity redhat Enterprise Linux Desktop vulnerability

Published Jun 8, 2018
·
Updated

GnuPG before version 2.2.8 does not properly sanitize original filenames of signed or encrypted messages allowing for the insertion of line feeds and other control characters. An attacker could exploit this by injecting such characters to craft status messages and fake the validity of signatures.

External Reference:

https://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html

Upstream Issue:

https://dev.gnupg.org/T4012

Upstream Patches:

https://dev.gnupg.org/rG2326851c60793653069494379b16d84e4c10a0ac https://dev.gnupg.org/rG210e402acd3e284b32db1901e43bf1470e659e49 https://dev.gnupg.org/rG13f135c7a252cc46cff96e75968d92b6dc8dce1b

Other sources

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.

Launchpad

Affected Software

24 affected componentsFixes available
redhat/gnupg2<2.2.8
2.2.8
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Eus=7.5
redhat Enterprise Linux Server Eus=7.6
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Workstation=6.0
redhat Enterprise Linux Workstation=7.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=18.10
Canonical Ubuntu Linux=19.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
gnupg GnuPG<2.2.8
debian/enigmail
2:2.2.4-0.3
debian/gnupg1
1.4.23-1.11.4.23-3
debian/gnupg2
2.2.27-2+deb11u22.2.27-2+deb11u32.2.40-1.1+deb12u22.4.7-21+deb13u12.4.9-7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/gnupg2 to a version that resolves this vulnerability.

    Fixed in 2.2.8
  2. Upgrade

    Upgrade debian/enigmail to a version that resolves this vulnerability.

    Fixed in 2:2.2.4-0.3
  3. Upgrade

    Upgrade debian/gnupg1 to a version that resolves this vulnerability.

    Fixed in 1.4.23-1.1Fixed in 1.4.23-3
  4. Upgrade

    Upgrade debian/gnupg2 to a version that resolves this vulnerability.

    Fixed in 2.2.27-2+deb11u2Fixed in 2.2.27-2+deb11u3Fixed in 2.2.40-1.1+deb12u2Fixed in 2.4.7-21+deb13u1Fixed in 2.4.9-7
  5. Upgrade

    Upgrade GnuPG to a version that resolves this vulnerability.

    Fixed in 2.2.8
  6. Compensating control

    If you use GnuPG with the "--status-fd 2" option to drive other programs, treat status output from GnuPG as untrusted and ensure downstream consumers do not accept spoofed GOODSIG/VALIDSIG-style messages generated via unsanitized original filenames (e.g., validate status messages out-of-band before acting on them).

Event History

Jun 8, 2018
Data Sourced
08:15 PM
SeverityAffected Software
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Data Sourced
via NVD·09:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:48 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·04:22 PM
RemedyDescriptionSeverityAffected Software
Jul 17, 2026
Data Sourced
via Debian·11:22 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-12020?

CVE-2018-12020 is considered a moderate severity vulnerability as it can lead to signature forgery.

2

How do I fix CVE-2018-12020?

To fix CVE-2018-12020, update GnuPG to version 2.2.8 or later.

3

What systems are affected by CVE-2018-12020?

CVE-2018-12020 affects GnuPG versions prior to 2.2.8 and numerous distributions including Red Hat and Debian.

4

What type of vulnerability is CVE-2018-12020?

CVE-2018-12020 is an input validation vulnerability related to improper sanitization of filenames.

5

Can CVE-2018-12020 be exploited remotely?

Yes, CVE-2018-12020 can potentially be exploited remotely through crafted messages that utilize the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203