Ruby on Rails up to 4.1.2 range Query quoting.rb sql injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.0 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in Ruby on Rails up to 4.1.2 and classified as critical. Affected by this vulnerability is an unknown functionality in the library activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb of the component range Query Handler. This manipulation causes sql injection. The identification of this vulnerability is CVE-2014-3483. It is possible to initiate the attack remotely. Furthermore, there is an exploit available. The affected component should be upgraded.
Details
A vulnerability classified as critical was found in Ruby on Rails up to 4.1.2 (Programming Language Software). Affected by this vulnerability is an unknown part in the library activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb of the component range Query Handler. The manipulation with an unknown input leads to a sql injection vulnerability. The CWE definition for the vulnerability is CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. As an impact it is known to affect confidentiality, integrity, and availability.
The weakness was shared 07/02/2014 by Sean Griffin as Rails 3.2.19, 4.0.7 and 4.1.3 have been released! as confirmed news (Website). It is possible to read the advisory at weblog.rubyonrails.org. This vulnerability is known as CVE-2014-3483 since 05/14/2014. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a exploit are known. The attack technique deployed by this issue is T1505 according to MITRE ATT&CK.
It is declared as highly functional. The vulnerability scanner Nessus provides a plugin with the ID 77345 (Fedora 20 : rubygem-activerecord-4.0.0-4.fc20 (2014-8065)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12997 (Ruby on Rails Active Record Range Quoting SQL Injection Vulnerability).
Upgrading to version 3.2.19, 4.0.7 or 4.1.3 eliminates this vulnerability. A possible mitigation has been published immediately after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at X-Force (94250), Tenable (77345), SecurityFocus (BID 68341†), Secunia (SA59971†) and SecurityTracker (ID 1030516†). The entry VDB-66978 is related to this item. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 7.0
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Sql injectionCWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Highly functional
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 77345
Nessus Name: Fedora 20 : rubygem-activerecord-4.0.0-4.fc20 (2014-8065)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍
OpenVAS ID: 702982
OpenVAS Name: Debian Security Advisory DSA 2982-1 (ruby-activerecord-3.2 - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: Ruby on Rails 3.2.19/4.0.7/4.1.3
Timeline
05/14/2014 🔍07/02/2014 🔍
07/02/2014 🔍
07/02/2014 🔍
07/02/2014 🔍
07/03/2014 🔍
07/07/2014 🔍
07/07/2014 🔍
07/16/2014 🔍
07/23/2014 🔍
08/23/2014 🔍
04/23/2025 🔍
Sources
Advisory: Rails 3.2.19, 4.0.7 and 4.1.3 have been released!Researcher: Sean Griffin
Status: Confirmed
CVE: CVE-2014-3483 (🔍)
GCVE (CVE): GCVE-0-2014-3483
GCVE (VulDB): GCVE-100-66979
OVAL: 🔍
X-Force: 94250 - Ruby on Rails ActiveRecord SQL injection, High Risk
SecurityFocus: 68341 - Ruby on Rails 'ActiveRecord' CVE-2014-3483 SQL Injection Vulnerability
Secunia: 59971 - Red Hat update for ror40-rubygem-activerecord, Less Critical
SecurityTracker: 1030516 - Rails SQL Quoting Bug in ActiveRecord 'bitstring' and 'range' Queries Lets Remote Users Inject SQL Commands
Vulnerability Center: 45572 - Ruby on Rails <4.0.7, 4.1-4.1.2 Remote SQL Injection Vulnerability in PostgreSQL Adapter for Active Record, Medium
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 07/07/2014 10:05Updated: 04/23/2025 23:57
Changes: 07/07/2014 10:05 (89), 02/08/2022 09:55 (3), 02/08/2022 09:59 (1), 12/16/2024 11:01 (18), 04/23/2025 23:57 (2)
Complete: 🔍
Cache ID: 216:59B:103
No comments yet. Languages: en.
Please log in to comment.