# CVE-2022-25857: Uncontrolled Resource Consumption in snakeyaml

Source: https://junglewise.ai/threats/cve-2022-25857-uncontrolled-resource-consumption-in-snakeyaml  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-08-31  
License: CC BY 4.0 with a link back

CVE-2022-25857 · Severity: low · CVSS 3.1 · Published 2022-08-31

Uncontrolled Resource Consumption in snakeyaml

Technologies: [org.yaml:snakeyaml (Maven)](https://junglewise.ai/threats/technologies/org-yaml-snakeyaml). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-25857 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-25857 being exploited in the wild.

**How severe is CVE-2022-25857?** Low severity, with a CVSS score of 3.1, published 31 August 2022.

**Which products and versions are affected?** org.yaml:snakeyaml (Maven) ECOSYSTEM:introduced=0,fixed=1.31.

**Is there a fix for CVE-2022-25857?** Yes. org.yaml:snakeyaml (Maven): upgrade to 1.31 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-25857?** Check whether you run org.yaml:snakeyaml (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.yaml:snakeyaml (Maven): upgrade to 1.31 or later

  ```sh
  # set org.yaml:snakeyaml to 1.31 in your pom.xml or build.gradle
  ```


## Affected products

- org.yaml:snakeyaml (Maven) ECOSYSTEM:introduced=0,fixed=1.31

## Identifiers

- CVE-2022-25857
- GHSA-3mc7-4q67-w48m

## Related threats

- [SnakeYaml Constructor Deserialization Remote Code Execution](https://junglewise.ai/threats/cve-2022-1471-snakeyaml-constructor-deserialization-remote-code-execution)
- [Snakeyaml vulnerable to Stack overflow leading to denial of service](https://junglewise.ai/threats/cve-2022-41854-snakeyaml-vulnerable-to-stack-overflow-leading-to-denial-of)
- [snakeYAML before 1.32 vulnerable to Denial of Service due to Out-of-bounds Write](https://junglewise.ai/threats/cve-2022-38752-snakeyaml-before-1-32-vulnerable-to-denial-of-service-due-to-out)
- [snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write](https://junglewise.ai/threats/cve-2022-38749-snakeyaml-before-1-31-vulnerable-to-denial-of-service-due-to-out)
- [snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write](https://junglewise.ai/threats/cve-2022-38751-snakeyaml-before-1-31-vulnerable-to-denial-of-service-due-to-out)
