Vulnerabilities · 2008 · Ruby-lang
CVE-2008-1891
Ruby-lang Ruby vulnerability
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
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/29794 · Vendor Advisory
- aluigi.altervista.org/adv/webrickcgi-adv.txt
- lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
- secunia.com/advisories/30831
- secunia.com/advisories/31687
- www.mandriva.com/security/advisories?name=MDVSA-2008:140
- www.mandriva.com/security/advisories?name=MDVSA-2008:141
- www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/
- nvd.nist.gov/vuln/detail/CVE-2008-1891
- cve.org/CVERecord?id=CVE-2008-1891
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.