GHSA-5qw5-wf2q-f538
JSON

high

ActiveRecord-JDBC-Adapter (AR-JDBC) lib/arjdbc/jdbc/adapter.rb sql.gsub() Function SQL Injection

Severity
high CVSS:4.0 by GitHub
Published
Last changed

Description

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.

Affected

Product or packageVersionsReported by
activerecord-jdbc-adapter (RubyGems)before 1.2.8GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-5qw5-wf2q-f538 changed 2026-02-03CC-BY-4.0