Improper Verification of Cryptographic Signature Affecting golang.org/x/crypto/openpgp/clearsign package, versions <0.1.0


0.0
medium

Snyk CVSS

    Attack Complexity High
    Integrity High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.73% (81st percentile)
Expand this section
NVD
5.9 medium

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 ID SNYK-GOLANG-GOLANGORGXCRYPTOOPENPGPCLEARSIGN-5813980
  • published 2 Aug 2023
  • disclosed 24 May 2022
  • credit Aida Mynzhasova

How to fix?

Upgrade golang.org/x/crypto/openpgp/clearsign to version 0.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the crypto/openpgp/clearsign/clearsign.go component. An attacker can spoof the 'Hash' Armor Header, leading a victim to believe the signature was generated using a different message digest algorithm than what was actually used. Moreover, the attacker can prepend arbitrary text to cleartext messages without invalidating the signatures.