Medium, CVSS 5.1PyPIAmendedPublished
pymonocypher: Potential heap buffer overflow on nb_blocks in argon2i_32 when provided buffer is too small
CVE-2026-53720 · GHSA-8f95-v3jq-cj86
- Affected
- PyPI pymonocypher < 4.0.2.8
- Fixed in
- 4.0.2.8· Vendor fix available
- Issue
- Impact The argon2i32 implementation does not check the nbblocks size. If the caller does not provide a sufficiently large buffer based on the API contract, then argon2i32 will write past the end of the buffer and possibly corrupt the heap. Patches Fixed in 4.0.2.8, which now verifies that nbblocks is large enough. See 90ff5b1. Workarounds Provide a correctly sized nbblocks buffer. pymonocypher thanks Haris (hextheshadow) for the vulnerability report, details, and recommended fix.
Recommended action: Upgrade to 4.0.2.8 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.