FKIE_CVE-2007-5162

Vulnerability from fkie_nvd - Published: 2007-10-01 05:17 - Updated: 2026-06-16 22:45
Severity
Summary
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.
References
cve@mitre.orghttp://secunia.com/advisories/26985
cve@mitre.orghttp://secunia.com/advisories/27044
cve@mitre.orghttp://secunia.com/advisories/27432
cve@mitre.orghttp://secunia.com/advisories/27576
cve@mitre.orghttp://secunia.com/advisories/27673
cve@mitre.orghttp://secunia.com/advisories/27756
cve@mitre.orghttp://secunia.com/advisories/27764
cve@mitre.orghttp://secunia.com/advisories/27769
cve@mitre.orghttp://secunia.com/advisories/27818
cve@mitre.orghttp://secunia.com/advisories/28645
cve@mitre.orghttp://secunia.com/advisories/29556
cve@mitre.orghttp://securityreason.com/securityalert/3180
cve@mitre.orghttp://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499Patch
cve@mitre.orghttp://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500Patch
cve@mitre.orghttp://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502Patch
cve@mitre.orghttp://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504Patch
cve@mitre.orghttp://www.debian.org/security/2007/dsa-1410
cve@mitre.orghttp://www.debian.org/security/2007/dsa-1411
cve@mitre.orghttp://www.debian.org/security/2007/dsa-1412
cve@mitre.orghttp://www.isecpartners.com/advisories/2007-006-rubyssl.txt
cve@mitre.orghttp://www.mandriva.com/security/advisories?name=MDVSA-2008:029
cve@mitre.orghttp://www.novell.com/linux/security/advisories/2007_24_sr.html
cve@mitre.orghttp://www.redhat.com/support/errata/RHSA-2007-0961.html
cve@mitre.orghttp://www.redhat.com/support/errata/RHSA-2007-0965.html
cve@mitre.orghttp://www.securityfocus.com/archive/1/480987/100/0/threaded
cve@mitre.orghttp://www.securityfocus.com/archive/1/483577/100/0/threaded
cve@mitre.orghttp://www.securityfocus.com/bid/25847Patch
cve@mitre.orghttp://www.ubuntu.com/usn/usn-596-1
cve@mitre.orghttp://www.vupen.com/english/advisories/2007/3340
cve@mitre.orghttps://bugzilla.redhat.com/show_bug.cgi?id=313791
cve@mitre.orghttps://exchange.xforce.ibmcloud.com/vulnerabilities/36861
cve@mitre.orghttps://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738
cve@mitre.orghttps://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.html
cve@mitre.orghttps://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.html
cve@mitre.orghttps://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.html
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/26985
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/27044
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/27432
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/27576
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/27673
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/27756
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/27764
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/27769
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/27818
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/28645
af854a3a-2127-422b-91ae-364da2661108http://secunia.com/advisories/29556
af854a3a-2127-422b-91ae-364da2661108http://securityreason.com/securityalert/3180
af854a3a-2127-422b-91ae-364da2661108http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13499Patch
af854a3a-2127-422b-91ae-364da2661108http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13500Patch
af854a3a-2127-422b-91ae-364da2661108http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13502Patch
af854a3a-2127-422b-91ae-364da2661108http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=13504Patch
af854a3a-2127-422b-91ae-364da2661108http://www.debian.org/security/2007/dsa-1410
af854a3a-2127-422b-91ae-364da2661108http://www.debian.org/security/2007/dsa-1411
af854a3a-2127-422b-91ae-364da2661108http://www.debian.org/security/2007/dsa-1412
af854a3a-2127-422b-91ae-364da2661108http://www.isecpartners.com/advisories/2007-006-rubyssl.txt
af854a3a-2127-422b-91ae-364da2661108http://www.mandriva.com/security/advisories?name=MDVSA-2008:029
af854a3a-2127-422b-91ae-364da2661108http://www.novell.com/linux/security/advisories/2007_24_sr.html
af854a3a-2127-422b-91ae-364da2661108http://www.redhat.com/support/errata/RHSA-2007-0961.html
af854a3a-2127-422b-91ae-364da2661108http://www.redhat.com/support/errata/RHSA-2007-0965.html
af854a3a-2127-422b-91ae-364da2661108http://www.securityfocus.com/archive/1/480987/100/0/threaded
af854a3a-2127-422b-91ae-364da2661108http://www.securityfocus.com/archive/1/483577/100/0/threaded
af854a3a-2127-422b-91ae-364da2661108http://www.securityfocus.com/bid/25847Patch
af854a3a-2127-422b-91ae-364da2661108http://www.ubuntu.com/usn/usn-596-1
af854a3a-2127-422b-91ae-364da2661108http://www.vupen.com/english/advisories/2007/3340
af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=313791
af854a3a-2127-422b-91ae-364da2661108https://exchange.xforce.ibmcloud.com/vulnerabilities/36861
af854a3a-2127-422b-91ae-364da2661108https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738
af854a3a-2127-422b-91ae-364da2661108https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.html
af854a3a-2127-422b-91ae-364da2661108https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.html
af854a3a-2127-422b-91ae-364da2661108https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.html
Impacted products
Vendor Product Version
ruby-lang ruby 1.8.5
ruby-lang ruby 1.8.6

