Loading...
Skip to main content

GHSA-5qw5-wf2q-f538 — Vulnerability in activerecord-jdbc-adapter —...

HIGH

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

Published January 16, 2026Updated February 3, 2026Source: osv

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.

Advisory Timeline

  • First published January 16, 2026 (269 days ago).
  • Last revised February 3, 2026 — 17 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update activerecord-jdbc-adapter to 1.2.8 or later
gem install activerecord-jdbc-adapter -v 1.2.8

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
activerecord-jdbc-adapter
rubygems
0.6, 0.7, 0.7.1, 0.7.2 (+27 more)1.2.8

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is GHSA-5qw5-wf2q-f538?
ActiveRecord-JDBC-Adapter (AR-JDBC) lib/arjdbc/jdbc/adapter.rb sql.gsub() Function SQL Injection This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
How do I check if my project is affected by GHSA-5qw5-wf2q-f538?
GHSA-5qw5-wf2q-f538 affects activerecord-jdbc-adapter. Use GeekWala's free vulnerability scanner to check your dependencies against GHSA-5qw5-wf2q-f538 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Related CVEs

  • CVE-2026-94462
    HIGH

    Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

  • CVE-2026-77601
    HIGH

    OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies