Skip to content
OpenAdvisories
High · 7.5 CVE-2013-4314 EUVD-2013-0029GHSA-6748-36qp-fx6rPYSEC-2013-31

PyOpenSSL Mishandles NUL Byte In Certificate Subject Alternative Name

Published Sep 30, 2013 · Updated Aug 6, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pyopenssl 0.13-2.1 —
Debian 13 pyopenssl 0.13-2.1 —
Debian 12 pyopenssl 0.13-2.1 —
Debian 7 pyopenssl 0.13-2+deb7u1 DSA-2763-1
Debian 6.0 pyopenssl 0.10-1+squeeze1 DSA-2763-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pyOpenSSL 24.1.0-1.2 openSUSE-SU-2026:11470-1, openSUSE-SU-2024:14154-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pyopenssl < 0.13.1 0.13.1 GHSA-6748-36qp-fx6r

Advisories 3

References