Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker supplies or manipulates nb_blocks sizing input
-
DeliveryApplication calls argon2i_32 with undersized buffer
-
ExploitMissing size validation skipped in library
-
ExecutionWrite proceeds past heap allocation boundary
-
PersistHeap metadata or adjacent objects corrupted
-
ImpactDenial of service or memory corruption impact achieved
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that argon2i_32 be called with an nb_blocks buffer smaller than the minimum required by the Argon2i algorithm's memory requirements. The practical trigger is either developer-level API misuse - the calling code computes nb_blocks incorrectly - or an attacker-controlled input path that influences the nb_blocks sizing before the library call. The vulnerable code path is confined to applications actively invoking the Argon2i password-hashing workflow; applications that do not call argon2i_32 are unaffected. Authentication requirements are not confirmed from available data because no CVSS vector was published. Exploitation is further limited by the requirement that the buffer size error must be large enough to cause an out-of-bounds write but not so large as to be caught by operating-system-level guards such as guard pages; heap allocator behavior and layout introduce additional uncertainty. The vendor workaround - enforcing a correctly sized buffer at every call site - directly removes the exploitable condition. |
| Impact | No CVSS vector has been published by NVD or the vendor for this vulnerability, and no EPSS score or CISA KEV listing is available, eliminating the primary quantitative risk signals. The vulnerability class - CWE-122 Heap-Based Buffer Overflow - is historically high-severity, as heap corruption can range from denial-of-service crashes to exploitable memory control depending on heap layout and allocator behavior. Real-world risk is bounded by two factors: first, exploitation requires the calling application to pass an undersized nb_blocks value, either through developer error or attacker-influenced input reaching that parameter; second, pymonocypher is a niche cryptographic Python library with limited production deployment footprint, constraining the exposed attack surface. No public exploit has been identified in the provided data. The absence of a CVSS vector means severity metrics are entirely inferred - defenders should treat this as a high-severity library flaw requiring patch priority proportional to how directly their application exposes nb_blocks sizing to external input. |
| Exploit ScenarioDerived | An application using pymonocypher calculates or accepts externally influenced input for the nb_blocks argument and passes an undersized buffer to argon2i_32; the missing size check allows the function to write beyond the heap allocation, corrupting adjacent heap metadata. No public exploit code has been identified at time of analysis, but a crafted nb_blocks value that causes a minimal size underestimate could trigger reliable heap corruption in a tight feedback loop, potentially enabling process crashes or - depending on heap layout - controlled writes. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 09, 2026
Heap buffer overflow in pymonocypher's argon2i_32 function allows memory corruption when callers supply an undersized nb_blocks buffer, violating the library's API contract without triggering any bounds check. Applications using pymonocypher prior to version 4.0.2.8 that invoke the Argon2i password-hashing interface are at risk of heap corruption, which can produce crashes or potentially enable controlled memory writes. No public exploit code has been identified at time of analysis, and no active exploitation has been confirmed.
RemediationAI
Upgrade pymonocypher to version 4.0.2.8 or later; this release adds nb_blocks size validation in argon2i_32 and is the primary fix. The patching commit is available at https://github.com/jetperch/pymonocypher/commit/90ff5b13b13b5673c372e188f482d8c172e6ab86 and the full advisory at https://github.com/jetperch/pymonocypher/security/advisories/GHSA-8f95-v3jq-cj86. If immediate upgrade is not feasible, the vendor-recommended workaround is to audit every call site of argon2i_32 and ensure the nb_blocks buffer is correctly sized per the documented API contract before each invocation. Note that this workaround requires code-level review and is error-prone; it does not prevent the vulnerability in third-party or transitive callers and should not be treated as a permanent substitute for patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pymonocypher is a Python wrapper (pip package) for the Monocypher C cryptographic library, exposing bindings for algorithms including Argon2i - a memory-hard password-hashing and key-derivation function standardized in RFC 9106. The argon2i_32 binding accepts an nb_blocks parameter that governs the size of the working memory buffer allocated by the caller. CWE-122 (Heap-Based Buffer Overflow) identifies the root cause: the function proceeds to write into the caller-supplied buffer without first verifying that nb_blocks meets the minimum size required by the algorithm, allowing writes beyond the heap allocation boundary. The upstream fix, committed at 90ff5b13b13b5673c372e188f482d8c172e6ab86, introduces an explicit size validation gate before any memory operation proceeds. The affected CPE is pkg:pip/pymonocypher.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Local vector since exploitation occurs via library API call; high complexity because undersized nb_blocks must be supplied; scope changed due to heap corruption potentially affecting surrounding process memory beyond the function.
Primary rating from Vendor (https://github.com/jetperch/pymonocypher).
CVSS VectorVendor: https://github.com/jetperch/pymonocypher
Lifecycle Timeline
1DescriptionCVE.org
Impact
The argon2i_32 implementation does not check the nb_blocks size. If the caller does not provide a sufficiently large buffer based on the API contract, then argon2i_32 will write past the end of the buffer and possibly corrupt the heap.
Patches
Fixed in 4.0.2.8, which now verifies that nb_blocks is large enough. See 90ff5b1.
Workarounds
Provide a correctly sized nb_blocks buffer.
pymonocypher thanks Haris (hextheshadow) for the vulnerability report, details, and recommended fix.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
EUVD-2026-70531
GHSA-8f95-v3jq-cj86
NVD
CVE.org
EPSS
Exploit-DB