NULL pointer dereference in Ruby on Rails - CVE-2012-2694

 

NULL pointer dereference in Ruby on Rails - CVE-2012-2694

Published: September 29, 2025


Vulnerability identifier: #VU116162
CSH Severity: Medium
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-2694
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to actionpack/lib/action_dispatch/http/request.rb in Ruby on Rails does not properly consider differences in parameter handling between the Active Record component and the Rack interface. A remote attacker can bypass intended database-query restrictions and perform NULL checks via a crafted request.


Affected software

Ruby on Rails

How to mitigate CVE-2012-2694

Install updates from vendor's website.

Ruby on Rails - addressed in versions 3.0.14, 3.1.6, 3.2.6

External References

Related Security Bulletins