Rails XML parameter parsing: YAML and Symbol type-cast RCE
An XML request parameter can declare its own type; two of the built-in casts deserialize YAML and intern symbols on attacker input, turning a request into arbitrary object instantiation and remote code execution.
- Product
- Ruby on Rails (Action Pack / Active Support parameter parsing)
- Vendor
- Ruby on Rails
- Affected
- < 2.3.15, 3.0.x < 3.0.19, 3.1.x < 3.1.10, 3.2.x < 3.2.11
- Fixed in
- 2.3.15, 3.0.19, 3.1.10, 3.2.11
- Weakness
- CWE-502
- CVSS vector
- AV:N/AC:L/Au:N/C:P/I:P/A:P
- Published
- 13 Jan 2013
Classified as
References
Related CVEs
- CVE-2025-55182critical 10.02025
React2Shell unsafe Flight reference resolution
React Server Components followed attacker-selected object paths through inherited properties while decoding Flight payloads, enabling pre-authentication remote code execution.
- CVE-2023-46604critical 9.82023
Apache ActiveMQ OpenWire reflective class instantiation RCE
The OpenWire protocol marshaller rebuilds an exception by reflectively instantiating an attacker-named class with an attacker-supplied string, so a crafted frame can construct a gadget class and run code on the broker.
- CVE-2023-26360critical 9.82023
Adobe ColdFusion _cfclient deserialization to file load
A request flag turns on a typed-reconstruction path where a deserialized _metadata.classname names a file the server resolves and compiles with no confinement, giving unauthenticated file read and code execution.
- CVE-2023-0669high 7.22023
GoAnywhere MFT license-servlet deserialization RCE
A license-response servlet decodes and decrypts a request parameter, then deserializes the result with ObjectInputStream, so an attacker-supplied object graph executes code during readObject.