CVE-2024-28121

8.8 HIGH
Published: March 12, 2024 Modified: December 03, 2025

Description

stimulus_reflex is a system to extend the capabilities of both Rails and Stimulus by intercepting user interactions and passing them to Rails over real-time websockets. In affected versions more methods than expected can be called on reflex instances. Being able to call some of them has security implications. To invoke a reflex a websocket message of the following shape is sent: `\"target\":\"[class_name]#[method_name]\",\"args\":[]`. The server will proceed to instantiate `reflex` using the provided `class_name` as long as it extends `StimulusReflex::Reflex`. It then attempts to call `method_name` on the instance with the provided arguments. This is problematic as `reflex.method method_name` can be more methods that those explicitly specified by the developer in their reflex class. A good example is the instance_variable_set method. This vulnerability has been patched in versions 3.4.2 and 3.5.0.rc4. Users unable to upgrade should: see the backing GHSA advisory for mitigation advice.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://seclists.org/fulldisclosure/2024/Mar/16
Source: security-advisories@github.com
Exploit Third Party Advisory
https://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.4.2
Source: security-advisories@github.com
Product Release Notes
https://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.5.0.rc4
Source: security-advisories@github.com
Product Release Notes
https://github.com/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65
Source: security-advisories@github.com
Exploit Vendor Advisory
http://seclists.org/fulldisclosure/2024/Mar/16
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory
https://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.4.2
Source: af854a3a-2127-422b-91ae-364da2661108
Product Release Notes
https://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.5.0.rc4
Source: af854a3a-2127-422b-91ae-364da2661108
Product Release Notes
https://github.com/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Vendor Advisory

12 reference(s) from NVD

Quick Stats

CVSS v3 Score
8.8 / 10.0
EPSS (Exploit Probability)
1.4%
80th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

stimulusreflex