CVE-2024-32464: Actiontext ActionText ContentAttachment Can Contain Unsanitized Vulnerability
MODERATECVE-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
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).
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.
Upgrade actiontext to 7.1.3.4
Upgrade actiontext to 7.2.0.beta2
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
CVE-2024-32464 Affected Actiontext Versions
2 component(s)| 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?
Which Actiontext versions are affected?
What version fixes CVE-2024-32464?
Is actiontext affected?
What is the CVSS score of CVE-2024-32464?
What CWE is associated with CVE-2024-32464?
How can I check RubyGems dependencies for CVE-2024-32464?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}