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

Medium 4.3 Published Updated

Man-in-the-middle attackers can spoof SSL servers by exploiting null byte handling in pyOpenSSL certificate validation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-4314?

CVE-2013-4314 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 30 Sep 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2013-4314?

3 open source packages ship an affected version, including pyopenssl and pyOpenSSL. It affects 2 products.

PackageAffectedFixed in
pyopenssl PyPIAll versions0.13.1
pyopenssl PyPIAll versions0.13.1
pyOpenSSL PyPIAll versions0.13.1
Linux distribution packages (2)
python-pyOpenSSL openSUSE:TumbleweedAll versions24.1.0-1.2
python-pyOpenSSL openSUSE:TumbleweedAll versions26.4.0-1.1

Products include Canonical Ubuntu Linux, Jean-Paul Calderone Pyopenssl.

How do I fix CVE-2013-4314?

Upgrade pyopenssl to 0.13.1 or later.

Is CVE-2013-4314 being exploited?

There is no known exploitation of CVE-2013-4314 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2013-4314, DSA-2763-1, GHSA-6748-36qp-fx6r, MGASA-2013-0277, PYSEC-2013-31, openSUSE-SU-2024:10214-1 and 3 more.

Is CVE-2013-4314 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free