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

Advisory record · `GHSA-c4r9-r8fh-9vj2`

- **Identifiers:** `GHSA-c4r9-r8fh-9vj2` · `CVE-2022-38749`
- **State:** Confirmed
- **Severity:** CVSS 6.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-121](https://cwe.mitre.org/data/definitions/121.html) · [CWE-787](https://cwe.mitre.org/data/definitions/787.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Published:** 6 Sept 2022
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Sept 2022, 00:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.yaml:snakeyaml` (Maven): affected `<1.31`; fixed in `1.31`
- `be.cylab:snakeyaml` (Maven): affected `=1.25.1`; no fixed version yet
- `com.alipay.sofa.acts:acts-common-util` (Maven): affected `=1.0.0`; no fixed version yet
- `io.prometheus.jmx:jmx_prometheus_httpserver` (Maven): affected `=0.17.0`; no fixed version yet
- `io.prometheus.jmx:jmx_prometheus_httpserver_java6` (Maven): affected `<=0.18.0`; no fixed version yet
- `org.testifyproject.external:external-snakeyaml` (Maven): affected `<=1.0.6`; no fixed version yet
- `pl.droidsonroids.yaml:snakeyaml` (Maven): affected `<=1.18.2`; no fixed version yet

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> snakeYAML versions before 1.31 can be crashed by parsing untrusted YAML, since a crafted document causes a stack overflow. Upgrade org.yaml:snakeyaml to 1.31 or later. Other listed packages, including be.cylab:snakeyaml, have no fixed version listed, so avoid parsing untrusted input with them.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.5 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`, from CNA (Google)

- **CISA KEV:** Not listed.
- **EPSS:** 0.022, the 82nd percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:18 UTC: First seen by agentprime
- 31 Oct 2026, 14:18 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-c4r9-r8fh-9vj2)

## Sources

- [GitHub Advisory Database: GHSA-c4r9-r8fh-9vj2](https://github.com/advisories/GHSA-c4r9-r8fh-9vj2)
- [OSV: GHSA-c4r9-r8fh-9vj2](https://osv.dev/vulnerability/GHSA-c4r9-r8fh-9vj2)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-38749>
- <https://arxiv.org/pdf/2306.05534.pdf>
- <https://bitbucket.org/snakeyaml/snakeyaml>
- <https://bitbucket.org/snakeyaml/snakeyaml/issues/525/got-stackoverflowerror-for-many-open>
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47024>
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00001.html>
- <https://security.gentoo.org/glsa/202305-28>
- <https://security.netapp.com/advisory/ntap-20240315-0010>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-c4r9-r8fh-9vj2>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-c4r9-r8fh-9vj2/>. Everything for agents: <https://agentprime.io/llms.txt>.
