# CVE-2026-53720: pymonocypher: Potential heap buffer overflow on nb_blocks in argon2i_32 when provided buffer is too small

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-09T13:42:46.000Z
- Modified: 2026-09-09T21:09:13.080Z
- Also known as: GHSA-8f95-v3jq-cj86, PYSEC-2026-3000
- Weaknesses: CWE-122, CWE-787, CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jetperch pymonocypher: < 4.0.2.8
- pymonocypher (PyPI): before 4.0.2.8

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/jetperch/pymonocypher/security/advisories/GHSA-8f95-v3jq-cj86> (web)
- <https://github.com/jetperch/pymonocypher/commit/90ff5b13b13b5673c372e188f482d8c172e6ab86> (web)
- <https://github.com/jetperch/pymonocypher/releases/tag/v4.0.2.8>
- <https://github.com/jetperch/pymonocypher> (package)
- <https://pypi.org/project/pymonocypher> (package)
- <https://github.com/advisories/GHSA-8f95-v3jq-cj86> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53720> (advisory)

## Sources

- CVE List: [CVE-2026-53720](https://www.cve.org/CVERecord?id=CVE-2026-53720), CVE Terms of Use, modified 2026-09-03
- GitHub Advisory Database: [GHSA-8f95-v3jq-cj86](https://github.com/advisories/GHSA-8f95-v3jq-cj86), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-53720](https://nvd.nist.gov/vuln/detail/CVE-2026-53720), Public domain, modified 2026-09-09
- PyPA Advisory Database: [PYSEC-2026-3000](https://osv.dev/vulnerability/PYSEC-2026-3000), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-53720 · Whole record: https://cve.day/CVE-2026-53720.json · Rebuilt by cve.day 2026-11-25T22:59:36.195Z
