{"id":"CVE-2026-53720","published":"2026-09-03T15:30:06Z","modified":"2026-09-03T15:42:53Z","title":"pymonocypher: Potential heap buffer overflow on nb_blocks in argon2i_32 when provided buffer is too small","vendor":"jetperch","product":"pymonocypher","tier":"tail","description":{"text":"pymonocypher uses cython to wrap the Monocypher C library. Prior to version 4.0.2.8, the argon2i_32 implementation does not check the nb_blocks size. If the caller does not provide a sufficiently large buffer based on the API contract, then argon2i_32 will write past the end of the buffer and possibly corrupt the heap. This issue has been patched in version 4.0.2.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00178,"percentile":0.04366,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input"}],"references":[{"url":"https://github.com/jetperch/pymonocypher/security/advisories/GHSA-8f95-v3jq-cj86","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jetperch/pymonocypher/commit/90ff5b13b13b5673c372e188f482d8c172e6ab86","tags":["x_refsource_MISC"]},{"url":"https://github.com/jetperch/pymonocypher/releases/tag/v4.0.2.8","tags":["x_refsource_MISC"]}],"priority":{"score":4.4,"factors":[{"name":"EPSS percentile","points":0.87},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"jetperch","affectedVersions":[{"vendor":"jetperch","product":"pymonocypher","versions":["< 4.0.2.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-03T15:42:48.682399Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymonocypher","vulnerableRanges":["<4.0.2.8"],"patched":["4.0.2.8"],"from":["GHSA-8f95-v3jq-cj86","PYSEC-2026-3000"],"provenance":"source"}],"summary":{"text":"The flaw is a heap buffer overflow in the argon2i_32 function of pymonocypher, a Cython wrapper around the Monocypher C library, where the nb_blocks size is not checked before writing output. An attacker with local access and no privileges or user interaction could exploit it when the caller supplies a buffer smaller than the API contract requires, causing writes past the buffer end that may corrupt the heap.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:23Z"},"euvd":{"id":"EUVD-2026-70531","exploited":false,"provenance":"source"}}