---
title: "CVE-2013-4073\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2013-4073?format=md
keywords: index, follow
---

# CVE-2013-4073

Publication date 28 June 2013

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

The OpenSSL::SSL.verify\_certificate\_identity function in lib/openssl/ssl.rb
in Ruby 1.8 before 1.8.7-p374, 1.9 before 1.9.3-p448, and 2.0 before
2.0.0-p247 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, a related issue
to CVE-2009-2408.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2013-4073?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| ruby1.8 | 13.04 raring | Fixed 1.8.7.358-7ubuntu1.1 |
| 12.10 quantal | Fixed 1.8.7.358-4ubuntu0.3 |
| 12.04 LTS precise | Fixed 1.8.7.352-2ubuntu1.3 |
| 10.04 LTS lucid | Ignored end of life |
| ruby1.9.1 | 13.04 raring | Fixed 1.9.3.194-8.1ubuntu1.1 |
| 12.10 quantal | Fixed 1.9.3.194-1ubuntu1.5 |
| 12.04 LTS precise | Fixed 1.9.3.0-1ubuntu2.7 |
| 10.04 LTS lucid | Ignored end of life |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2013-4073?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

possible regression: https://bugs.ruby-lang.org/issues/8575

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| ruby1.8 | * Upstream:   [961bf74](https://github.com/ruby/ruby/commit/961bf7496ded3acfe847cf56fa90bbdcfd6e614f) * Upstream:   [a3a62f8](https://github.com/ruby/ruby/commit/a3a62f87e144be31b9ca8ad6415b207f43f4e126) |
| ruby1.9.1 | * Upstream:   [2669b84](https://github.com/ruby/ruby/commit/2669b84d407ab431e965145c827db66c91158f89) * Upstream:   [a3a62f8](https://github.com/ruby/ruby/commit/a3a62f87e144be31b9ca8ad6415b207f43f4e126) |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4073)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2013-4073)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2013-4073)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2013-4073)

### Related Ubuntu Security Notices (USN)

+ [USN-1902-1](https://usn.ubuntu.com/USN-1902-1)
+ Ruby vulnerability
+ 9 July 2013

### Other references

* <http://www.ruby-lang.org/en/news/2013/06/27/hostname-check-bypassing-vulnerability-in-openssl-client-cve-2013-4073/>
* <https://www.cve.org/CVERecord?id=CVE-2013-4073>
