PYSEC-2026-3000

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/pymonocypher/PYSEC-2026-3000.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-3000
Aliases
Published
2026-07-13T15:46:30Z
Modified
2026-07-13T16:33:07Z
Severity
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

References

Affected packages

PyPI / pymonocypher

Package

Name
pymonocypher
View open source insights on deps.dev
Purl
pkg:pypi/pymonocypher

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.0.2.8

Affected versions

0.*
0.1.1
0.1.2
0.1.3
0.1.4
3.*
3.1.0.0
3.1.3.0
3.1.3.1
3.1.3.2
3.1.3.3
3.1.3.4
3.1.3.5
3.1.3.6
4.*
4.0.2.1
4.0.2.2
4.0.2.3
4.0.2.4
4.0.2.5
4.0.2.6
4.0.2.7

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/pymonocypher/PYSEC-2026-3000.yaml"