CVE-2012-2695: The Active Record component in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly implement the…
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 2.9% (FIRST EPSS); higher than 87.3% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: graphviz (Red Hat:openshift:1::el6) 0:2.26.0-10.el6; graphviz-debuginfo (Red Hat:openshift:1::el6) 0:2.26.0-10.el6; graphviz-devel (Red Hat:openshift:1::el6) 0:2.26.0-10.el6.
Low priority for now. Upgrade to graphviz (Red Hat:openshift:1::el6) 0:2.26.0-10.el6; graphviz-debuginfo (Red Hat:openshift:1::el6) 0:2.26.0-10.el6; graphviz-devel (Red Hat:openshift:1::el6) 0:2.26.0-10.el6 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
The Active Record component in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly implement the passing of request data to a where method in an ActiveRecord class, which allows remote attackers to conduct certain SQL injection attacks via nested query parameters that leverage improper handling of nested hashes, a related issue to CVE-2012-2661.
- Published
- Jun 22, 2012
- Updated
- Jun 16, 2026
- EPSS
- 2.9% · 87th percentile
- CWE
- CWE-89
Report tools
Action score
31
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.9%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| rubyonrails | rails | cpe:2.3:a:rubyonrails:rails |
| rubyonrails | ruby on rails | cpe:2.3:a:rubyonrails:ruby_on_rails |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- rubyonrails rails3.0.0
- rubyonrails rails3.0.1
- rubyonrails rails3.0.10
- rubyonrails rails3.0.11
- rubyonrails rails3.0.12
- rubyonrails rails3.0.13
- rubyonrails rails3.0.2
- rubyonrails rails3.0.3
+12 more rows
- rubyonrails rails3.0.4
- rubyonrails rails3.0.5
- rubyonrails rails3.0.6
- rubyonrails rails3.0.7
- rubyonrails rails3.0.8
- rubyonrails rails3.0.9
- rubyonrails rails3.1.0
- rubyonrails rails3.1.1
- rubyonrails rails3.1.2
- rubyonrails rails3.1.3
- rubyonrails rails3.1.4
- rubyonrails rails3.1.5
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Red Hat:openshift:1::el6 | graphviz | before 0:2.26.0-10.el6 | 0:2.26.0-10.el6 |
| Red Hat:openshift:1::el6 | graphviz-debuginfo | before 0:2.26.0-10.el6 | 0:2.26.0-10.el6 |
| Red Hat:openshift:1::el6 | graphviz-devel | before 0:2.26.0-10.el6 | 0:2.26.0-10.el6 |
| Red Hat:openshift:1::el6 | graphviz-doc | before 0:2.26.0-10.el6 | 0:2.26.0-10.el6 |
| Red Hat:openshift:1::el6 | graphviz-gd | before 0:2.26.0-10.el6 | 0:2.26.0-10.el6 |
| Red Hat:openshift:1::el6 | graphviz-ruby | before 0:2.26.0-10.el6 | 0:2.26.0-10.el6 |
| Red Hat:openshift:1::el6 | openshift-console | before 0:0.0.16-1.el6op | 0:0.0.16-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-broker | before 0:1.0.11-1.el6op | 0:1.0.11-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-broker-util | before 0:1.0.15-1.el6op | 0:1.0.15-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-cron-1.4 | before 0:1.0.3-1.el6op | 0:1.0.3-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-diy-0.1 | before 0:1.0.3-1.el6op | 0:1.0.3-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-haproxy-1.4 | before 0:1.0.4-1.el6op | 0:1.0.4-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-jbosseap-6.0 | before 0:1.0.4-1.el6op | 0:1.0.4-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-jbossews-1.0 | before 0:1.0.13-1.el6op | 0:1.0.13-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-jenkins-1.4 | before 0:1.0.2-1.el6op | 0:1.0.2-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-jenkins-client-1.4 | before 0:1.0.2-1.el6op | 0:1.0.2-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-mysql-5.1 | before 0:1.0.5-1.el6op | 0:1.0.5-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-perl-5.10 | before 0:1.0.3-1.el6op | 0:1.0.3-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-php-5.3 | before 0:1.0.5-1.el6op | 0:1.0.5-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-postgresql-8.4 | before 0:1.0.3-2.el6op | 0:1.0.3-2.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-ruby-1.8 | before 0:1.0.7-1.el6op | 0:1.0.7-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-cartridge-ruby-1.9-scl | before 0:1.0.8-1.el6op | 0:1.0.8-1.el6op |
| Red Hat:openshift:1::el6 | openshift-origin-msg-node-mcollective | before 0:1.0.3-1.el6op | 0:1.0.3-1.el6op |
| Red Hat:openshift:1::el6 | php | before 0:5.3.3-22.el6 | 0:5.3.3-22.el6 |
+49
Same product
rubyonrails: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-5418There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted…KEV90Now
- CVE-2016-0752Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1…KEV89Now
- CVE-2019-5420A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess the automatically…66This week
Published before and after this one in the same product
- ← EarlierCVE-2012-2661Jun 22, 2012 · The Active Record component in Ruby on Rails 3.0.x before 3.0.13, 3.1.x before 3.1.5, and 3.2.x before 3.2.4 does not properly implement…21Monitor
- ← EarlierCVE-2012-2694Jun 22, 2012 · actionpack/lib/action_dispatch/http/request.rb in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly…18Monitor
- Later →CVE-2012-3424Aug 8, 2012 · The decode_credentials method in actionpack/lib/action_controller/metal/http_authentication.rb in Ruby on Rails 3.x before 3.0.16, 3.1.x…21Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| red hat:graphviz | 0:2.26.0-10.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:graphviz-debuginfo | 0:2.26.0-10.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:graphviz-devel | 0:2.26.0-10.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:graphviz-doc | 0:2.26.0-10.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:graphviz-gd | 0:2.26.0-10.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:graphviz-ruby | 0:2.26.0-10.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:openshift-console | 0:0.0.16-1.el6op · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:openshift-origin-broker | 0:1.0.11-1.el6op · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:openshift-origin-broker-util | 0:1.0.15-1.el6op · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby | 0:1.9.3.327-25.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby-debuginfo | 0:1.9.3.327-25.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| red hat:ruby193-ruby-devel | 0:1.9.3.327-25.el6 · Red Hat:openshift:1::el6 | Package registry (OSV) |
| RubyGems:activerecord | 2.3.15 | Package registry (OSV) |
| RubyGems:activerecord | 3.0.14 | Package registry (OSV) |
| RubyGems:activerecord | 3.1.6 | Package registry (OSV) |
| RubyGems:activerecord | 3.2.6 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')CVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
nvd-primary
Root cause
The query text is built by concatenating user input. The database cannot tell where the data ends and the command begins.
The bug in code
The whole CWE-89 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const owner = req.query.owner;
const rows = await db.query(
"SELECT * FROM files WHERE owner = '" + owner + "'"
);Fixed
const owner = req.query.owner;
const rows = await db.query(
"SELECT * FROM files WHERE owner = $1",
[owner]
);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Expanding Control over the Operating System from the DatabaseCAPEC-470Very High
- SQL InjectionCAPEC-66likelihood: High · High
- Blind SQL InjectionCAPEC-7likelihood: High · High
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (4 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.