ruby: WEBrick CGI source disclosure
Published Apr 18, 2008
5.0
MEDIUMCVSS 2.0
EPSS 2.79%
Description
Directory traversal vulnerability in WEBrick in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, 1.8.7 before 1.8.7-p22, and 1.9.0 before 1.9.0-2, when using NTFS or FAT filesystems, allows remote attackers to read arbitrary CGI files via a trailing (1) + (plus), (2) %2b (encoded plus), (3) . (dot), (4) %2e (encoded dot), or (5) %20 (encoded space) character in the URI, possibly related to the WEBrick::HTTPServlet::FileHandler and WEBrick::HTTPServer.new functionality and the :DocumentRoot option.
Affected products
No data.
No data.
Red Hat Hardened Images
ruby3-3-main-3.3.10-23.1.hum1
Fixed · RHSA-2026:7305
Red Hat Hardened Images
ruby3-4-main-3.4.8-31.1.hum1
Fixed · RHSA-2026:7307
Red Hat Hardened Images
ruby4-0-main-4.0.0-33.3.hum1
Fixed · RHSA-2026:8838
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | ruby3-3-main-3.3.10-23.1.hum1 | Fixed | RHSA-2026:7305 |
| Red Hat Hardened Images | ruby3-4-main-3.4.8-31.1.hum1 | Fixed | RHSA-2026:7307 |
| Red Hat Hardened Images | ruby4-0-main-4.0.0-33.3.hum1 | Fixed | RHSA-2026:8838 |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat is aware of this issue and is tracking it via the following bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=CVE-2008-1891 The risks associated with fixing this flaw outweigh the benefits of the fix. Red Hat does not plan to fix this flaw in Red Hat Enterprise Linux.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.79% (0.02789) | 85.91th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.81% (0.02813) | 84.63th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.17% (0.00168) | 35.53th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.52% (0.00520) | 77.58th | v3 (v2023.03.01) |
| Jul 8, 2024 | 0.53% (0.00525) | 77.06th | v3 (v2023.03.01) |
| Apr 24, 2024 | 0.52% (0.00515) | 76.47th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.48% (0.00476) | 75.00th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.48% (0.00476) | 71.95th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.17% (0.02172) | 80.77th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.17% (0.02172) | 78.91th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.17% (0.02172) | 57.73th | v2 (v2022.01.01) |
References (15)
- http://aluigi.altervista.org/adv/webrickcgi-adv.txt x_refsource_MISC
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html vendor-advisoryx_refsource_SUSE
- http://secunia.com/advisories/29794 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/30831 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/31687 third-party-advisoryx_refsource_SECUNIA
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:140 vendor-advisoryx_refsource_MANDRIVA
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141 vendor-advisoryx_refsource_MANDRIVA
- http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/ x_refsource_CONFIRM
- http://www.vupen.com/english/advisories/2008/1245/references vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2008-1891 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=443829 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41824 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2008-1891
- https://www.cve.org/CVERecord?id=CVE-2008-1891
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html vendor-advisoryx_refsource_FEDORA
Change history (0)
No recorded changes yet.