Improper Validation of Specified Quantity in Input Affecting pymonocypher package, versions [,4.0.2.7)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PYMONOCYPHER-17911752
  • published9 Jul 2026
  • disclosed9 Jul 2026
  • creditUnknown

Introduced: 9 Jul 2026

CVE-2026-53720  (opens in a new tab)
CWE-122  (opens in a new tab)
CWE-1284  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade pymonocypher to version 4.0.2.7 or higher.

Overview

pymonocypher is a Python ctypes bindings to the Monocypher library

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input in the argon2i_32 function when the provided buffer for nb_blocks is too small. An attacker can cause memory corruption or potentially execute arbitrary code by supplying an undersized buffer to the function.

Workaround

This vulnerability can be mitigated by providing a correctly sized nb_blocks buffer.

CVSS Base Scores

version 4.0
version 3.1