CVE-2026-141548
pymonocypher uses cython to wrap the Monocypher C library. From …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/jetperch/pymonocypher/commit/f741a01864e97ab4069d9f9f85a286ebb2d280ec
- github.com/jetperch/pymonocypher/releases/tag/v4.0.3.6
- github.com/jetperch/pymonocypher/security/advisories/GHSA-q7gf-2v9f-xq2p
- nvd.nist.gov/vuln/detail/CVE-2026-141548
- github.com/advisories/GHSA-q7gf-2v9f-xq2p
- nvd.nist.gov/vuln/detail/CVE-2026-141548
- cve.org/CVERecord?id=CVE-2026-141548
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.