UNKNOWN PyPI

Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs

GHSA-p423-j2cm-9vmq · CVE-2026-39892 · PYSEC-2026-36

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

If a non-contiguous buffer was passed to APIs which accepted Python buffers (e.g. Hash.update()), this could lead to buffer overflows. For example:

h = Hash(SHA256())
b.update(buf[::-1])

would read past the end of the buffer on Python >3.11

Ready to move

Start Securing

Free, no credit card | First findings in minutes