GitHub Advisory Database
GHSA-mhwp-qhpc-h3jm
SQL Injection in Active Record
Details
SQL injection vulnerability in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb in the PostgreSQL adapter for Active Record in Ruby on Rails 2.x and 3.x before 3.2.19 allows remote attackers to execute arbitrary SQL commands by leveraging improper bitstring quoting.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| RubyGems | activerecord | From 2.0.0 before 3.2.19 (fixed in 3.2.19) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-3482
- https://github.com/rails/rails/commit/1f2192e46d78ee0ba2b06373f2c24caf8440ff5b
- https://github.com/rails/rails
- https://groups.google.com/g/rubyonrails-security/c/wDxePLJGZdI
- http://openwall.com/lists/oss-security/2014/07/02/5
- http://rhn.redhat.com/errata/RHSA-2014-0876.html
- http://www.debian.org/security/2014/dsa-2982