# CVE-2022-24771: Improper Verification of Cryptographic Signature in node-forge

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2022-03-18T13:25:11.000Z
- Modified: 2026-06-17T04:32:29.013Z
- Also known as: GHSA-cfm4-qjh2-4765
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- digitalbazaar forge: < 1.3.0; before 1.3.0
- node-forge (npm): before 1.3.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765> (third-party-advisory, web)
- <https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24771> (advisory)
- <https://github.com/digitalbazaar/forge/commit/bb822c02df0b61211836472e29b9790cc541cdb2> (web)
- <https://github.com/digitalbazaar/forge> (package)

## Sources

- CVE List: [CVE-2022-24771](https://www.cve.org/CVERecord?id=CVE-2022-24771), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-cfm4-qjh2-4765](https://github.com/advisories/GHSA-cfm4-qjh2-4765), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24771](https://nvd.nist.gov/vuln/detail/CVE-2022-24771), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24771 · Whole record: https://cve.day/CVE-2022-24771.json · Rebuilt by cve.day 2026-11-25T22:58:10.161Z
