Improper Input Validation Affecting gnupg2 package, versions <0:2.0.22-5.el7_5


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
8.25% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL7-GNUPG2-4792126
  • published26 Jul 2021
  • disclosed8 Jun 2018

Introduced: 8 Jun 2018

CVE-2018-12020  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade RHEL:7 gnupg2 to version 0:2.0.22-5.el7_5 or higher.
This issue was patched in RHSA-2018:2181.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gnupg2 package and not the gnupg2 package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1