CVE-2022-24772
HIGH 7.5CVSS 3.1Improper Verification of Cryptographic Signature in node-forge
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 does not check for tailing garbage bytes after decoding a DigestInfo ASN.1 structure. This can allow padding bytes to be removed and garbage data added 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.
- Published
- 18 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-347
- Also known as
- GHSA-x4jg-mjrx-434g
- Sources
- NVDJSONOSV GHSA-x4jg-mjrx-434gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | digitalbazaar | forgecpe:2.3:a:digitalbazaar:forge:*:*:*:*:*:node.js:*:* |
< 1.3.0 | 1.3.0 |
| OSV | npm | node-forge | < 1.3.0 | 1.3.0 |
References
- https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1 · Patch, Third Party Advisory, WEB
- https://github.com/digitalbazaar/forge/commit/bb822c02df0b61211836472e29b9790cc541cdb2 · Patch, Third Party Advisory, WEB
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-x4jg-mjrx-434g · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24772 · ADVISORY
- https://github.com/digitalbazaar/forge · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Mar 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Mar 2022)