PT-2021-14359 · Snakeyaml+1 · Snakeyaml+1
Pwntester
·
Published
2021-01-15
·
Updated
2022-04-26
·
CVE-2021-21249
CVSS v3.1
9.6
Critical
| Vector | AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions:
OneDev versions prior to 4.0.3
Description:
The issue involves YAML parsing and can lead to post-auth remote code execution. OneDev uses SnakeYaml, which allows the instantiation of arbitrary classes by default. This can be leveraged to run arbitrary code by instantiating classes such as
javax.script.ScriptEngineManager and using URLClassLoader to load the script engine provider, resulting in the instantiation of a user-controlled class.Recommendations:
For versions prior to 4.0.3, update to version 4.0.3 or later, which only allows certain known classes to be deserialized. As a temporary workaround, consider disabling the use of SnakeYaml or restricting the instantiation of arbitrary classes until a patch is available.
Fix
Deserialization of Untrusted Data
Special Elements Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Onedev
Snakeyaml