Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pyOpenSSL
  4. ›
  5. CVE-2026-27459

CVE-2026-27459: pyOpenSSL DTLS cookie callback buffer overflow

March 16, 2026 (updated March 19, 2026)

If a user provided callback to set_cookie_generate_callback returned a cookie value greater than 256 bytes, pyOpenSSL would overflow an OpenSSL provided buffer.

Cookie values that are too long are now rejected.

References

  • github.com/advisories/GHSA-5pwr-322w-8jr4
  • github.com/pyca/pyopenssl
  • github.com/pyca/pyopenssl/blob/358cbf29c4e364c59930e53a270116249581eaa3/CHANGELOG.rst
  • github.com/pyca/pyopenssl/commit/57f09bb4bb051d3bc2a1abd36e9525313d5cd408
  • github.com/pyca/pyopenssl/security/advisories/GHSA-5pwr-322w-8jr4
  • nvd.nist.gov/vuln/detail/CVE-2026-27459

Code Behaviors & Features

Detect and mitigate CVE-2026-27459 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 22.0.0 before 26.0.0

Fixed versions

  • 26.0.0

Solution

Upgrade to version 26.0.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Source file

pypi/pyOpenSSL/CVE-2026-27459.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:25 +0000.