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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | ruby1.8 | 1.8.7.72-3lenny1 | DSA-1860-1 |
| Debian 5.0 | ruby1.9 | 1.9.0.2-9lenny1 | DSA-1860-1 |
| Debian 4.0 | ruby1.8 | 1.8.5-4etch5 | DSA-1860-1 |
| Debian 4.0 | ruby1.9 | 1.9.0+20060609-1etch5 | DSA-1860-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | ruby +8 | 1.8.5-5.el5_3.7 | RHSA-2009:1140 |
| RHEL 4 | irb +6 | 1.8.1-7.el4_8.3 | RHSA-2009:1140 |
Advisories 2
- RHSA-2009:1140 Red Hat Security Advisory: ruby security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1860-1 ruby1.8 ruby1.9 - several issues Debian Security (DSA / DLA) · Mar 9, 2026
References
- 35937 third-party-advisory
- http://redmine.ruby-lang.org/issues/show/1091
- ruby-ocspbasicverify-spoofing(48761) vdb-entry
- RHSA-2009:1140 vendor-advisory
- USN-805-1 vendor-advisory
- 33769 vdb-entry
- 1022505 vdb-entry
- oval:org.mitre.oval:def:11450 vdb-entry signature
- 35699 third-party-advisory
- MDVSA-2009:193 vendor-advisory
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513528
- 33750 third-party-advisory