# CVE-2013-3221: Active Record component in Ruby on Rails has a data-type injection vulnerability

Source: https://junglewise.ai/threats/cve-2013-3221-active-record-component-in-ruby-on-rails-has-a-data-type-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-14  
License: CC BY 4.0 with a link back

CVE-2013-3221 · Severity: medium · CVSS 4 · Published 2022-05-14

Active Record component in Ruby on Rails has a data-type injection vulnerability

Technologies: [activerecord (RubyGems)](https://junglewise.ai/threats/technologies/rubygems-activerecord). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2013-3221 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2013-3221 being exploited in the wild.

**How severe is CVE-2013-3221?** Medium severity, with a CVSS score of 4, published 14 May 2022.

**Which products and versions are affected?** activerecord (RubyGems) ECOSYSTEM:introduced=0,fixed=4.2.0.

**Is there a fix for CVE-2013-3221?** Yes. activerecord (RubyGems): upgrade to 4.2.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2013-3221?** Check whether you run activerecord (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- activerecord (RubyGems): upgrade to 4.2.0 or later

  ```sh
  bundle update activerecord
  ```


## Affected products

- activerecord (RubyGems) ECOSYSTEM:introduced=0,fixed=4.2.0

## Identifiers

- CVE-2013-3221
- GHSA-f57c-hx33-hvh8

## Related threats

- [Active Record logging vulnerable to ANSI escape injection](https://junglewise.ai/threats/cve-2025-55193-active-record-logging-vulnerable-to-ansi-escape-injection)
- [Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter](https://junglewise.ai/threats/cve-2022-44566-denial-of-service-vulnerability-in-activerecord-s-postgresql)
- [SQL Injection Vulnerability via ActiveRecord comments](https://junglewise.ai/threats/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments)
- [Ruby on Rails Active Record RCE via YAML Deserialization in Serialized Columns](https://junglewise.ai/threats/cve-2022-32224-ruby-on-rails-active-record-rce-via-yaml-deserialization-in)
- [Active Record subject to Regular Expression Denial-of-Service (ReDoS)](https://junglewise.ai/threats/cve-2021-22880-active-record-subject-to-regular-expression-denial-of-service)
