CVE-2019-11841
Golang/x/crypto message forgery vulnerability
Also known as GHSA-x3jr-pf6g-c48f, GO-2023-1992
Mitigation
- Upgrade golang.org/x/crypto to 0.0.0-20190424203555-c05e17bb3b2d or later.
Who should check
- Projects that depend on Go package golang.org/x/crypto (< 0.0.0-20190424203555-c05e17bb3b2d)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- golang.org/x/crypto < 0.0.0-20190424203555-c05e17bb3b2d
- Fixed in
- 0.0.0-20190424203555-c05e17bb3b2d
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v3.1, NVD)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 2.00% chance of exploitation in 30 days (percentile 81, 2026-11-26)
- CWE
- CWE-347
- Modified
Description
A message-forgery issue was discovered in crypto/openpgp/clearsign/clearsign.go in supplementary Go cryptography libraries 2019-03-25. According to the OpenPGP Message Format specification in RFC 4880 chapter 7, a cleartext signed message can contain one or more optional "Hash" Armor Headers. The "Hash" Armor Header specifies the message digest algorithm(s) used for the signature. However, the Go clearsign package ignores the value of this header, which allows an attacker to spoof it. Consequently, an attacker can lead a victim to believe the signature was generated using a different message digest algorithm than what was actually used. Moreover, since the library skips Armor Header parsing in general, an attacker can not only embed arbitrary Armor Headers, but also prepend arbitrary text to cleartext messages without invalidating the signatures.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go golang.org/x/crypto | < 0.0.0-20190424203555-c05e17bb3b2d | 0.0.0-20190424203555-c05e17bb3b2d | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-11841. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-11841.md Affected: golang.org/x/crypto < 0.0.0-20190424203555-c05e17bb3b2d Fixed in: 0.0.0-20190424203555-c05e17bb3b2d Steps: 1. Search this machine and project for golang.org/x/crypto (Go), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
Other
- https://sec-consult.com/
- https://go.googlesource.com/crypto/
- https://lists.debian.org/debian-lts-announce/2019/09/msg00011.html
- https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html
- https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html
- https://github.com/golang/crypto/tree/master/openpgp/clearsign
- https://groups.google.com/d/msg/golang-openpgp/6vdgZoTgbIY/K6bBY9z3DAAJ
- https://pkg.go.dev/vuln/GO-2023-1992
- https://web.archive.org/web/20201207161832/https://sec-consult.com/en/blog/advisories/cleartext-message-spoofing-in-go-cryptography-libraries-cve-2019-11841
FAQ
Is CVE-2019-11841 being exploited?
There is no confirmed exploitation: CVE-2019-11841 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.00% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-11841?
Medium: CVSS 5.9 (v3.1, scored by NVD). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2019-11841?
golang.org/x/crypto < 0.0.0-20190424203555-c05e17bb3b2d.
Is there a fix for CVE-2019-11841?
Yes. Fixed in 0.0.0-20190424203555-c05e17bb3b2d. Upgrade golang.org/x/crypto to 0.0.0-20190424203555-c05e17bb3b2d or later.
How do I check if I'm affected by CVE-2019-11841?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.