CVE-2022-24771
node-forge: Signature verification leniency in checking `digestAlgorithm` structure can lead to signature forgery
Overview
Description
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.3.0, RSA PKCS#1 v1.5 signature verification code is lenient in checking the digest algorithm structure. This can allow a crafted structure that steals padding bytes and uses unchecked portion of the PKCS#1 encoded message to forge a signature when a low public exponent is being used. The issue has been addressed in node-forge version 1.3.0. There are currently no known workarounds.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-347
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | node-forge | <1.3.0 | 1.3.0 |
Open a package to see all its vulnerabilities.
Operating systems · 4 fixes
Red Hat 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | servicemesh-prometheus | affected |
| 8 | pcs +1 | wont fix |
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | node-node-forge | 0.8.1~dfsg-1+deb10u1 |
| 11 | node-node-forge | 0.10.0~dfsg-3+deb11u1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-24771
- github.com https://github.com/digitalbazaar/forge
- github.com https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1
- github.com https://github.com/digitalbazaar/forge/commit/bb822c02df0b61211836472e29b9790cc541cdb2
- github.com https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-24771
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-24771
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.