Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. mail
  4. ›
  5. CVE-2012-2140

CVE-2012-2140: Improper Input Validation

July 18, 2012 (updated October 30, 2012)

The Mail gem for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a (1) sendmail or (2) exim delivery.

References

  • lists.fedoraproject.org/pipermail/package-announce/2012-May/080645.html
  • lists.fedoraproject.org/pipermail/package-announce/2012-May/080648.html
  • lists.fedoraproject.org/pipermail/package-announce/2012-May/080747.html
  • secunia.com/advisories/48970
  • www.openwall.com/lists/oss-security/2012/04/25/8
  • www.openwall.com/lists/oss-security/2012/04/26/1
  • bugzilla.novell.com/show_bug.cgi?id=759092
  • bugzilla.redhat.com/show_bug.cgi?id=816352
  • github.com/mikel/mail/blob/9beb079c70d236a5ad2e1ba95b2c977e55deb7af/CHANGELOG.rdoc
  • github.com/mikel/mail/commit/39b590ddb08f90ddbe445837359a2c8843e533d0
  • github.com/mikel/mail/commit/ac56f03bdfc30b379aeecd4ff317d08fdaa328c2
  • nvd.nist.gov/vuln/detail/CVE-2012-2140

Code Behaviors & Features

Detect and mitigate CVE-2012-2140 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.3.2 up to 2.4.1

Fixed versions

  • 2.4.3

Solution

Upgrade to version 2.4.3 or above.

Impact 7.5 HIGH

AV:N/AC:L/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

gem/mail/CVE-2012-2140.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.