{"id":"CVE-2014-3482","aliases":["DEBIAN-CVE-2014-3482","DSA-2982-1","EUVD-2017-0273","GHSA-mhwp-qhpc-h3jm","RHSA-2014:0876"],"status":"published","title":"SQL Injection in Active Record","description":"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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.04278,"percentile":0.91159,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2014-07-07T10:00:00Z","modified":"2026-10-23T15:47:35Z","fixes":[{"ecosystem":"RubyGems","package":"activerecord","fixed_in":["3.2.19"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"rails","fixed_in":["2:4.1.4-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"rails","fixed_in":["2:4.1.4-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rails","fixed_in":["2:4.1.4-1"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:1::el6","package":"ruby193-rubygem-activerecord","fixed_in":["1:3.2.8-8.2.el6"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:1::el6","package":"ruby193-rubygem-activerecord-doc","fixed_in":["1:3.2.8-8.2.el6"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:1::el7","package":"ruby193-rubygem-activerecord","fixed_in":["1:3.2.8-8.2.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:1::el7","package":"ruby193-rubygem-activerecord-doc","fixed_in":["1:3.2.8-8.2.el7"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"3.2.19"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:4.1.4-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:4.1.4-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:4.1.4-1"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"ruby-activerecord-3.2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.6-5+deb7u1"}]}],"versions":["3.2.6-5"],"bundled":2},{"source":"osv","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"3.2.19"}]}],"versions":["2.0.0","2.0.1","2.0.2","2.0.4","2.0.5","2.1.0","2.1.1","2.1.2","2.2.2","2.2.3","2.3.10","2.3.11","2.3.12","2.3.14","2.3.15","2.3.16","2.3.17","2.3.18","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.8.pre1","2.3.9","2.3.9.pre","3.0.0","3.0.0.beta","3.0.0.beta2","3.0.0.beta3","3.0.0.beta4","3.0.0.rc","3.0.0.rc2","3.0.1","3.0.10","3.0.10.rc1","3.0.11","3.0.12","3.0.12.rc1","3.0.13","3.0.13.rc1","3.0.14","3.0.15","3.0.16","3.0.17","3.0.18","3.0.19","3.0.2","3.0.20","3.0.3","3.0.4","3.0.4.rc1","3.0.5","3.0.5.rc1","3.0.6","3.0.6.rc1","3.0.6.rc2","3.0.7","3.0.7.rc1","3.0.7.rc2","3.0.8","3.0.8.rc1","3.0.8.rc2","3.0.8.rc4","3.0.9","3.0.9.rc1","3.0.9.rc3","3.0.9.rc4","3.0.9.rc5","3.1.0","3.1.0.beta1","3.1.0.rc1","3.1.0.rc2","3.1.0.rc3","3.1.0.rc4","3.1.0.rc5","3.1.0.rc6","3.1.0.rc8","3.1.1","3.1.1.rc1","3.1.1.rc2","3.1.1.rc3","3.1.10","3.1.11","3.1.12","3.1.2","3.1.2.rc1","3.1.2.rc2","3.1.3","3.1.4","3.1.4.rc1","3.1.5","3.1.5.rc1","3.1.6","3.1.7","3.1.8","3.1.9","3.2.0","3.2.0.rc1","3.2.0.rc2","3.2.1","3.2.10","3.2.11","3.2.12","3.2.13","3.2.13.rc1","3.2.13.rc2","3.2.14","3.2.14.rc1","3.2.14.rc2","3.2.15","3.2.15.rc1","3.2.15.rc2","3.2.15.rc3","3.2.16","3.2.17","3.2.18","3.2.2","3.2.2.rc1","3.2.3","3.2.3.rc1","3.2.3.rc2","3.2.4","3.2.4.rc1","3.2.5","3.2.6","3.2.7","3.2.7.rc1","3.2.8","3.2.8.rc1","3.2.8.rc2","3.2.9","3.2.9.rc1","3.2.9.rc2","3.2.9.rc3"]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:1::el6","package":"ruby193-rubygem-activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8-8.2.el6"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:1::el6","package":"ruby193-rubygem-activerecord-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8-8.2.el6"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:1::el7","package":"ruby193-rubygem-activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8-8.2.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:1::el7","package":"ruby193-rubygem-activerecord-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8-8.2.el7"}]}]}],"products":[{"vendor":"rubyonrails","product":"rails"},{"vendor":"rubyonrails","product":"ruby_on_rails"}],"references":[{"url":"http://www.securityfocus.com/bid/68343","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://secunia.com/advisories/59973","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://openwall.com/lists/oss-security/2014/07/02/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://groups.google.com/forum/message/raw?msg=rubyonrails-security/wDxePLJGZdI/WP7EasCJTA4J","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://secunia.com/advisories/60214","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/60763","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-0876.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://www.debian.org/security/2014/dsa-2982","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-3482","tags":["advisory"]},{"url":"https://github.com/rails/rails/commit/1f2192e46d78ee0ba2b06373f2c24caf8440ff5b","tags":["web"]},{"url":"https://groups.google.com/g/rubyonrails-security/c/wDxePLJGZdI","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mhwp-qhpc-h3jm"},{"url":"https://security-tracker.debian.org/tracker/CVE-2014-3482","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://access.redhat.com/errata/RHSA-2014:0876","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1114425","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2014/rhsa-2014_0876.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2014-3482","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2014-3482","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2014-3482","description":"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.","status":"published","published":"2014-07-07T10:00:00Z","modified":"2024-08-06T10:43:06.174Z","updated_at":"2026-11-02T14:33:44.23164Z"}],"euvd":[{"id":"EUVD-2017-0273","description":"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.","status":"published","published":"2014-07-07T10:00:00Z","modified":"2024-08-06T10:43:06Z","updated_at":"2026-11-03T01:57:10.446744Z"}],"ghsa":[{"id":"GHSA-mhwp-qhpc-h3jm","title":"SQL Injection in Active Record","description":"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.","status":"published","published":"2017-10-24T18:33:36Z","modified":"2025-03-31T17:07:59Z","cwes":["CWE-89"],"updated_at":"2026-11-02T14:38:37.325334Z"}],"nvd":[{"id":"CVE-2014-3482","description":"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.","status":"published","published":"2014-07-07T11:01:30.527Z","modified":"2026-06-17T00:08:16.863Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:02:54.827864Z"}],"osv":[{"id":"CVE-2014-3482","description":"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.","status":"published","published":"2014-07-07T11:01:30Z","modified":"2026-04-10T03:43:45.841806Z","updated_at":"2026-11-02T15:43:59.654289Z"},{"id":"DEBIAN-CVE-2014-3482","description":"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.","status":"published","published":"2014-07-07T11:01:30.527Z","modified":"2026-10-23T15:47:35.243585977Z","updated_at":"2026-11-02T15:45:26.134753Z"},{"id":"DSA-2982-1","title":"ruby-activerecord-3.2 - security update","status":"published","published":"2014-07-19T00:00:00Z","modified":"2026-03-09T01:22:53.038845Z","updated_at":"2026-11-02T15:46:15.843838Z"},{"id":"GHSA-mhwp-qhpc-h3jm","title":"SQL Injection in Active Record","description":"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.","status":"published","published":"2017-10-24T18:33:36Z","modified":"2025-03-31T17:38:53.400155Z","cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:51.811331Z"},{"id":"RHSA-2014:0876","title":"Red Hat Security Advisory: ruby193-rubygem-activerecord security update","status":"published","published":"2024-09-13T08:53:56Z","modified":"2026-06-29T10:07:00Z","updated_at":"2026-11-02T15:53:02.532052Z"}]}}
