{"id":"CVE-2021-29446","published":"2021-04-16T22:00:15Z","modified":"2024-08-03T22:02:51Z","title":"Padding Oracle Attack due to Observable Timing Discrepancy in jose-node-cjs-runtime","vendor":"panva","product":"jose-node-cjs-runtime","tier":"tail","description":{"text":"jose-node-cjs-runtime is an npm package which provides a number of cryptographic functions. In versions prior to 3.11.4 the AES_CBC_HMAC_SHA2 Algorithm (A128CBC-HS256, A192CBC-HS384, A256CBC-HS512) decryption would always execute both HMAC tag verification and CBC decryption, if either failed `JWEDecryptionFailed` would be thrown. But a possibly observable difference in timing when padding error would occur while decrypting the ciphertext makes a padding oracle and an adversary might be able to make use of that oracle to decrypt data without knowing the decryption key by issuing on average 128*b calls to the padding oracle (where b is the number of bytes in the ciphertext block). A patch was released which ensures the HMAC tag is verified before performing CBC decryption. The fixed versions are `>=3.11.4`. Users should upgrade to `^3.11.4`.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01067,"percentile":0.64675,"provenance":"source"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"references":[{"url":"https://github.com/panva/jose/security/advisories/GHSA-rvcw-f68w-8h8h","tags":["x_refsource_CONFIRM"]},{"url":"https://www.npmjs.com/package/jose-node-cjs-runtime","tags":["x_refsource_MISC"]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":12.94},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"panva","affectedVersions":[{"vendor":"panva","product":"jose-node-cjs-runtime","versions":["< 3.11.4"]}],"affected":[{"ecosystem":"npm","package":"jose-node-cjs-runtime","vulnerableRanges":["<3.11.4"],"patched":["3.11.4"],"from":["GHSA-rvcw-f68w-8h8h"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-0876","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-29446","published":"2021-04-16","fixed":"3.11.4","kev":false},{"cve":"CVE-2022-36083","published":"2022-09-07","fixed":"4.9.2","kev":false,"link":{"from":"CVE-2021-29446","to":"CVE-2022-36083","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jose-node-cjs-runtime","fromFixed":"3.11.4","toFixed":"3.20.4","daysApart":509}]}},{"cve":"CVE-2024-28176","published":"2024-03-09","fixed":"4.15.5","kev":false}],"package":"npm:jose-node-cjs-runtime"}}