{"id":"CVE-2022-24771","aliases":["CVE-2022-24771","GHSA-cfm4-qjh2-4765"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Verification of Cryptographic Signature in node-forge","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nRSA 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.\n\n### Patches\n\nThe issue has been addressed in `node-forge` `1.3.0`.\n\n### References\n\nFor more information, please see\n[\"Bleichenbacher's RSA signature forgery based on implementation error\"](https://mailarchive.ietf.org/arch/msg/openpgp/5rnE9ZRN1AokBVj3VqblGlP63QE/)\nby Hal Finney.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [forge](https://github.com/digitalbazaar/forge)\n* Email us at [example email address](mailto:security@digitalbazaar.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Forge (también llamado \"node-forge\") es una implementación nativa de la seguridad de la capa de transporte en JavaScript. En versiones anteriores a 1.3.0, el código de verificación de firmas RSA PKCS#1  versión v1.5, es indulgente a la hora de comprobar la estructura del algoritmo de resumen. Esto puede permitir una estructura diseñada que roba bytes de relleno y usa la parte no comprobada del mensaje codificado PKCS#1 para falsificar una firma cuando es usado un exponente público bajo. El problema ha sido abordado en \"node-forge\" versión 1.3.0. Actualmente no se presentan medidas de mitigación conocidas","source":"nvd"}],"published":"2022-03-18T13:25:11.000Z","modified":"2026-06-17T04:32:29.013Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"version":"< 1.3.0","status":"affected"}],"vendor":"digitalbazaar","product":"forge","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.0"}],"ecosystem":"npm","package":"node-forge","purl":"pkg:npm/node-forge","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.3.0"}],"vendor":"digitalbazaar","product":"forge","cpe":"cpe:2.3:a:digitalbazaar:forge:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24771","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/digitalbazaar/forge/commit/bb822c02df0b61211836472e29b9790cc541cdb2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/digitalbazaar/forge","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-23T15:56:40.258Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24771","url":"https://www.cve.org/CVERecord?id=CVE-2022-24771","licence":"CVE Terms of Use","modified":"2025-04-23T18:46:25.686Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cfm4-qjh2-4765","url":"https://github.com/advisories/GHSA-cfm4-qjh2-4765","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:35.796Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24771","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24771","licence":"Public domain","modified":"2026-06-17T04:32:29.013Z"}],"updatedAt":"2026-11-25T22:58:10.161Z","epss":{"score":0.00779,"percentile":0.57094,"date":"2026-12-01T12:00:22.000Z"}}