Data Injection Affecting activerecord package, versions >=4.1.0.beta1, <4.1.0.beta2 >=3.2.0, <4.0.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.29% (70th percentile)

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 ID SNYK-RUBY-ACTIVERECORD-20149
  • published 17 Feb 2014
  • disclosed 17 Feb 2014
  • credit Godfrey Chan

How to fix?

Upgrade activerecord to versions 4.1.0.beta2, 4.0.3 or higher.

Overview

ActiveRecord is the Object-Relational Mapping (ORM) that comes out-of-the-box with Rails. It plays the role of Model in the MVC architecture employed by Rails.

Affected versions of this package are vulnerable to Data Injection via the connection_adapters/postgresql/cast.rb method. Specially crafted strings can be used to save data in PostgreSQL array columns that may not be intended. This vulnerability cannot be used to delete data or execute arbitrary SQL statements, but can be used to add data that could have an impact on the application (such as setting an admin flag). Only array type columns in PostgreSQL are impacted.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

6.3 medium
Expand this section

Red Hat

4.3 medium