CVE-2014-0080
SQL injection vulnerability in activerecord/lib/active_record/connection_adapters/postgresql/cast.rb in Active Record in Ruby on Rails 4.0.x before 4.0.3, and 4.1.0.beta1, when PostgreSQL is used, allows remote attackers to execute "add data" SQL commands via vectors involving \ (backslash) characters that are not properly handled in operations on array columns.
What to do
Fixed builds are available from RubyGems: see the table below for the fixed version per release.
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 16.04 | rails | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | rails | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | rails-4.0 | Fix pending | ||
| 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 | activerecord | Fixed | 4.1.0.beta2 | GHSA-hqf9-rc9j-5fmj |
References
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/Wu96YkTUR6s/pPLBMZrlwvYJ
- http://openwall.com/lists/oss-security/2014/02/18/9
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.