CVE-2026-141548
pymonocypher: argon2i_32 can overflow the heap on 32-bit builds when nb_blocks >= 2**22 (work area size wraps)
Description
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.
INFO
Published Date :
Dec. 2, 2026, 8:20 p.m.
Last Modified :
Dec. 2, 2026, 8:20 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | LOW | MITRE-CVE | ||||
| CVSS 3.1 | LOW | [email protected] |
Solution
- Update pymonocypher to version 4.0.3.6.
- Ensure nb_blocks is within bounds.
- Use 64-bit builds if possible.
- Apply input validation for nb_blocks.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-141548.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-141548 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-141548
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-141548 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-141548 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by [email protected]
Dec. 02, 2026
Action Type Old Value New Value Added Description 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. Added CVSS V3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L Added CWE CWE-787 Added CWE CWE-190 Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/141xxx/CVE-2026-141548.json">CVE-2026-141548</a> Added Reference https://github.com/jetperch/pymonocypher/commit/f741a01864e97ab4069d9f9f85a286ebb2d280ec Added Reference https://github.com/jetperch/pymonocypher/releases/tag/v4.0.3.6 Added Reference https://github.com/jetperch/pymonocypher/security/advisories/GHSA-q7gf-2v9f-xq2p