Buffer Overflow Affecting pyopenssl package, versions [22.0.0,26.0.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th percentile)

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-PYOPENSSL-15674459
  • published17 Mar 2026
  • disclosed16 Mar 2026
  • creditjustlife4x4

Introduced: 16 Mar 2026

NewCVE-2026-27459  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade pyopenssl to version 26.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via the set_cookie_generate_callback function. An attacker can cause a buffer overflow by providing a callback that returns a cookie value greater than 256 bytes.

Note:

This is only exploitable if the application explicitly uses the set_cookie_generate_callback method on an OpenSSL Context object.

CVSS Base Scores

version 4.0
version 3.1