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

CVE-2013-4314: PyOpenSSL Mishandles NUL Byte In Certificate Subject Alternative Name

May 17, 2022 (updated October 24, 2024)

The X509Extension in pyOpenSSL before 0.13.1 does not properly handle a \0 character in a domain name in the Subject Alternative Name field of an X.509 certificate, which allows man-in-the-middle attackers to spoof arbitrary SSL servers via a crafted certificate issued by a legitimate Certification Authority.

References

  • bugzilla.redhat.com/show_bug.cgi?id=1005325
  • github.com/advisories/GHSA-6748-36qp-fx6r
  • github.com/pyca/pyopenssl
  • github.com/pyca/pyopenssl/commit/6bbf44a00b35fb28df1f66aa194b2fe95eab1ab2
  • github.com/pypa/advisory-database/tree/main/vulns/pyopenssl/PYSEC-2013-31.yaml
  • mail.python.org/pipermail/pyopenssl-users/2013-September/000478.html
  • nvd.nist.gov/vuln/detail/CVE-2013-4314

Code Behaviors & Features

Detect and mitigate CVE-2013-4314 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 before 0.13.1

Fixed versions

  • 0.13.1

Solution

Upgrade to version 0.13.1 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

pypi/pyOpenSSL/CVE-2013-4314.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:27 +0000.