CVE-2007-5162 Security feature bypass in n/a

Medium 4.3 Published Updated

Ruby's Net::HTTP library fails to verify SSL certificate common names, allowing attackers to intercept HTTPS traffic via man-in-the-middle attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2007-5162?

CVE-2007-5162 is a medium-severity vulnerability in Ruby-Lang Ruby, published on 1 Oct 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The connect method in lib/net/http.rb in the (1) Net::HTTP and (2) Net::HTTPS libraries in Ruby 1.8.5 and 1.8.6 does not verify that the commonName (CN) field in a server certificate matches the domain name in an HTTPS request, which makes it easier for remote attackers to intercept SSL transmissions via a man-in-the-middle attack or spoofed web site.

Weakness: CWE-287

Which versions are affected by CVE-2007-5162?

It affects 1 product.

Products include Ruby-Lang Ruby.

How do I fix CVE-2007-5162?

Upgrade to a fixed version.

Is CVE-2007-5162 being exploited?

There is no known exploitation of CVE-2007-5162 in the wild and no public exploit code.

All Ruby-Lang Ruby vulnerabilities

Sources

Also known as GHSA-26pc-wx8w-v5vj.

Is CVE-2007-5162 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free