CVE-2013-4314: Input Validation

Published Sep 6, 2013
·
Updated

The pyOpenSSL module implements hostname identity checks but it did not properly handle hostnames in the certificate that contain null bytes. In all releases prior to 0.13.1, the string formatting of subjectAltName X509Extension instances incorrectly truncated fields of the name when encountering the null byte.

When a CA than an SSL client trusts issues a server certificate that has a null byte in the subjectAltName, remote attackers can obtain a certifcate for 'www.foo.org\0.example.com' from the CA to spoof 'www.foo.org' and conduct man-in-the-middle attacks between the pyOpenSSL-using client and SSL servers.

[1] https://mail.python.org/pipermail/pyopenssl-users/2013-September/000478.html

Other sources

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.

MITRE

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.

GitHub

Affected Software

15 affected componentsFixes available
redhat/pyOpenSSL<0.13.1
0.13.1
pip/pyOpenSSL<0.13.1
0.13.1
Jean-paul Calderone Pyopenssl<=0.13
Jean-paul Calderone Pyopenssl=0.7
Jean-paul Calderone Pyopenssl=0.8-a1
Jean-paul Calderone Pyopenssl=0.9
Jean-paul Calderone Pyopenssl=0.10
Jean-paul Calderone Pyopenssl=0.11
Jean-paul Calderone Pyopenssl=0.11-a1
Jean-paul Calderone Pyopenssl=0.11-a2
Jean-paul Calderone Pyopenssl=0.12
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=12.10
Canonical Ubuntu Linux=13.04

Event History

Sep 30, 2013
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
May 17, 2022
Advisory Published
via GitHub·04:56 AM

Frequently Asked Questions

1

What is the severity of CVE-2013-4314?

CVE-2013-4314 is classified as a moderate severity vulnerability.

2

How do I fix CVE-2013-4314?

To fix CVE-2013-4314, upgrade pyOpenSSL to version 0.13.1 or later.

3

Which versions of pyOpenSSL are affected by CVE-2013-4314?

CVE-2013-4314 affects all versions of pyOpenSSL prior to 0.13.1.

4

What kind of vulnerability is CVE-2013-4314?

CVE-2013-4314 involves improper handling of hostnames containing null bytes in the pyOpenSSL module.

5

Is there a patch available for CVE-2013-4314?

Yes, a patch is available by upgrading pyOpenSSL to version 0.13.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203