CVE-2015-1855: Ruby OpenSSL - Hostname Validation Bypass
- Cve: CVE-2015-1855
- Name: Ruby OpenSSL - Hostname Validation Bypass
- Description: verify_certificate_identity in the OpenSSL extension in Ruby before 2.0.0 patchlevel 645, 2.1.x before 2.1.6, and 2.2.x before 2.2.2 does not properly validate hostnames, which allows remote attackers to spoof servers via vectors related to (1) multiple wildcards, (1) wildcards in IDNA names, (3) case sensitivity, and (4) non-ASCII characters.
- Impact: Attackers can spoof server identities, potentially leading to man-in-the-middle attacks and data interception.
- Remediation: Update to Ruby OpenSSL version 2.0.0 patchlevel 645, 2.1.6, or 2.2.2 or later.
- Vulnerability type: misconfiguration
- Vulnerability impact: man_in_the_middle, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.02815
- Epss percentile: 0.86895
- Assignee: [email protected]
- Published at: 2019-11-29T21:15:10Z
- Age in days: 2552
- Modified at: 2026-06-17T00:23:07Z
- Patch available: yes
- Public exploits total: 1
- References total: 6
- Products total: 5
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2015-1855
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/vpereira/CVE-2015-1855 | poc-in-github | 2017-03-14 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.ruby-lang.org/en/news/2015/04/13/ruby-openssl-hostname-matching-vulnerability/ | Vendor Advisory |
| http://www.debian.org/security/2015/dsa-3245 | Third Party Advisory |
| http://www.debian.org/security/2015/dsa-3246 | Third Party Advisory |
| http://www.debian.org/security/2015/dsa-3247 | Third Party Advisory |
| https://bugs.ruby-lang.org/issues/9644 | Third Party Advisory |
| https://puppetlabs.com/security/cve/cve-2015-1855 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| ruby-lang:ruby | = 2.0.0 p643; = 2.0.0 p598; = 2.0.0 p594; = 2.0.0 p576; = 2.0.0 p481; = 2.0.0 p451; = 2.0.0 p353; = 2.0.0 p247; = 2.0.0 p195; >= 2.2.0, < 2.2.2; >= 2.1.0, < 2.1.6; = 2.0.0; = 2.0.0 p0 | /v1/products/ruby-lang/ruby |
| debian:debian_linux | = 9.0, = 8.0, = 7.0 | /v1/products/debian/debian_linux |
| puppet:puppet_enterprise | >= 3.0.0, < 3.8.0 | /v1/products/puppet/puppet_enterprise |
| puppet:puppet_agent | = 1.0.0 | /v1/products/puppet/puppet_agent |
| ruby-lang:trunk | < 50292 | /v1/products/ruby-lang/trunk |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2017-03-14
- Remote: yes
- Exposed hosts: 4706702
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports