CVE-2026-141548

Source
https://cve.org/CVERecord?id=CVE-2026-141548
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141548.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-141548
Aliases
  • GHSA-q7gf-2v9f-xq2p
Published
2026-12-02T19:31:42Z
Modified
2026-12-02T21:01:47Z
Severity
  • 3.3 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L CVSS Calculator
Summary
pymonocypher: argon2i_32 can overflow the heap on 32-bit builds when nb_blocks >= 2**22 (work area size wraps)
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-190",
        "CWE-787"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141548.json"
}
References

Affected packages

Git / github.com/jetperch/pymonocypher

Affected ranges

Type
GIT
Repo
https://github.com/jetperch/pymonocypher
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "4.0.2.4"
                },
                {
                    "fixed":  "4.0.3.6"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "f741a01864e97ab4069d9f9f85a286ebb2d280ec"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v4.0.3.6",
            "range":  [
                {
                    "fixed":  "f741a01864e97ab4069d9f9f85a286ebb2d280ec"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v4.*
v4.0.2.4
v4.0.2.5
v4.0.2.6
v4.0.2.7
v4.0.2.8
v4.0.3.0
v4.0.3.1
v4.0.3.2
v4.0.3.3
v4.0.3.4
v4.0.3.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141548.json"