{"id":"CVE-2020-14967","aliases":["CVE-2020-14967","GHSA-xxxq-chmp-67g4"],"related":[],"kind":"vulnerability","state":"published","title":"RSA PKCS#1 decryption vulnerability with prepending zeros in jsrsasign","summary":"An issue was discovered in the jsrsasign package before 8.0.18 for Node.js. Its RSA PKCS1 v1.5 decryption implementation does not detect ciphertext modification by prepending '\\0' bytes to ciphertexts (it decrypts modified ciphertexts without error). An attacker might prepend these bytes with the goal of triggering memory corruption issues.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the jsrsasign package before 8.0.18 for Node.js. Its RSA PKCS1 v1.5 decryption implementation does not detect ciphertext modification by prepending '\\0' bytes to ciphertexts (it decrypts modified ciphertexts without error). An attacker might prepend these bytes with the goal of triggering memory corruption issues.","source":"cvelist"},{"lang":"en","text":"### Impact\nJsrsasign supports RSA PKCS#1 v1.5 (i.e. RSAES-PKCS1-v1_5) and RSA-OAEP encryption and decryption. Its encrypted message is represented as BigInteger. When there is a valid encrypted message, a crafted message with prepending zeros can be decrypted by this vulnerability.\n\n- If you don't use RSA PKCS1-v1_5 or RSA-OAEP decryption, this vulnerability is not affected.\n- Risk to forge contents of encrypted message is very low.\n- Risk to raise memory corruption is low since jsrsasign uses BigInteger class.\n\n### Patches\nUsers using RSA PKCS1-v1_5 or RSA-OAEP decryption should upgrade to 8.0.18.\n\n### Workarounds\nReject RSA PKCS1-v1_5 or RSA-OAEP encrypted message with unnecessary prepending zeros.\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2020-14967\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14967\nhttps://vuldb.com/?id.157124\nhttps://kjur.github.io/jsrsasign/api/symbols/KJUR.crypto.Cipher.html#.decrypt\nhttps://github.com/kjur/jsrsasign/issues/439","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se detectó un problema en el paquete jsrsasign versiones anteriores a 8.0.18 para Node.js. La implementación de descifrado RSA PKCS1 versión v1.5 no detecta la modificación del texto cifrado anteponiendo bytes \"\\0\" a textos cifrados (descifra los textos cifrados modificados sin error). Un atacante podría anteponer estos bytes con el objetivo de desencadenar problemas de corrupción de la memoria","source":"nvd"}],"published":"2020-06-22T11:19:35.000Z","modified":"2026-06-22T03:18:31.867Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-119"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.0.18"}],"ecosystem":"npm","package":"jsrsasign","purl":"pkg:npm/jsrsasign","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"8.0.18"}],"vendor":"kjur","product":"jsrsasign","cpe":"cpe:2.3:a:kjur:jsrsasign:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"max_data","cpe":"cpe:2.3:a:netapp:max_data:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://kjur.github.io/jsrsasign/","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.npmjs.com/package/jsrsasign","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kjur/jsrsasign/releases/tag/8.0.18","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kjur/jsrsasign/releases/tag/8.0.17","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kjur/jsrsasign/issues/439","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20200724-0001/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kjur/jsrsasign/security/advisories/GHSA-xxxq-chmp-67g4","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-14967","tags":["advisory"],"sources":["ghsa"]},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14967","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/kjur/jsrsasign","tags":["package"],"sources":["ghsa"]},{"url":"https://kjur.github.io/jsrsasign","tags":["web"],"sources":["ghsa"]},{"url":"https://kjur.github.io/jsrsasign/api/symbols/KJUR.crypto.Cipher.html#.decrypt","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20200724-0001","tags":["web"],"sources":["ghsa"]},{"url":"https://vuldb.com/?id.157124","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-14967","url":"https://www.cve.org/CVERecord?id=CVE-2020-14967","licence":"CVE Terms of Use","modified":"2024-08-04T13:00:52.090Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xxxq-chmp-67g4","url":"https://github.com/advisories/GHSA-xxxq-chmp-67g4","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:28.135Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-14967","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-14967","licence":"Public domain","modified":"2026-06-22T03:18:31.867Z"}],"updatedAt":"2026-11-25T22:57:53.067Z","epss":{"score":0.02372,"percentile":0.84305,"date":"2026-12-01T12:00:22.000Z"}}