CVE-2014-2734
The openssl extension in Ruby 2.x does not properly maintain the state of process memory after a file is reopened, which allows remote attackers to spoof signatures within the context of a Ruby script that attempts signature verification after performing a certain sequence of filesystem operations. NOTE: this issue has been disputed by the Ruby OpenSSL team and third parties, who state that the original demonstration PoC contains errors and redundant or unnecessarily-complex code that does not appear to be related to a demonstration of the issue. As of 20140502, CVE is not aware of any public comment by the original researcher
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 14.04 | ruby1.9.1 | Fix pending | ||
| Red Hat Enterprise Linux 7 | ruby | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-irb | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby-tcltk | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-irb | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-rdoc | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-ri | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-static | Not affected | ||
| Red Hat Enterprise Linux 6 | ruby-tcltk | Not affected | ||
| Red Hat Enterprise Linux 5 | ruby | Not affected |
References
- http://packetstormsecurity.com/files/126218/Ruby-OpenSSL-Private-Key-Spoofing.html
- http://www.osvdb.org/106006
- https://news.ycombinator.com/item?id=7601973
- http://www.securityfocus.com/bid/66956
- http://seclists.org/fulldisclosure/2014/May/13
- https://gist.github.com/10446549
- https://www.ruby-lang.org/en/news/2014/05/09/dispute-of-vulnerability-cve-2014-2734/
- https://gist.github.com/emboss/91696b56cd227c8a0c13
- https://github.com/adrienthebo/cve-2014-2734/
- http://seclists.org/fulldisclosure/2014/Apr/231
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.