CVE-2024-32464: Actiontext ActionText ContentAttachment Can Contain Unsanitized Vulnerability

MODERATE
Advisory Identifier: GHSA-prjp-h48f-jgf6
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2024-32464 is a MODERATE (CVSS 6.1) actiontext contentattachment can contain unsanitized vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Actiontext libraries in the RubyGems ecosystem. The issue involves actiontext contentattachment can contain unsanitized html. Remediation is available by upgrading affected packages to version 7.1.3.4, 7.2.0.beta2.

CVE-2024-32464 at a Glance

CVE Identifier CVE-2024-32464
GHSA Identifier GHSA-prjp-h48f-jgf6
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Actiontext
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-32464

To remediate this vulnerability, upgrade all affected Actiontext dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

actiontext fixed: 7.1.3.4
Upgrade actiontext to 7.1.3.4
actiontext fixed: 7.2.0.beta2
Upgrade actiontext to 7.2.0.beta2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for actiontext

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-32464, inspect your project dependencies for Actiontext:

inspect dependencies for actiontext

Analyze the terminal output to locate any version of Actiontext in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.1.3.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Actiontext, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Instances of ActionText::Attachable::ContentAttachment included within a rich_text_area tag could potentially contain unsanitized HTML. This has been assigned the CVE identifier CVE-2024-32464. Versions Affected: >= 7.1.0 Not affected: < 7.1.0 Fixed Versions: 7.1.3.4 Impact ------ This could lead to a potential cross site scripting issue within the Trix editor. Releases -------- The fixed releases are available at the normal locations. Workarounds ----------- N/A Patches ------- To aid users who aren't able to upgrade immediately we have provided patches for the supported release series in accordance with our [maintenance policy](https://guides.rubyonrails.org/maintenance_policy.html#security-issues) regarding security issues. They are in git-am format and consist of a single changeset. * action_text_content_attachment_xss_7_1_stable.patch - Patch for 7.1 series Credits ------- Thank you [ooooooo_q](https://hackerone.com/ooooooo_q) for reporting this!

CVE-2024-32464 Affected Actiontext Versions

2 component(s)
Fixed Versions:
7.1.3.47.2.0.beta2
Product / Package Ecosystem Affected Versions Fixed Version
actiontext
RubyGems
≥ 7.1.0
< 7.1.3.4
7.1.3.4
actiontext
RubyGems
≥ 7.2.0.beta1
< 7.2.0.beta2
All 1 versions
7.2.0.beta1
7.2.0.beta2

References

Frequently Asked Questions

What is CVE-2024-32464?
CVE-2024-32464 is a security vulnerability in Actiontext involving ActionText ContentAttachment can Contain Unsanitized HTML under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Actiontext versions are affected?
Affected versions include releases prior to 7.1.3.4, 7.2.0.beta2 across affected packages: actiontext.
What version fixes CVE-2024-32464?
Upgrading to 7.1.3.4, 7.2.0.beta2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is actiontext affected?
Yes, actiontext is affected in releases prior to 7.1.3.4, 7.2.0.beta2. Upgrade your dependency to 7.1.3.4, 7.2.0.beta2 or later.
What is the CVSS score of CVE-2024-32464?
CVE-2024-32464 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2024-32464?
CVE-2024-32464 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check RubyGems dependencies for CVE-2024-32464?
Run the dependency tree command: 'inspect dependencies for actiontext'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-prjp-h48f-jgf6",
  "modified" : "2024-08-27T14:20:53Z",
  "published" : "2024-06-04T22:26:22Z",
  "aliases" : [ "CVE-2024-32464" ],
  "summary" : "ActionText ContentAttachment can Contain Unsanitized HTML",
  "details" : "Instances of ActionText::Attachable::ContentAttachment included within a rich_text_area tag could potentially contain unsanitized HTML.\n\nThis has been assigned the CVE identifier CVE-2024-32464.\n\n\nVersions Affected:  >= 7.1.0\nNot affected:       < 7.1.0\nFixed Versions:     7.1.3.4\n\nImpact\n------\nThis could lead to a potential cross site scripting issue within the Trix editor.\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nWorkarounds\n-----------\nN/A\n\nPatches\n-------\nTo aid users who aren't able to upgrade immediately we have provided patches for the supported release series in accordance with our [maintenance policy](https://guides.rubyonrails.org/maintenance_policy.html#security-issues) regarding security issues. They are in git-am format and consist of a single changeset.\n\n* action_text_content_attachment_xss_7_1_stable.patch - Patch for 7.1 series\n\n\n\nCredits\n-------\n\nThank you [ooooooo_q](https://hackerone.com/ooooooo_q) for reporting this!",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actiontext"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.1.0"
      }, {
        "fixed" : "7.1.3.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actiontext"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.2.0.beta1"
      }, {
        "fixed" : "7.2.0.beta2"
      } ]
    } ],
    "versions" : [ "7.2.0.beta1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/security/advisories/GHSA-prjp-h48f-jgf6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-32464"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/e215bf3360e6dfe1497c1503a495e384ed6b0995"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actiontext/CVE-2024-32464.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-04T22:26:22Z",
    "nvd_published_at" : "2024-06-04T20:15:11Z"
  }
}