{"id":"CVE-2021-29444","published":"2021-04-16T21:45:16Z","modified":"2024-08-03T22:02:51Z","title":"Padding Oracle Attack due to Observable Timing Discrepancy in jose-browser-runtime","vendor":"panva","product":"jose","tier":"tail","description":{"text":"jose-browser-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.6422,"provenance":"source"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"references":[{"url":"https://github.com/panva/jose/security/advisories/GHSA-94hh-pjjg-rwmr","tags":["x_refsource_CONFIRM"]},{"url":"https://www.npmjs.com/package/jose-browser-runtime","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":12.84},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"panva","affectedVersions":[{"vendor":"panva","product":"jose","versions":["< 3.11.4"]}],"affected":[{"ecosystem":"npm","package":"jose-browser-runtime","vulnerableRanges":["<3.11.4"],"patched":["3.11.4"],"from":["GHSA-94hh-pjjg-rwmr"],"provenance":"source"}],"summary":{"text":"The jose-browser-runtime npm package, from the jose product by panva, has a padding oracle flaw in its AES_CBC_HMAC_SHA2 decryption (A128CBC-HS256, A192CBC-HS384, A256CBC-HS512), where an observable timing difference arises when a padding error occurs during CBC decryption. An attacker with network access, requiring no authentication or user interaction, can exploit this timing discrepancy by repeatedly sending crafted ciphertexts to the decryption path to recover plaintext without knowing the key, and the attack is considered high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:05Z"},"euvd":{"id":"EUVD-2021-0803","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-29444","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-29444","to":"CVE-2022-36083","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jose-browser-runtime","fromFixed":"3.11.4","toFixed":"3.20.4","daysApart":509}]}}],"package":"npm:jose-browser-runtime"}}