GHSA-5qw5-wf2q-f538 ActiveRecord-JDBC-Adapter (AR-JDBC) lib/arjdbc/jdbc/adapter.rb sql.gsub() Function SQL Injection
HighCVSS 8.8
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| rubygems activerecord-jdbc-adapter(RubyGems) | < 1.2.8; = 0.6; = 0.7; = 0.7.1 +28 more | 1.2.8 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems activerecord-jdbc-adapter(RubyGems) | < 1.2.8 | 1.2.8 |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.6 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.7 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.7.1 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.7.2 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.8 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.8.1 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.8.2 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9.0.1 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9.1 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9.2 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9.3 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9.4 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9.5 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9.6 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 0.9.7 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.0.0 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.0.0.beta1 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.0.0.beta2 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.0.1 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.0.2 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.0.3 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.1.0 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.1.1 | No fix listed |
Show 7 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.1.2 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.1.3 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.2.0 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.2.1 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.2.2 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.2.2.1 | No fix listed |
| rubygems activerecord-jdbc-adapter(RubyGems) | = 1.2.5 | No fix listed |