# CVE-2022-38749: snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write

Source: https://junglewise.ai/threats/cve-2022-38749-snakeyaml-before-1-31-vulnerable-to-denial-of-service-due-to-out  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-09-06  
License: CC BY 4.0 with a link back

CVE-2022-38749 · Severity: low · CVSS 3.1 · Published 2022-09-06

snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write

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-38749 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-38749 being exploited in the wild.

**How severe is CVE-2022-38749?** Low severity, with a CVSS score of 3.1, published 6 September 2022.

**Which products and versions are affected?** io.prometheus.jmx:jmx_prometheus_httpserver_java6 (Maven) ECOSYSTEM:introduced=0,last_affected=0.18.0; org.testifyproject.external:external-snakeyaml (Maven) ECOSYSTEM:introduced=0,last_affected=1.0.6; org.yaml:snakeyaml (Maven) ECOSYSTEM:introduced=0,fixed=1.31; pl.droidsonroids.yaml:snakeyaml (Maven) ECOSYSTEM:introduced=0,last_affected=1.18.2.

**Is there a fix for CVE-2022-38749?** 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-38749?** Check whether you run be.cylab:snakeyaml (Maven), com.alipay.sofa.acts:acts-common-util (Maven), io.prometheus.jmx:jmx_prometheus_httpserver (Maven) or one of the others listed 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

- be.cylab:snakeyaml (Maven)
- com.alipay.sofa.acts:acts-common-util (Maven)
- io.prometheus.jmx:jmx_prometheus_httpserver (Maven)
- io.prometheus.jmx:jmx_prometheus_httpserver_java6 (Maven) ECOSYSTEM:introduced=0,last_affected=0.18.0
- org.testifyproject.external:external-snakeyaml (Maven) ECOSYSTEM:introduced=0,last_affected=1.0.6
- org.yaml:snakeyaml (Maven) ECOSYSTEM:introduced=0,fixed=1.31
- pl.droidsonroids.yaml:snakeyaml (Maven) ECOSYSTEM:introduced=0,last_affected=1.18.2

## Identifiers

- CVE-2022-38749
- GHSA-c4r9-r8fh-9vj2

## 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-38751-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-38750-snakeyaml-before-1-31-vulnerable-to-denial-of-service-due-to-out)
