{"id":"CVE-2022-24771","published":"2022-03-18T13:25:11Z","modified":"2025-04-23T18:46:25Z","title":"Improper Verification of Cryptographic Signature in node-forge","vendor":"digitalbazaar","product":"forge","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00779,"percentile":0.55764,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1","tags":["x_refsource_MISC"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":11.15},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"digitalbazaar","affectedVersions":[{"vendor":"digitalbazaar","product":"forge","versions":["< 1.3.0"]}],"affected":[{"ecosystem":"npm","package":"node-forge","vulnerableRanges":["<1.3.0"],"patched":["1.3.0"],"from":["GHSA-cfm4-qjh2-4765"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-1403","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-digitalbazaar-forge-cve-2022-24771","children":[{"from":"CVE-2022-24771","to":"CVE-2026-33894","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This issue is similar to CVE-2022-24771, but adds bytes in an addition field within the ASN structure, rather than outside of it.","from":"CVE.org","in":"CVE-2026-33894"},{"kind":"osv-related","provenance":"source","id":"GHSA-ppp5-5v6c-4jwp","via":"reference","url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765"}]},{"from":"CVE-2022-24771","to":"CVE-2026-85393","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-ppp5-5v6c-4jwp","via":"reference","url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765"}]}],"packageHistory":[{"cve":"CVE-2020-7720","published":"2020-09-01","fixed":"0.10.0","kev":false},{"cve":"CVE-2022-0122","published":"2022-01-06","fixed":"1.0.0","kev":false,"link":{"from":"CVE-2022-0122","to":"CVE-2022-24771","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:node-forge","fromFixed":"1.0.0","toFixed":"1.3.0","daysApart":71}]}},{"cve":"CVE-2022-24771","published":"2022-03-18","fixed":"1.3.0","kev":false},{"cve":"CVE-2022-24772","published":"2022-03-18","fixed":"1.3.0","kev":false},{"cve":"CVE-2022-24773","published":"2022-03-18","fixed":"1.3.0","kev":false},{"cve":"CVE-2025-12816","published":"2025-11-25","fixed":"1.3.2","kev":false}],"package":"npm:node-forge"}}