CVE-2026-141548
LowCVSS 3.3Exploitation Probability (EPSS)
Low risk37th percentile - higher than 37% of all known CVEs
Summary
In pymonocypher from 4.0.2.4 until 4.0.3.6, argon2i_32 in c_monocypher.pyx multiplies nb_blocks by 1024 in a 32-bit size_t, causing the allocated work-area size to wrap when nb_blocks is at least 2**22. When the smaller allocation succeeds, crypto_argon2 writes 1024-byte blocks out of heap bounds, potentially crashing the process. Only 32-bit builds are affected.
Risk Assessment
A 32-bit application processing an attacker-influenced nb_blocks value may crash or suffer memory corruption. This can lead to denial of service or potentially further exploitation.
Recommendation
Update pymonocypher to version 4.0.3.6 or later. In 32-bit applications, bound nb_blocks below 2**22.
Other vulnerabilities in pymonocypher
Original NVD description (English source)
pymonocypher uses cython to wrap the Monocypher C library. From 4.0.2.4 until 4.0.3.6, argon2i_32 in c_monocypher.pyx multiplies nb_blocks by 1024 in a 32-bit size_t, causing the allocated work-area size to wrap when nb_blocks is at least 2**22. When the smaller allocation succeeds, crypto_argon2 fills 1024-byte blocks up to nb_blocks rounded down to a multiple of four, causing an out-of-bounds heap write that can crash the calling process. If the allocation fails, the call instead raises MemoryError. An affected application must run a 32-bit build and pass an attacker-influenced nb_blocks value without bounding it below 2**22; 64-bit builds and callers enforcing that bound are not affected. This issue is fixed in version 4.0.3.6.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

