{"id":"CVE-2021-29445","published":"2021-04-16T21:50:13Z","modified":"2024-08-03T22:02:51Z","title":"Padding Oracle Attack due to Observable Timing Discrepancy in jose-node-esm-runtime","vendor":"panva","product":"jose-node-esm-runtime","tier":"tail","description":{"text":"jose-node-esm-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.65611,"provenance":"source"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"references":[{"url":"https://github.com/panva/jose/security/advisories/GHSA-4v4g-726h-xvfv","tags":["x_refsource_CONFIRM"]},{"url":"https://www.npmjs.com/package/jose-node-esm-runtime","tags":["x_refsource_MISC"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":13.12},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"panva","affectedVersions":[{"vendor":"panva","product":"jose-node-esm-runtime","versions":["< 3.11.4"]}],"affected":[{"ecosystem":"npm","package":"jose-node-esm-runtime","vulnerableRanges":["<3.11.4"],"patched":["3.11.4"],"from":["GHSA-4v4g-726h-xvfv"],"provenance":"source"}],"summary":{"text":"The jose-node-esm-runtime npm package, published by panva, contains a padding oracle flaw in its AES_CBC_HMAC_SHA2 decryption (A128CBC-HS256, A192CBC-HS384, A256CBC-HS512) caused by an observable timing difference during CBC decryption, present in versions prior to 3.11.4. An attacker with network access and no authentication or user interaction could exploit this by sending repeated ciphertext to the decryption routine and measuring response timing, needing on average about 128 times the ciphertext block size in calls to recover plaintext without the decryption key.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:05Z"},"euvd":{"id":"EUVD-2021-0760","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-29445","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-29445","to":"CVE-2022-36083","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jose-node-esm-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-esm-runtime"}}