CVE-2013-1856
The ActiveSupport::XmlMini_JDOM backend in lib/active_support/xml_mini/jdom.rb in the Active Support component in Ruby on Rails 3.0.x and 3.1.x before 3.1.12 and 3.2.x before 3.2.13, when JRuby is used, does not properly restrict the capabilities of the XML parser, which allows remote attackers to read arbitrary files or cause a denial of service (resource consumption) via vectors involving (1) an external DTD or (2) an external entity declaration in conjunction with an entity reference.
What to do
Fixed builds are available from RubyGems: see the table below for the fixed version per release.
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 16.04 | rails | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | rails | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | ruby-actionpack-3.2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | ruby-activerecord-3.2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | ruby-rails-3.2 | Not affected vulnerable_code_not_present | ||
| RubyGems library | activesupport | Fixed | 3.2.13 | GHSA-9c2j-593q-3g82 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.apple.com/archives/security-announce/2013/Oct/msg00006.html (vendor-advisory)
- http://lists.apple.com/archives/security-announce/2013/Jun/msg00000.html (vendor-advisory)
References
- http://lists.apple.com/archives/security-announce/2013/Oct/msg00006.html
- http://support.apple.com/kb/HT5784
- http://lists.apple.com/archives/security-announce/2013/Jun/msg00000.html
- https://groups.google.com/group/rubyonrails-security/msg/6c2482d4ed1545e6?dmode=source&output=gplain
- http://weblog.rubyonrails.org/2013/3/18/SEC-ANN-Rails-3-2-13-3-1-12-and-2-3-18-have-been-released/
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.