CVE-2024-28121

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-28121
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-28121.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-28121
Aliases
Published
2024-03-12T20:15:08Z
Modified
2024-10-12T11:21:06.219702Z
Summary
[none]
Details

stimulusreflex 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 instancevariable_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.

References

Affected packages

Git / github.com/stimulusreflex/stimulus_reflex

Affected ranges

Type
GIT
Repo
https://github.com/stimulusreflex/stimulus_reflex
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1.0
v0.1.1
v0.1.10
v0.1.12
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v0.2.0
v0.3.0
v0.3.1
v0.3.2
v0.3.3

v1.*

v1.0.0
v1.0.1
v1.0.2
v1.1.0
v1.1.1

v2.*

v2.0.0
v2.0.1
v2.0.2
v2.1.0
v2.1.1
v2.1.2
v2.1.3
v2.1.4
v2.1.5
v2.1.6
v2.1.7
v2.1.8
v2.1.9
v2.2.0
v2.2.1
v2.2.2
v2.2.3

v3.*

v3.0.0
v3.1.0
v3.1.1
v3.1.2
v3.1.3
v3.1.4
v3.2.0
v3.2.0-pre0
v3.2.0.pre0
v3.2.0.pre1
v3.2.1
v3.2.2
v3.2.2.pre0
v3.2.2.pre1
v3.2.3
v3.3.0
v3.3.0.pre0
v3.3.0.pre1
v3.3.0.pre2
v3.3.0.pre3
v3.3.0.pre4
v3.3.0.pre5
v3.3.0.pre6
v3.4.0
v3.4.0.pre0
v3.4.0.pre1
v3.4.0.pre2
v3.4.0.pre3
v3.4.0.pre4
v3.4.0.pre5
v3.4.0.pre6
v3.4.0.pre7
v3.4.0.pre8
v3.4.0.pre9
v3.4.1
v3.5.0.pre0
v3.5.0.pre1
v3.5.0.pre10
v3.5.0.pre2
v3.5.0.pre3
v3.5.0.pre4
v3.5.0.pre5
v3.5.0.pre6
v3.5.0.pre7
v3.5.0.pre8
v3.5.0.pre9
v3.5.0.rc1
v3.5.0.rc2
v3.5.0.rc3