Background
pymonocypher is a Python binding for the Monocypher cryptographic library. The argon2i_32()function performs an out-of-bounds write due to an unchecked block-index calculation. Vorthix's autonomous agent identified and confirmed the vulnerability in under 2 hours.
The Finding
The argon2i_32() function computes a block index without validating it against the allocated buffer size. Under specific input parameters, the index exceeds the allocation boundary, resulting in a heap buffer overflow on write. AddressSanitizer confirmed the write.