{"api_version":"1","generated_at":"2026-07-24T22:56:12+00:00","cve":"CVE-2009-0642","urls":{"html":"https://cve.report/CVE-2009-0642","api":"https://cve.report/api/cve/CVE-2009-0642.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2009-0642","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2009-0642"},"summary":{"title":"CVE-2009-0642","description":"ext/openssl/ossl_ocsp.c in Ruby 1.8 and 1.9 does not properly check the return value from the OCSP_basic_verify function, which might allow remote attackers to successfully present an invalid X.509 certificate, possibly involving a revoked certificate.","state":"PUBLISHED","assigner":"mitre","published_at":"2009-02-20 06:47:48","updated_at":"2026-04-23 00:35:47"},"problem_types":["CWE-287","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.8","severity":"","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/48761","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/48761","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/35937","name":"http://secunia.com/advisories/35937","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Security Advisory SA35937 - Ubuntu update for Ruby - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.ubuntu.com/usn/USN-805-1","name":"http://www.ubuntu.com/usn/USN-805-1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"USN-805-1: Ruby vulnerabilities | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11450","name":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11450","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Repository  /  Oval Repository","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.redhat.com/support/errata/RHSA-2009-1140.html","name":"http://www.redhat.com/support/errata/RHSA-2009-1140.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Support","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/35699","name":"http://secunia.com/advisories/35699","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Red Hat update for ruby - Secunia Advisories - Vulnerability Information - Secunia.com","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/33750","name":"http://secunia.com/advisories/33750","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Ruby \"OCSP_basic_verify()\" Certificate Validation Vulnerability - Secunia Advisories - Vulnerability Information - Secunia.com","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securitytracker.com/id?1022505","name":"http://www.securitytracker.com/id?1022505","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Ruby OCSP_basic_verify() Validation Flaw Lets Remote Users Conduct Certificate Spoofing Attacks - SecurityTracker","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513528","name":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513528","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"#513528 - ruby1.9: Not properly checking the return value of OCSP_basic_verify - Debian Bug report logs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:193","name":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:193","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Support / Security / Advisories /  / MDVSA-2009:193 | Mandriva","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://redmine.ruby-lang.org/issues/show/1091","name":"http://redmine.ruby-lang.org/issues/show/1091","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"],"title":"Backport87 - Backport #1091: possible bad handling of return value of OCSP_basic_verify in ext/openssl/ossl_ocsp.c - Ruby Issue Tracking System","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/33769","name":"http://www.securityfocus.com/bid/33769","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Ruby 'OCSP_basic_verify()' X.509 Certificate Verification Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2009-0642","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-0642","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2009","cve_id":"642","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"1.8","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2009","cve_id":"642","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"1.9","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T04:40:05.106Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"35937","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/35937"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://redmine.ruby-lang.org/issues/show/1091"},{"name":"ruby-ocspbasicverify-spoofing(48761)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/48761"},{"name":"RHSA-2009:1140","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://www.redhat.com/support/errata/RHSA-2009-1140.html"},{"name":"USN-805-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"http://www.ubuntu.com/usn/USN-805-1"},{"name":"33769","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/33769"},{"name":"1022505","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"],"url":"http://www.securitytracker.com/id?1022505"},{"name":"oval:org.mitre.oval:def:11450","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11450"},{"name":"35699","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/35699"},{"name":"MDVSA-2009:193","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"],"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:193"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513528"},{"name":"33750","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/33750"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2009-01-29T00:00:00.000Z","descriptions":[{"lang":"en","value":"ext/openssl/ossl_ocsp.c in Ruby 1.8 and 1.9 does not properly check the return value from the OCSP_basic_verify function, which might allow remote attackers to successfully present an invalid X.509 certificate, possibly involving a revoked certificate."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-09-28T12:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"35937","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/35937"},{"tags":["x_refsource_CONFIRM"],"url":"http://redmine.ruby-lang.org/issues/show/1091"},{"name":"ruby-ocspbasicverify-spoofing(48761)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/48761"},{"name":"RHSA-2009:1140","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://www.redhat.com/support/errata/RHSA-2009-1140.html"},{"name":"USN-805-1","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"http://www.ubuntu.com/usn/USN-805-1"},{"name":"33769","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/33769"},{"name":"1022505","tags":["vdb-entry","x_refsource_SECTRACK"],"url":"http://www.securitytracker.com/id?1022505"},{"name":"oval:org.mitre.oval:def:11450","tags":["vdb-entry","signature","x_refsource_OVAL"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11450"},{"name":"35699","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/35699"},{"name":"MDVSA-2009:193","tags":["vendor-advisory","x_refsource_MANDRIVA"],"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:193"},{"tags":["x_refsource_MISC"],"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513528"},{"name":"33750","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/33750"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2009-0642","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"ext/openssl/ossl_ocsp.c in Ruby 1.8 and 1.9 does not properly check the return value from the OCSP_basic_verify function, which might allow remote attackers to successfully present an invalid X.509 certificate, possibly involving a revoked certificate."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"35937","refsource":"SECUNIA","url":"http://secunia.com/advisories/35937"},{"name":"http://redmine.ruby-lang.org/issues/show/1091","refsource":"CONFIRM","url":"http://redmine.ruby-lang.org/issues/show/1091"},{"name":"ruby-ocspbasicverify-spoofing(48761)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/48761"},{"name":"RHSA-2009:1140","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2009-1140.html"},{"name":"USN-805-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/USN-805-1"},{"name":"33769","refsource":"BID","url":"http://www.securityfocus.com/bid/33769"},{"name":"1022505","refsource":"SECTRACK","url":"http://www.securitytracker.com/id?1022505"},{"name":"oval:org.mitre.oval:def:11450","refsource":"OVAL","url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11450"},{"name":"35699","refsource":"SECUNIA","url":"http://secunia.com/advisories/35699"},{"name":"MDVSA-2009:193","refsource":"MANDRIVA","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:193"},{"name":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513528","refsource":"MISC","url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513528"},{"name":"33750","refsource":"SECUNIA","url":"http://secunia.com/advisories/33750"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2009-0642","datePublished":"2009-02-18T17:00:00.000Z","dateReserved":"2009-02-18T00:00:00.000Z","dateUpdated":"2024-08-07T04:40:05.106Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2009-02-20 06:47:48","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["CWE-287","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:ruby:1.8:*:*:*:*:*:*:*","matchCriteriaId":"3EA01D6F-3B61-44EC-A6EA-9E878A0D5B99"},{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:ruby:1.9:*:*:*:*:*:*:*","matchCriteriaId":"D9237145-35F8-4E05-B730-77C0F386E5B2"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2009","CveId":"642","Ordinal":"1","Title":"CVE-2009-0642","CVE":"CVE-2009-0642","Year":"2009"},"notes":[{"CveYear":"2009","CveId":"642","Ordinal":"1","NoteData":"ext/openssl/ossl_ocsp.c in Ruby 1.8 and 1.9 does not properly check the return value from the OCSP_basic_verify function, which might allow remote attackers to successfully present an invalid X.509 certificate, possibly involving a revoked certificate.","Type":"Description","Title":"CVE-2009-0642"},{"CveYear":"2009","CveId":"642","Ordinal":"2","NoteData":"2009-02-18","Type":"Other","Title":"Published"},{"CveYear":"2009","CveId":"642","Ordinal":"3","NoteData":"2017-09-28","Type":"Other","Title":"Modified"}]}}}