{"id":"CVE-2022-24772","published":"2022-03-18T13:30:20Z","modified":"2025-04-23T18:46:10Z","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 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.","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.01112,"percentile":0.66781,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1","tags":["x_refsource_MISC"]},{"url":"https://github.com/digitalbazaar/forge/commit/bb822c02df0b61211836472e29b9790cc541cdb2","tags":["x_refsource_MISC"]},{"url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-x4jg-mjrx-434g","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":13.36},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"digitalbazaar","affectedVersions":[{"vendor":"digitalbazaar","product":"forge","versions":["< 1.3.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:56:34.551775Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"node-forge","vulnerableRanges":["<1.3.0"],"patched":["1.3.0"],"from":["GHSA-x4jg-mjrx-434g"],"provenance":"source"}],"summary":{"text":"The flaw is an improper verification of cryptographic signatures in the forge (node-forge) JavaScript TLS implementation, specifically in its RSA PKCS#1 v1.5 signature verification code, which fails to check for trailing garbage bytes after decoding a DigestInfo ASN.1 structure. An attacker over the network, without authentication or user interaction, can exploit this when a low public exponent is used, by removing padding bytes and adding garbage data to forge a signature that verification accepts.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:28Z"},"euvd":{"id":"EUVD-2022-1576","exploited":false,"provenance":"source"},"lineage":{"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-24772","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},{"cve":"CVE-2025-66030","published":"2025-11-26","fixed":"1.3.2","kev":false}],"package":"npm:node-forge"}}