{"id":"GHSA-5qw5-wf2q-f538","aliases":["GHSA-5qw5-wf2q-f538"],"related":[],"kind":"vulnerability","state":"published","title":"ActiveRecord-JDBC-Adapter (AR-JDBC) lib/arjdbc/jdbc/adapter.rb sql.gsub() Function SQL Injection","summary":"ActiveRecord-JDBC-Adapter (AR-JDBC) contains a flaw that may allow carrying out an SQL injection attack. The issue is due to the sql.gsub() function in lib/arjdbc/jdbc/adapter.rb not properly sanitizing user-supplied input before using it in SQL queries. This may allow a remote attacker to inject or manipulate SQL queries in the back-end database, allowing for the manipulation or disclosure of arbitrary data.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"ActiveRecord-JDBC-Adapter (AR-JDBC) contains a flaw that may allow carrying out an SQL injection attack. The issue is due to the sql.gsub() function in lib/arjdbc/jdbc/adapter.rb not properly sanitizing user-supplied input before using it in SQL queries. This may allow a remote attacker to inject or manipulate SQL queries in the back-end database, allowing for the manipulation or disclosure of arbitrary data.","format":"markdown","source":"ghsa"}],"published":"2026-01-16T19:20:40.000Z","modified":"2026-02-03T03:11:34.559Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.8"}],"ecosystem":"RubyGems","package":"activerecord-jdbc-adapter","purl":"pkg:gem/activerecord-jdbc-adapter","source":"ghsa"}],"references":[{"url":"https://github.com/jruby/activerecord-jdbc-adapter/issues/322","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jruby/activerecord-jdbc-adapter","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/jruby/activerecord-jdbc-adapter/blob/master/lib/arjdbc/jdbc/adapter.rb","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord-jdbc-adapter/GHSA-5qw5-wf2q-f538.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord-jdbc-adapter/OSVDB-114854.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5qw5-wf2q-f538","url":"https://github.com/advisories/GHSA-5qw5-wf2q-f538","licence":"CC-BY-4.0","modified":"2026-02-03T03:11:34.559Z"}],"updatedAt":"2026-11-25T22:56:41.165Z"}