CVE-2024-28121 json
Reflex arbitrary method call in stimulus_reflex
published 2024-03-12 2 y ago modified 2026-09-10 1 mo ago also GHSA-f78j-4w3g-4q65 , EUVD-2024-0913
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems stimulus_reflex 3.4.2, 3.5.0.rc4
- npm stimulus_reflex 3.4.2, 3.5.0-rc4
- stimulusreflex stimulus_reflex 3.4.2, 3.5.0.rc4
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
1.55% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65 referenced PoC, tagged "exploit" by a source, unverified
- seclists.org http://seclists.org/fulldisclosure/2024/Mar/16 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | stimulus_reflex | >=3.5.0.pre0, <3.5.0.rc4 <3.4.2 |
3.5.0.rc4 3.4.2 |
| npm | stimulus_reflex | >=3.5.0-pre0, <3.5.0-rc4 <3.4.2 |
3.5.0-rc4 3.4.2 |
Affected products
- stimulusreflex stimulus_reflex
Classification
- Weakness
-
- CWE-470 Use of Externally-Controlled Input to Select Classes or Code
References
-
github.com
/stimulusreflex/stimulus_reflex/commit/538582d240439aab76066c72335ea92096cd0c7f
web, patch
-
github.com
/stimulusreflex/stimulus_reflex/commit/d823d7348f9ca42eb6df25574f11974e4f5bc88c
web
-
github.com
/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65
web, exploit, vendor-advisory
-
seclists.org
/fulldisclosure/2024/Mar/16
web, exploit, third-party-advisory
-
github.com
/stimulusreflex/stimulus_reflex/blob/0211cad7d60fe96838587f159d657e44cee51b9b/app/channels/stimulus_reflex/cha
web, technical-description
-
github.com
/stimulusreflex/stimulus_reflex/releases/tag/v3.4.2
web, product, release-notes
-
github.com
/stimulusreflex/stimulus_reflex/releases/tag/v3.5.0.rc4
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-28121
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/stimulus_reflex/CVE-2024-28121.yml
web
-
github.com
/stimulusreflex/stimulus_reflex
package
Sources
- CVE List CVE-2024-28121
- GitHub Advisory GHSA-f78j-4w3g-4q65
- NVD CVE-2024-28121
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.