Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activerecord
  4. ›
  5. CVE-2013-0155

CVE-2013-0155: Unsafe Query Generation Risk in Ruby on Rails

January 13, 2013 (updated August 8, 2019)

Due to the way Active Record interprets parameters in combination with the way that JSON parameters are parsed, it is possible for an attacker to issue unexpected database queries with “IS NULL” or empty where clauses. This issue does not let an attacker insert arbitrary values into an SQL query, however they can cause the query to check for NULL or eliminate a WHERE clause when most users wouldn’t expect it.

References

  • groups.google.com/forum/?fromgroups=

Code Behaviors & Features

Detect and mitigate CVE-2013-0155 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.0.19, all versions starting from 3.1.0 before 3.1.10, all versions starting from 3.2.0 before 3.2.11

Fixed versions

  • 3.0.19
  • 3.1.10
  • 3.2.11

Solution

Upgrade, patches and workarounds available (see source)

Impact 6.4 MEDIUM

AV:N/AC:L/Au:N/C:P/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-264

Source file

gem/activerecord/CVE-2013-0155.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:09 +0000.