{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-28121","id":"CVE-2024-28121","title":"Reflex arbitrary method call in stimulus_reflex","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\\\":\\\"[cla","descriptionLong":"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.","published":"2024-03-12T19:44:29.591Z","updated":"2026-10-28T02:30:25.075276379Z","reserved":"2024-03-04T14:19:14.060Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["stimulusreflex stimulus_reflex"],"affectedProducts":[{"vendor":"stimulusreflex","product":"stimulus_reflex","defaultStatus":null,"versions":[{"version":">= 3.5.0.rc1, < 3.5.0.rc4","status":"affected"},{"version":"< 3.4.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"stimulus_reflex","purl":"pkg:gem/stimulus_reflex","ranges":[">=3.5.0.pre0 <3.5.0.rc4","<3.4.2"],"fixed":["3.5.0.rc4","3.4.2"],"advisory":"GHSA-f78j-4w3g-4q65"},{"ecosystem":"npm","name":"stimulus_reflex","purl":"pkg:npm/stimulus_reflex","ranges":[">=3.5.0-pre0 <3.5.0-rc4","<3.4.2"],"fixed":["3.5.0-rc4","3.4.2"],"advisory":"GHSA-f78j-4w3g-4q65"}],"cwes":["CWE-470"],"aliases":["GHSA-f78j-4w3g-4q65"],"references":[{"url":"https://github.com/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/stimulusreflex/stimulus_reflex/commit/538582d240439aab76066c72335ea92096cd0c7f","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/stimulusreflex/stimulus_reflex/blob/0211cad7d60fe96838587f159d657e44cee51b9b/app/channels/stimulus_reflex/channel.rb#L83","tags":["x_refsource_MISC","x_transferred","Technical Description","web"]},{"url":"https://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.4.2","tags":["x_refsource_MISC","x_transferred","Product","Release Notes","web"]},{"url":"https://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.5.0.rc4","tags":["x_refsource_MISC","x_transferred","Product","Release Notes","web"]},{"url":"http://seclists.org/fulldisclosure/2024/Mar/16","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28121.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28121","tags":["advisory"]},{"url":"https://github.com/stimulusreflex/stimulus_reflex/commit/d823d7348f9ca42eb6df25574f11974e4f5bc88c","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/stimulus_reflex/CVE-2024-28121.yml","tags":["web"]},{"url":"https://github.com/stimulusreflex/stimulus_reflex","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01555,"epssPercentile":0.75696,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-28121","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28121","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-28121","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f78j-4w3g-4q65","ok":true,"note":"GHSA-f78j-4w3g-4q65"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-28121","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}