GitHub Advisoryadvisory · PyPI
GHSA-6748-36qp-fx6r PyOpenSSL Mishandles NUL Byte In Certificate Subject Alternative Name
HIGH
Official page ↗
- Aliases
- CVE-2013-4314
- Ecosystem
- PyPI
- Packages
- pyOpenSSL
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-20
- Reviewed
- 2024-02-23
Affected packages
• PyPI pyOpenSSL: < 0.13.1 → fixed in 0.13.1
Description
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.
Related
Alias · CVE (1)
- CVE-2013-4314 The X509Extension in pyOpenSSL before 0.13.1 does not properly handle a '\0' character in a domain name in the Subject Alternative Name… vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-4314 advisory
- https://github.com/pyca/pyopenssl/commit/6bbf44a00b35fb28df1f66aa194b2fe95eab1ab2 web
- https://bugzilla.redhat.com/show_bug.cgi?id=1005325 web
- https://github.com/pyca/pyopenssl package
- https://github.com/pypa/advisory-database/tree/main/vulns/pyopenssl/PYSEC-2013-31.yaml web
- https://mail.python.org/pipermail/pyopenssl-users/2013-September/000478.html web
- http://lists.opensuse.org/opensuse-updates/2013-11/msg00015.html web
- http://www.debian.org/security/2013/dsa-2763 web
- http://www.openwall.com/lists/oss-security/2013/09/06/2 web
- http://www.ubuntu.com/usn/USN-1965-1 web