The Mail gem before 2.4.3 for Ruby allows remote attackers to execute arbitrary commands…
Priority MEDIUM 40CWE-20Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
The Mail gem before 2.4.3 for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a (1) sendmail or (2) exim delivery.
Why it matters now
EPSS 0.04466 91st percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Partial mail (RubyGems): 2.4.3Red Hat: 1 advisoryRed Hat: 2 fixed, 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | mail (RubyGems) | before 2.4.3 | 2.4.3 | Patch available | GHSA-rp63-jfmw-532w |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- mail (RubyGems) Vendor— Affected before 2.4.3 Fixed in 2.4.3 Patch available GHSA-rp63-jfmw-532w
Remediation
- Fix · GHSA-rp63-jfmw-532w mail (RubyGems) Fixed in 2.4.3 Advisory →
Red Hat 1 advisory
- RHSA-2012:1542 Released 2012-12-04 · Red Hat rating ModerateCloudForms Commons 1.1 security update
- CloudForms Cloud Engine for RHEL 6 Server converge-ui-devel-1.0.4-1.el6cf, puppet-2.6.17-2.el6cf, puppet-server-2.6.17-2.el6cf +13
- CloudForms System Engine for RHEL 6 Server converge-ui-devel-1.0.4-1.el6cf, puppet-2.6.17-2.el6cf, puppet-server-2.6.17-2.el6cf +13
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Subscription Asset Manager | Affected | No fix yet |
| CloudForms Cloud Engine for RHEL 6 Server | Fixed | RHSA-2012:1542 |
| CloudForms System Engine for RHEL 6 Server | Fixed | RHSA-2012:1542 |
Timeline
- 2026-10-02 Threatist record created from CVE-2012-2140
- 2026-10-03 Alias added: GHSA-rp63-jfmw-532w
References
Exploit 2
Advisory 4
Other 6
- https://bugzilla.redhat.com/show_bug.cgi?id=816352
- [oss-security] 20120425 CVE request: two flaws fixed in rubygem-mail 2.4.4
- https://bugzilla.novell.com/show_bug.cgi?id=759092
- https://github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc
- [oss-security] 20120425 Re: CVE request: two flaws fixed in rubygem-mail 2.4.4
- https://github.com/mikel/mail
More rubygems Mail Gem vulnerabilities
- TI-2012-01912 Directory traversal vulnerability in lib/mail/network/delivery_methods/file_delivery.rb… CVSS 2.0MEDIUM 5.0
Sources
- CVE-2012-2140 · CVE Program
- CVE-2012-2140 · NVD
- FIRST EPSS
- GHSA-rp63-jfmw-532w · GitHub Advisory Database · CC BY 4.0
- CVE-2012-2140 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences