CVE-2008-1145 Path traversal
No CVSS score yet. EPSS 27% estimated probability of exploitation activity in the next 30 days.
On this page
Directory traversal vulnerability in WEBrick in Ruby 1.8 before 1.8.5-p115 and 1.8.6-p114, and 1.9 through 1.9.0-1, when running on systems that support backslash (\) path separators or case-insensitive file names, allows remote attackers to access arbitrary files via (1) "..%5c" (encoded backslash) sequences or (2) filenames that match patterns in the :NondisclosureName option.
- EPSS
- 27% (unchanged from 27% a week ago; 27% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
- CWE
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
- OWASP Top 10
- A01:2025 Broken Access Control
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
- Red Hat: fixed package versions per release
- Patch: http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/
- Vendor advisory: http://secunia.com/advisories/29232
- Vendor advisory: http://secunia.com/advisories/29357
- Vendor advisory: http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/
Ask an AI about this CVE
Show the prompt
Explain CVE-2008-1145 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2008-1145?via=ask-ai-copy and https://cve.bz/cve/CVE-2008-1145?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2008-1145 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| fedoraproject:fedora | 7 |
| fedoraproject:fedora | 8 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Red Hat | enterprise_linux:4::as, enterprise_linux:4::desktop, enterprise_linux:4::es and 1 more | irb, ruby, ruby-docs and 5 more | 0:1.8.1-7.el4_7.1 | RHSA-2008:0897 |
| Red Hat | enterprise_linux:5::client | ruby, ruby-ri, ruby-irb and 5 more | 0:1.8.5-5.el5_2.5 | RHSA-2008:0897 |
| Red Hat | enterprise_linux:5::client_workstation | ruby, ruby-mode, ruby-devel and 1 more | 0:1.8.5-5.el5_2.5 | RHSA-2008:0897 |
| Red Hat | enterprise_linux:5::server | ruby, ruby-ri, ruby-irb and 7 more | 0:1.8.5-5.el5_2.5 | RHSA-2008:0897 |
From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.
Red Hat
Red Hat rates this Low.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 4 | ruby-0:1.8.1-7.el4_7.1 | Fixed 2008-10-21 | RHSA-2008:0897 |
| Red Hat Enterprise Linux 5 | ruby-0:1.8.5-5.el5_2.5 | Fixed 2008-10-21 | RHSA-2008:0897 |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2008-1145.
Public exploits
Attack patterns (CAPEC)
- CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
- CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
- CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-126 Path Traversal Likelihood: High · Severity: Very High
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.
References
- http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/
- http://secunia.com/advisories/29232
- http://secunia.com/advisories/29357
- http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
- http://secunia.com/advisories/29536
- http://secunia.com/advisories/30802
- http://secunia.com/advisories/31687
- http://secunia.com/advisories/32371
- http://support.apple.com/kb/HT2163
- http://wiki.rpath.com/Advisories:rPSA-2008-0123
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0123
- http://www.kb.cert.org/vuls/id/404515
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:142
- http://www.redhat.com/support/errata/RHSA-2008-0897.html
- http://www.securityfocus.com/archive/1/489205/100/0/threaded
- http://www.securityfocus.com/archive/1/489218/100/0/threaded
- http://www.securityfocus.com/archive/1/490056/100/0/threaded
- http://www.securityfocus.com/bid/28123
- http://www.securitytracker.com/id?1019562
- http://www.vupen.com/english/advisories/2008/0787
- http://www.vupen.com/english/advisories/2008/1981/references
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41010
- https://issues.rpath.com/browse/RPL-2338
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10937
- https://www.exploit-db.com/exploits/5215
- https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00338.html
- https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00354.html