Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activesupport
  4. ›
  5. CVE-2012-3464

CVE-2012-3464: activesupport Cross-site Scripting vulnerability

October 24, 2017 (updated January 21, 2025)

Cross-site scripting (XSS) vulnerability in activesupport/lib/active_support/core_ext/string/output_safety.rb in Ruby on Rails before 2.3.16, 3.0.x before , 3.1.x before 3.1.8, and 3.2.x before 3.2.8 might allow remote attackers to inject arbitrary web script or HTML via vectors involving a ’ (quote) character.

References

  • github.com/advisories/GHSA-h835-75hw-pj89
  • github.com/rails/rails
  • github.com/rails/rails/commit/28f2c6f4037081da0a82104a3f473165ed4ed2ce
  • github.com/rails/rails/commit/780a718723cf87b49cfe204d355948c4e0932d23
  • github.com/rails/rails/commit/d0c9759d3aeb6327d68dd6c0de0fe2fed4e3c870
  • github.com/rails/rails/commit/d549df7133f2b0bad8112890d478c33e990e12bc
  • github.com/rails/rails/issues/7215
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2012-3464.yml
  • groups.google.com/group/rubyonrails-security/msg/8f1bbe1cef8c6caf?dmode=source&output=gplain
  • nvd.nist.gov/vuln/detail/CVE-2012-3464

Code Behaviors & Features

Detect and mitigate CVE-2012-3464 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0.beta before 3.0.17, all versions before 3.0.17, all versions starting from 3.1.0 before 3.1.8, all versions starting from 3.2.0 before 3.2.8

Fixed versions

  • 3.0.17
  • 3.1.8
  • 3.2.8
  • 3.0.17

Solution

Upgrade to versions 3.0.17, 3.0.17, 3.1.8, 3.2.8 or above.

Impact 4.3 MEDIUM

AV:N/AC:M/Au:N/C:N/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

gem/activesupport/CVE-2012-3464.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.