CVE-2015-1855

MEDIUM

Ruby < 2.0.0p645, 2.1.x < 2.1.6, 2.2.x < 2.2.2 - Hostname Validation Bypass in OpenSSL Extension

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2015-1855. PoCs published by vpereira.

AI-analyzed exploit summary This PoC demonstrates CVE-2015-1855, a vulnerability in Ruby's OpenSSL certificate verification where wildcard certificates with multiple levels (e.g., *.*.sub.example.org) are incorrectly validated. The script generates a malicious certificate and tests it against vulnerable and patched Ruby versions.

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.

Exploits (1)

nomisec WORKING POC
by vpereira · poc
https://github.com/vpereira/CVE-2015-1855

This PoC demonstrates CVE-2015-1855, a vulnerability in Ruby's OpenSSL certificate verification where wildcard certificates with multiple levels (e.g., *.*.sub.example.org) are incorrectly validated. The script generates a malicious certificate and tests it against vulnerable and patched Ruby versions.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: Ruby with OpenSSL (versions before 2.3.0)
No auth needed
Prerequisites: OpenSSL · Ruby (vulnerable version) · Bash environment
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (6)

Core 6
Core References
Third Party Advisory x_refsource_misc
http://www.debian.org/security/2015/dsa-3247
Third Party Advisory x_refsource_misc
http://www.debian.org/security/2015/dsa-3245
Third Party Advisory x_refsource_misc
http://www.debian.org/security/2015/dsa-3246
Third Party Advisory x_refsource_misc
https://puppetlabs.com/security/cve/cve-2015-1855
Third Party Advisory x_refsource_misc
https://bugs.ruby-lang.org/issues/9644

Scores

CVSS v3 5.9
EPSS 0.0282
EPSS Percentile 84.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Details

CWE
CWE-20
Status published
Products (8)
debian/debian_linux 7.0
debian/debian_linux 8.0
debian/debian_linux 9.0
puppet/puppet_agent 1.0.0
puppet/puppet_enterprise 3.0.0 - 3.8.0
ruby-lang/ruby 2.0.0 (11 CPE variants)
ruby-lang/ruby 2.1.0 - 2.1.6
ruby-lang/trunk < 50292
Published Nov 29, 2019
Tracked Since Feb 18, 2026