CVE-2026-141548
LOW 3.3CVSS 3.1pymonocypher: argon2i_32 can overflow the heap on 32-bit builds when nb_blocks >= 2**22 (work area size wraps)
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 222. 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 222; 64-bit builds and callers enforcing that bound are not affected. This issue is fixed in version 4.0.3.6.
- Published
- 2 Dec 2026
- Last modified
- 2 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-190CWE-787
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| CVE List | GitHub_M | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | jetperch | pymonocypher | = >= 4.0.2.4, < 4.0.3.6 |
References
- https://github.com/jetperch/pymonocypher/commit/f741a01864e97ab4069d9f9f85a286ebb2d280ec · x_refsource_MISC
- https://github.com/jetperch/pymonocypher/releases/tag/v4.0.3.6 · x_refsource_MISC
- https://github.com/jetperch/pymonocypher/security/advisories/GHSA-q7gf-2v9f-xq2p · x_refsource_CONFIRM
History
- 2 Dec 2026 20:26 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 19:51 UTC · CVE List: first stored (published 2 Dec 2026)