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. Learn more

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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-ACTIVERECORDJDBCADAPTER-1315826
  • published2 Jul 2021
  • disclosed2 Jul 2021
  • creditUnknown

Introduced: 2 Jul 2021

CVE NOT AVAILABLE CWE-89  (opens 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