Race Condition Affecting gnupg package, versions [,2.2.8)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (74th 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-UNMANAGED-GNUPG-2336146
  • published12 Jan 2022
  • disclosed8 Jun 2018
  • creditUnknown

Introduced: 8 Jun 2018

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

How to fix?

Upgrade gnupg to version 2.2.8 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition 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 Scores

version 3.1