{
  "affected": [
    {
      "affectedData": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "source": "cve@mitre.org"
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.5:*:*:*:*:*:*:*",
              "matchCriteriaId": "C80BDE13-9CBB-4A5F-9BF4-BEB907CED271",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:ruby-lang:ruby:1.8.6:*:*:*:*:*:*:*",
              "matchCriteriaId": "876B2575-4F81-4A70-9A88-9BEE44649626",
              "vulnerable": true
            }
          ],
          "negate": false,
          "operator": "OR"
        }
      ]
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "El m\u00e9todo connect en lib/net/http.rb en las bibliotecas (1) Net::HTTP y (2) Net::HTTPS de Ruby 1.8.5 y 1.8.6 no verifica que el campo commonName (CN) en un certificado de servidor concuerde con el nombre de dominio de una petici\u00f3n HTTPS, lo cual facilita a atacantes remotos interceptar transmisiones SSL mediante un ataque de \"hombre en medio\" (man-in-the-middle) o sitio web falsificado.\r\n"
    }
  ],
  "id": "CVE-2007-5162",
  "lastModified": "2026-06-16T22:45:34.100",
  "metrics": {
    "cvssMetricV2": [
      {
        "acInsufInfo": false,
        "baseSeverity": "MEDIUM",
        "cvssData": {
          "accessComplexity": "MEDIUM",
          "accessVector": "NETWORK",
          "authentication": "NONE",
          "availabilityImpact": "NONE",
          "baseScore": 4.3,
          "confidentialityImpact": "NONE",
          "integrityImpact": "PARTIAL",
          "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
          "version": "2.0"
        },
        "exploitabilityScore": 8.6,
        "impactScore": 2.9,
        "obtainAllPrivilege": false,
        "obtainOtherPrivilege": false,
        "obtainUserPrivilege": false,
        "source": "nvd@nist.gov",
        "type": "Primary",
        "userInteractionRequired": true
      }
    ]
  },
  "published": "2007-10-01T05:17:00.000",
  "references": [
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/26985"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/27044"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/27432"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/27576"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/27673"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/27756"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/27764"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/27769"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/27818"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/28645"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://secunia.com/advisories/29556"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://securityreason.com/securityalert/3180"
    },
    {
      "source": "cve@mitre.org",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev\u0026revision=13499"
    },
    {
      "source": "cve@mitre.org",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev\u0026revision=13500"
    },
    {
      "source": "cve@mitre.org",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev\u0026revision=13502"
    },
    {
      "source": "cve@mitre.org",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev\u0026revision=13504"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.debian.org/security/2007/dsa-1410"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.debian.org/security/2007/dsa-1411"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.debian.org/security/2007/dsa-1412"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.isecpartners.com/advisories/2007-006-rubyssl.txt"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:029"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.novell.com/linux/security/advisories/2007_24_sr.html"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.redhat.com/support/errata/RHSA-2007-0961.html"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.redhat.com/support/errata/RHSA-2007-0965.html"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.securityfocus.com/archive/1/480987/100/0/threaded"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.securityfocus.com/archive/1/483577/100/0/threaded"
    },
    {
      "source": "cve@mitre.org",
      "tags": [
        "Patch"
      ],
      "url": "http://www.securityfocus.com/bid/25847"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.ubuntu.com/usn/usn-596-1"
    },
    {
      "source": "cve@mitre.org",
      "url": "http://www.vupen.com/english/advisories/2007/3340"
    },
    {
      "source": "cve@mitre.org",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=313791"
    },
    {
      "source": "cve@mitre.org",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/36861"
    },
    {
      "source": "cve@mitre.org",
      "url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738"
    },
    {
      "source": "cve@mitre.org",
      "url": "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.html"
    },
    {
      "source": "cve@mitre.org",
      "url": "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.html"
    },
    {
      "source": "cve@mitre.org",
      "url": "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/26985"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/27044"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/27432"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/27576"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/27673"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/27756"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/27764"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/27769"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/27818"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/28645"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://secunia.com/advisories/29556"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://securityreason.com/securityalert/3180"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev\u0026revision=13499"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev\u0026revision=13500"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev\u0026revision=13502"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev\u0026revision=13504"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.debian.org/security/2007/dsa-1410"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.debian.org/security/2007/dsa-1411"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.debian.org/security/2007/dsa-1412"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.isecpartners.com/advisories/2007-006-rubyssl.txt"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:029"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.novell.com/linux/security/advisories/2007_24_sr.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.redhat.com/support/errata/RHSA-2007-0961.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.redhat.com/support/errata/RHSA-2007-0965.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.securityfocus.com/archive/1/480987/100/0/threaded"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.securityfocus.com/archive/1/483577/100/0/threaded"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "http://www.securityfocus.com/bid/25847"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.ubuntu.com/usn/usn-596-1"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "http://www.vupen.com/english/advisories/2007/3340"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=313791"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/36861"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10738"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00087.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00097.html"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "url": "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00391.html"
    }
  ],
  "sourceIdentifier": "cve@mitre.org",
  "vulnStatus": "Modified",
  "weaknesses": [
    {
      "description": [
        {
          "lang": "en",
          "value": "CWE-287"
        }
      ],
      "source": "nvd@nist.gov",
      "type": "Primary"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…