{"id":"GHSA-hqf9-rc9j-5fmj","summary":"Array data injection vulnerability in activerecord","details":"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.","aliases":["CVE-2014-0080"],"modified":"2024-12-08T05:37:06.824792Z","published":"2017-10-24T18:33:36Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-06-16T21:40:47Z","nvd_published_at":"2014-02-20T15:27:02Z","cwe_ids":["CWE-89"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-0080"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hqf9-rc9j-5fmj"},{"type":"PACKAGE","url":"https://github.com/rails/rails/tree/main/activerecord"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2014-0080.yml"},{"type":"WEB","url":"https://web.archive.org/web/20210301004521/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/Wu96YkTUR6s/pPLBMZrlwvYJ"},{"type":"WEB","url":"http://openwall.com/lists/oss-security/2014/02/18/9"}],"affected":[{"package":{"name":"activerecord","ecosystem":"RubyGems","purl":"pkg:gem/activerecord"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.3"}]}],"versions":["4.0.0","4.0.1","4.0.1.rc1","4.0.1.rc2","4.0.1.rc3","4.0.1.rc4","4.0.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-hqf9-rc9j-5fmj/GHSA-hqf9-rc9j-5fmj.json"}},{"package":{"name":"activerecord","ecosystem":"RubyGems","purl":"pkg:gem/activerecord"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0.beta1"},{"fixed":"4.1.0.beta2"}]}],"versions":["4.1.0.beta1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-hqf9-rc9j-5fmj/GHSA-hqf9-rc9j-5fmj.json"}}],"schema_version":"1.9.0"}