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

Metadata

unknown
unknown
activerecord-jdbc-adapter
osvdb.org
2013-02-25
2017-04-01 19:10
2017-01-05 20:15

Description

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.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
activerecord-jdbc-adapter >= 1.2.8 < 1.2.6