Advisory

GHSA-gh2w-j7cx-2664

Also known as: CVE-2012-6496

Summary

Active Record contains SQL Injection

Details

SQL injection vulnerability in the Active Record component in Ruby on Rails before 2.3.15, 3.0.x before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10 allows remote attackers to execute arbitrary SQL commands via a crafted request that leverages incorrect behavior of dynamic finders in applications that can use unexpected data types in certain find_by_ method calls.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2017-10-24 18:33 UTC
Modified
2025-01-21 17:08 UTC

Affected packages and fixes

activerecord

RubyGems · All systems

Affected

  • introduced 3.0.0.beta, fixed 3.0.18 (ecosystem)

Fixed versions

3.0.18

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 3.1.0, fixed 3.1.9 (ecosystem)

Fixed versions

3.1.9

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 3.2.0, fixed 3.2.10 (ecosystem)

Fixed versions

3.2.10

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 0, fixed 2.3.15 (ecosystem)

Fixed versions

2.3.15

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences