{"id":"CVE-2026-53720","aliases":["CVE-2026-53720","GHSA-8f95-v3jq-cj86","PYSEC-2026-3000"],"related":[],"kind":"vulnerability","state":"published","title":"pymonocypher: Potential heap buffer overflow on nb_blocks in argon2i_32 when provided buffer is too small","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe 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.\n\n### Patches\nFixed in 4.0.2.8, which now verifies that nb_blocks is large enough.  See [90ff5b1](https://github.com/jetperch/pymonocypher/commit/90ff5b13b13b5673c372e188f482d8c172e6ab86).\n\n### Workarounds\nProvide a correctly sized nb_blocks buffer.\n\npymonocypher thanks Haris (hextheshadow) for the vulnerability report, details, and recommended fix.","format":"markdown","source":"ghsa"}],"published":"2026-07-09T13:42:46.000Z","modified":"2026-09-09T21:09:13.080Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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"}],"cwes":["CWE-122","CWE-787","CWE-1284"],"affected":[{"ranges":[{"version":"< 4.0.2.8","status":"affected"}],"vendor":"jetperch","product":"pymonocypher","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.2.8"}],"ecosystem":"PyPI","package":"pymonocypher","purl":"pkg:pypi/pymonocypher","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.2.8"}],"ecosystem":"PyPI","package":"pymonocypher","purl":"pkg:pypi/pymonocypher","source":"pysec"}],"references":[{"url":"https://github.com/jetperch/pymonocypher/security/advisories/GHSA-8f95-v3jq-cj86","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jetperch/pymonocypher/commit/90ff5b13b13b5673c372e188f482d8c172e6ab86","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jetperch/pymonocypher/releases/tag/v4.0.2.8","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/jetperch/pymonocypher","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pymonocypher","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8f95-v3jq-cj86","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53720","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-03T15:42:48.682Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53720","url":"https://www.cve.org/CVERecord?id=CVE-2026-53720","licence":"CVE Terms of Use","modified":"2026-09-03T15:42:53.741Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8f95-v3jq-cj86","url":"https://github.com/advisories/GHSA-8f95-v3jq-cj86","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:57.702Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53720","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53720","licence":"Public domain","modified":"2026-09-09T21:09:13.080Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3000","url":"https://osv.dev/vulnerability/PYSEC-2026-3000","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:07.802Z"}],"updatedAt":"2026-11-25T22:59:36.195Z","epss":{"score":0.00126,"percentile":0.02435,"date":"2026-12-01T12:00:22.000Z"}}