Advisory

PYSEC-2026-3000

Also known as: CVE-2026-53720, GHSA-8f95-v3jq-cj86

Summary

pymonocypher: Potential heap buffer overflow on nb_blocks in argon2i_32 when provided buffer is too small

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-07-13 15:46 UTC
Modified
2026-07-13 16:33 UTC

Affected packages and fixes

pymonocypher

PyPI · All systems

Affected

  • introduced 0, fixed 4.0.2.8 (ecosystem)

Fixed versions

4.0.2.8

Fix

  • Fixed version 4.0.2.8
    pip install --upgrade pymonocypher==4.0.2.8

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences