{"id":"EUVD-2024-0913","enisaUuid":"f1c24f81-3301-30cb-8a78-5360cb5baf5c","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.","datePublished":"Mar 12, 2024, 7:44:29 PM","dateUpdated":"Feb 13, 2025, 5:47:15 PM","baseScore":8.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","references":"https://github.com/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65\nhttps://github.com/stimulusreflex/stimulus_reflex/commit/538582d240439aab76066c72335ea92096cd0c7f\nhttps://github.com/stimulusreflex/stimulus_reflex/blob/0211cad7d60fe96838587f159d657e44cee51b9b/app/channels/stimulus_reflex/channel.rb#L83\nhttps://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.4.2\nhttps://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.5.0.rc4\nhttp://seclists.org/fulldisclosure/2024/Mar/16\n","aliases":"CVE-2024-28121\nGHSA-f78j-4w3g-4q65\n","assigner":"GitHub_M","epss":1.56,"enisaIdProduct":[{"id":"e4c37854-38b0-3314-80f0-f8984ee4d3c0","product":{"name":"stimulus_reflex","vendor":{"name":"stimulusreflex"}},"product_version":"3.5.0.rc1, \u003c 3.5.0.rc4"},{"id":"fc5182fe-5785-3258-a653-e29128199385","product":{"name":"stimulus_reflex","vendor":{"name":"stimulusreflex"}},"product_version":"\u003c 3.4.2"}],"enisaIdVendor":[{"id":"5b3909d7-c0cb-3d31-9088-eda443fe1646","vendor":{"name":"stimulusreflex"}}],"enisaIdVulnerability":[{"id":"d44c9c30-cdd0-3afb-aed3-8cccc25b8a1a","vulnerability":{"id":"CVE-2024-28121","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.","datePublished":"Mar 12, 2024, 7:44:29 PM","dateUpdated":"Feb 13, 2025, 5:47:15 PM","status":"PUBLISHED","baseScore":8.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","references":"https://github.com/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65\nhttps://github.com/stimulusreflex/stimulus_reflex/commit/538582d240439aab76066c72335ea92096cd0c7f\nhttps://github.com/stimulusreflex/stimulus_reflex/blob/0211cad7d60fe96838587f159d657e44cee51b9b/app/channels/stimulus_reflex/channel.rb#L83\nhttps://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.4.2\nhttps://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.5.0.rc4\nhttp://seclists.org/fulldisclosure/2024/Mar/16\n","enisa_id":"EUVD-2024-0913\n","assigner":"GitHub_M","epss":1.56,"dataProcessed":"Nov 16, 2026, 7:17:43 AM","vulnerabilityProduct":[{"id":"466b7ab0-c453-3b9c-a8d7-b0557980e33b","product":{"name":"stimulus_reflex","vendor":{"name":"stimulusreflex"}},"product_version":"3.5.0.rc1, \u003c 3.5.0.rc4"},{"id":"954b57e3-5c9d-3c3e-b721-7596a8e0f65b","product":{"name":"stimulus_reflex","vendor":{"name":"stimulusreflex"}},"product_version":"\u003c 3.4.2"}],"vulnerabilityVendor":[{"id":"c93bed3d-8bf4-3462-892c-8534fa536d2f","vendor":{"name":"stimulusreflex"}}]}},{"id":"e48263e3-5e3f-3cd0-a940-967bff18e99d","vulnerability":{"id":"GHSA-f78j-4w3g-4q65","description":"StimulusReflex arbitrary method call","datePublished":"Mar 12, 2024, 3:44:49 PM","dateUpdated":"Sep 25, 2024, 8:56:24 PM","baseScore":null,"references":"https://github.com/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-28121\nhttps://github.com/stimulusreflex/stimulus_reflex/commit/538582d240439aab76066c72335ea92096cd0c7f\nhttps://github.com/stimulusreflex/stimulus_reflex/commit/d823d7348f9ca42eb6df25574f11974e4f5bc88c\nhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/stimulus_reflex/CVE-2024-28121.yml\nhttps://github.com/stimulusreflex/stimulus_reflex\nhttps://github.com/stimulusreflex/stimulus_reflex/blob/0211cad7d60fe96838587f159d657e44cee51b9b/app/channels/stimulus_reflex/channel.rb#L83\nhttps://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.4.2\nhttps://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.5.0.rc4\nhttp://seclists.org/fulldisclosure/2024/Mar/16\n","enisa_id":"EUVD-2024-0913\n","aliases":"CVE-2024-28121\nGHSA-f78j-4w3g-4q65\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:35:59 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}