GHSA-5qw5-wf2q-f538 ActiveRecord-JDBC-Adapter (AR-JDBC) lib/arjdbc/jdbc/adapter.rb sql.gsub() Function SQL Injection
Remote attackers can inject SQL via unsanitized input in the ActiveRecord-JDBC-Adapter, leading to data manipulation or disclosure.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-5qw5-wf2q-f538?
GHSA-5qw5-wf2q-f538 is a SQL injection vulnerability in activerecord-jdbc-adapter, published on 16 Jan 2026. It can be exploited over the network, with no action from the victim.
Official description
Which versions are affected by GHSA-5qw5-wf2q-f538?
2 open source packages ship an affected version, including activerecord-jdbc-adapter.
| Package | Affected | Fixed in |
|---|---|---|
activerecord-jdbc-adapter RubyGems | All versions | 1.2.8 |
activerecord-jdbc-adapter RubyGems | All versions | 1.2.8 |
How do I fix GHSA-5qw5-wf2q-f538?
Upgrade activerecord-jdbc-adapter to 1.2.8 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is GHSA-5qw5-wf2q-f538 being exploited?
There is no known exploitation of GHSA-5qw5-wf2q-f538 in the wild and no public exploit code.