# CVE-2026-141548: pymonocypher: argon2i\_32 can overflow the heap on 32-bit builds when nb\_blocks \>= 2\*\*22 (work area size wraps)

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **CWE:** CWE-190, CWE-787
- **Published:** 2026-12-02T19:31:42.957Z
- **Modified:** 2026-12-02T20:20:39.843Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can trigger an out-of-bounds heap write via an oversized nb\_blocks value in pymonocypher's argon2i\_32 on 32-bit builds, crashing the calling process.

## Who should check

- Anyone running jetperch pymonocypher \>= 4.0.2.4, \< 4.0.3.6

## 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.

## Affected and fixed versions

- jetperch pymonocypher: \>= 4.0.2.4, \< 4.0.3.6 (cvelist)

## Technologies

PyPI packages (AI-matched), Python (AI-matched)

## Mitigation

- Upgrade pymonocypher to 4.0.3.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-141548. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-141548.md
Affected: jetperch pymonocypher >= 4.0.2.4, < 4.0.3.6
Fixed in: jetperch pymonocypher 4.0.3.6

Steps:
1. Search this machine and project for jetperch pymonocypher: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-141548 being exploited?

There is no confirmed exploitation: CVE-2026-141548 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-141548?

Low: CVSS 3.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-141548?

jetperch pymonocypher \>= 4.0.2.4, \< 4.0.3.6.

### Is there a fix for CVE-2026-141548?

Yes. Fixed in jetperch pymonocypher 4.0.3.6. Upgrade pymonocypher to 4.0.3.6 or later.

### How do I check if I'm affected by CVE-2026-141548?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/jetperch/pymonocypher/security/advisories/GHSA-q7gf-2v9f-xq2p>
- patch: <https://github.com/jetperch/pymonocypher/commit/f741a01864e97ab4069d9f9f85a286ebb2d280ec>
- other: <https://github.com/jetperch/pymonocypher/releases/tag/v4.0.3.6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-141548>

HTML: <https://flawdb.com/CVE-2026-141548> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-141548>
