Advisory

GHSA-5qw5-wf2q-f538

Also known as: None

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-01-16 19:20 UTC
Modified
2026-02-03 03:11 UTC

Affected packages and fixes

activerecord-jdbc-adapter

RubyGems · All systems

Affected

  • introduced 0, fixed 1.2.8 (ecosystem)

Fixed versions

1.2.8

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences