Skip to main content

CVE-2022-38752

Severity

6.5

Description

Using snakeYAML to parse untrusted YAML files may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stack-overflow.

Mitigation

We recommend ensuring that `AllowRecursiveKeys` is never set to `true` and upgrading to a version of this component that is not vulnerable to this specific issue, as the application will still be vulnerable after the upgrade if `AllowRecursiveKeys` is not set to `false`, which is the default configuration since version 1.27.

For more information on setting `AllowRecursiveKeys`, please see this documentation: [https://www.javadoc.io/doc/org.yaml/snakeyaml/latest/org/yaml/snakeyaml/LoaderOptions.html#setAllowRecursiveKeys-boolean-](https://www.javadoc.io/doc/org.yaml/snakeyaml/latest/org/yaml/snakeyaml/LoaderOptions.html#setAllowRecursiveKeys-boolean-)

Note: If this component is included as a bundled/transitive dependency of another component, there may not be an upgrade path. In this instance, we recommend contacting the maintainers who included the vulnerable package. Alternatively, we recommend investigating alternative components or a potential mitigating control.

Project

Apache TomEE

Category
CWE-121 Stack-based Buffer Overflow
Tags
data
configuration
Date Disclosed

2022-09-05

Date Discovered

2022-08-25

Apache TomEE 8.0.x

First release:
2019-09-13
CVEs:
88
Support Lifecycle:
Namespace:
javax
Feel Vulnerable? 

Contact us so we can help you.

* These fields are required.