{"id":"GHSA-5qw5-wf2q-f538","aliases":[],"url":"https://o3.security/vulnerability/GHSA-5qw5-wf2q-f538","summary":"ActiveRecord-JDBC-Adapter (AR-JDBC) lib/arjdbc/jdbc/adapter.rb sql.gsub() Function SQL Injection","details":"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.","published":"2026-01-16T19:20:40Z","modified":"2026-02-03T03:11:34.559768Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"activerecord-jdbc-adapter","fixedVersion":"1.2.8"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/jruby/activerecord-jdbc-adapter/issues/322"},{"type":"PACKAGE","url":"https://github.com/jruby/activerecord-jdbc-adapter"},{"type":"WEB","url":"https://github.com/jruby/activerecord-jdbc-adapter/blob/master/lib/arjdbc/jdbc/adapter.rb"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord-jdbc-adapter/GHSA-5qw5-wf2q-f538.yml"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord-jdbc-adapter/OSVDB-114854.yml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-02-03T03:11:34.559768Z"}}