7.5
CWE
706
Advisory Published
CVE Published
Updated

CVE-2018-12020

First published: Fri Jun 08 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: <a href="https://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html">https://lists.gnupg.org/pipermail/gnupg-announce/2018q2/000425.html</a> Upstream Issue: <a href="https://dev.gnupg.org/T4012">https://dev.gnupg.org/T4012</a> Upstream Patches: <a href="https://dev.gnupg.org/rG2326851c60793653069494379b16d84e4c10a0ac">https://dev.gnupg.org/rG2326851c60793653069494379b16d84e4c10a0ac</a> <a href="https://dev.gnupg.org/rG210e402acd3e284b32db1901e43bf1470e659e49">https://dev.gnupg.org/rG210e402acd3e284b32db1901e43bf1470e659e49</a> <a href="https://dev.gnupg.org/rG13f135c7a252cc46cff96e75968d92b6dc8dce1b">https://dev.gnupg.org/rG13f135c7a252cc46cff96e75968d92b6dc8dce1b</a>

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
redhat/gnupg2<2.2.8
2.2.8
Red Hat Enterprise Linux Desktop=6.0
Red Hat Enterprise Linux Desktop=7.0
Red Hat Enterprise Linux Server=6.0
Red Hat Enterprise Linux Server=7.0
Red Hat Enterprise Linux Server=7.6
Red Hat Enterprise Linux Server=7.5
Red Hat Enterprise Linux Server=7.6
Red Hat Enterprise Linux Server=7.6
Red Hat Enterprise Linux Workstation=6.0
Red Hat Enterprise Linux Workstation=7.0
Ubuntu=12.04
Ubuntu=14.04
Ubuntu=16.04
Ubuntu=17.10
Ubuntu=18.04
Ubuntu=18.10
Ubuntu=19.04
Debian Linux=8.0
Debian Linux=9.0
GnuPG 2 (Gnu Privacy Guard)<2.2.8
debian/enigmail
2:2.2.4-0.3
debian/gnupg1
1.4.23-1.1
1.4.23-3
debian/gnupg2
2.2.27-2+deb11u2
2.2.40-1.1
2.4.7-15
2.4.7-17

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2018-12020?

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

  • How do I fix CVE-2018-12020?

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

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

  • What type of vulnerability is CVE-2018-12020?

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203