Ruby on Rails prior 4.1.0 ActiveRecord cast.rb sql injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.0$0-$5k0.00

Summaryinfo

A vulnerability was found in Ruby on Rails and classified as critical. This affects an unknown part in the library activerecord/lib/active_record/connection_adapters/postgresql/cast.rb of the component ActiveRecord. The manipulation results in sql injection. This vulnerability is known as CVE-2014-0080. It is possible to launch the attack remotely. No exploit is available. It is suggested to upgrade the affected component.

Detailsinfo

A vulnerability classified as critical has been found in Ruby on Rails (Programming Language Software). Affected is an unknown code in the library activerecord/lib/active_record/connection_adapters/postgresql/cast.rb of the component ActiveRecord. The manipulation with an unknown input leads to a sql injection vulnerability. CWE is classifying the issue as 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. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

SQL injection vulnerability in activerecord/lib/active_record/connection_adapters/postgresql/cast.rb in Active Record in Ruby on Rails 4.0.x before 4.0.3, and 4.1.0.beta1, when PostgreSQL is used, allows remote attackers to execute "add data" SQL commands via vectors involving \ (backslash) characters that are not properly handled in operations on array columns.

The weakness was published 02/20/2014 by Kevin Reintjes (Website). The advisory is shared for download at groups.google.com. This vulnerability is traded as CVE-2014-0080 since 12/03/2013. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1505.

The vulnerability scanner Nessus provides a plugin with the ID 72914 (Fedora 20 : rubygem-actionpack-4.0.0-3.fc20 / rubygem-activerecord-4.0.0-2.fc20 (2014-3169)), 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 12853 (Ruby on Rails Multiple Vulnerabilities).

Upgrading to version 4.1.0 eliminates this vulnerability.

The vulnerability is also documented in the databases at X-Force (91167), Tenable (72914), SecurityFocus (BID 65647†) and Vulnerability Center (SBV-43740†). Similar entries are available at VDB-66422 and VDB-66421. Once again VulDB remains the best source for vulnerability data.

Productinfo

Type

Name

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 7.0

VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Sql injection
CWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 72914
Nessus Name: Fedora 20 : rubygem-actionpack-4.0.0-3.fc20 / rubygem-activerecord-4.0.0-2.fc20 (2014-3169)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 867578
OpenVAS Name: Fedora Update for rubygem-actionpack FEDORA-2014-3169
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Ruby on Rails 4.1.0

Timelineinfo

12/03/2013 🔍
02/18/2014 +77 days 🔍
02/18/2014 +0 days 🔍
02/20/2014 +2 days 🔍
02/20/2014 +0 days 🔍
03/11/2014 +19 days 🔍
03/25/2014 +14 days 🔍
03/24/2015 +364 days 🔍
02/01/2022 +2506 days 🔍

Sourcesinfo

Advisory: groups.google.com
Researcher: Kevin Reintjes
Status: Not defined

CVE: CVE-2014-0080 (🔍)
GCVE (CVE): GCVE-0-2014-0080
GCVE (VulDB): GCVE-100-66420
X-Force: 91167
SecurityFocus: 65647 - Ruby on Rails 'NumberHelper' Module Multiple Cross Site Scripting Vulnerabilities
Vulnerability Center: 43740 - Ruby on Rails 3.2.16, 4.0, 4.1 with PostgreSQL Remote SQL Injection Vulnerability, Medium

See also: 🔍

Entryinfo

Created: 03/24/2015 15:54
Updated: 02/01/2022 20:15
Changes: 03/24/2015 15:54 (69), 05/24/2017 09:16 (4), 02/01/2022 20:15 (3)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!