SQL Injection Affecting activerecord-jdbc-adapter package, versions >=1.2.6, <1.2.8


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-ACTIVERECORDJDBCADAPTER-1315826
  • published 2 Jul 2021
  • disclosed 2 Jul 2021
  • credit Unknown

Introduced: 2 Jul 2021

CVE NOT AVAILABLE CWE-89 Open this link in a new tab

How to fix?

Upgrade activerecord-jdbc-adapter to version 1.2.8 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection due to the sql.gsub() function in lib/arjdbc/jdbc/adapter.rb not properly sanitizing user-supplied input beforeusing 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.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
9.8 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High