CVE-2014-0080Rubyonrails Rails
Medium 6.8 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 2.0
- 6.8
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Feb 20, 2014
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
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
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | activerecord |
≥ 4.0.0 < 4.0.3 |
4.0.3 |
gem "activerecord", ">= 4.0.3" |
| RubyGems | activerecord |
≥ 4.1.0.beta1 < 4.1.0.beta2 |
4.1.0.beta2 |
gem "activerecord", ">= 4.1.0.beta2" |
Per OSV / GitHub Advisories (GHSA-hqf9-rc9j-5fmj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | 4.0.0 |
| rubyonrails | rails | 4.0.0 |
| rubyonrails | rails | 4.0.0 |
| rubyonrails | rails | 4.0.0 |
| rubyonrails | rails | 4.0.1 |
| rubyonrails | rails | 4.0.1 |
| rubyonrails | rails | 4.0.1 |
| rubyonrails | rails | 4.0.1 |
| rubyonrails | rails | 4.0.1 |
| rubyonrails | rails | 4.0.2 |
| rubyonrails | rails | 4.1.0 |
Official sources
References
Links published by the sources. Open them with care.