Home / snakeyaml / SnakeYAML / CVE-2022-38749
CVE-2022-38749: is it exploited, and which versions of SnakeYAML are affected and fixed?
CVE-2022-38749 is a stack buffer overflow vulnerability in SnakeYAML. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: org.yaml:snakeyaml before 1.31, io.prometheus.jmx:jmx_prometheus_httpserver_java6 through 0.18.0, org.testifyproject.external:external-snakeyaml through 1.0.6 and 1 more (GitHub advisory GHSA-c4r9-r8fh-9vj2). Fixed in 1.31 (GitHub advisory GHSA-c4r9-r8fh-9vj2). Severity: Medium (6.5, CVSS 3.1, from Google).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 28, 2026, 19:38 UTC and NVD November 19, 2026, 07:45 UTC.
What is CVE-2022-38749?
DoS in SnakeYAML
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 stackoverflow.
From the CVE record by Google, last updated August 3, 2024, 11:02 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| snakeyaml | SnakeYAML | before 1.31 | 1.31 |
As the CVE record by Google states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.yaml:snakeyaml | < 1.31 | 1.31 | GHSA-c4r9-r8fh-9vj2 |
| Maven | be.cylab:snakeyaml | 1.25.1 | none listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | com.alipay.sofa.acts:acts-common-util | 1.0.0 | none listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | io.prometheus.jmx:jmx_prometheus_httpserver | 0.17.0 | none listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | io.prometheus.jmx:jmx_prometheus_httpserver_java6 | <= 0.18.0 | none listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | org.testifyproject.external:external-snakeyaml | <= 1.0.6 | none listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | pl.droidsonroids.yaml:snakeyaml | <= 1.18.2 | none listed | GHSA-c4r9-r8fh-9vj2 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 15, 2024. Summary: snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| snakeyaml project | snakeyaml | before 1.31 | application |
| debian | debian linux | 10.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:57 UTC.
How severe is CVE-2022-38749?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | |
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-38749 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.33% probability of exploitation activity in the next 30 days, percentile 84.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47024
- https://bitbucket.org/snakeyaml/snakeyaml/issues/525/got-stackoverflowerror-for-many-open
- [debian-lts-announce] 20221002 [SECURITY] [DLA 3132-1] snakeyaml security update mailing-list
- GLSA-202305-28 vendor-advisory
- https://security.netapp.com/advisory/ntap-20240315-0010/
When was it published, and where is the official record?
- Reserved
- August 25, 2022
- Published
- September 5, 2022, 00:00 UTC
- CVE record updated
- August 3, 2024, 11:02 UTC by Google
- NVD
- Modified, last modified June 17, 2026, 04:57 UTC
- Last checked
- CVE list November 28, 2026, 19:38 UTC; NVD November 19, 2026, 07:45 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect SnakeYAML?
- Dec 1, 2022CVE-2022-1471 SnakeYAML: improper input validation
- Nov 11, 2022CVE-2022-41854 SnakeYaml: stack buffer overflow
- Sep 5, 2022CVE-2022-38752 SnakeYAML: stack buffer overflow
- Sep 5, 2022CVE-2022-38751 SnakeYAML: stack buffer overflow
- Sep 5, 2022CVE-2022-38750 SnakeYAML: stack buffer overflow
Questions about CVE-2022-38749
Is CVE-2022-38749 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 2.33% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of SnakeYAML are affected by CVE-2022-38749?
org.yaml:snakeyaml before 1.31, io.prometheus.jmx:jmx_prometheus_httpserver_java6 through 0.18.0, org.testifyproject.external:external-snakeyaml through 1.0.6 and pl.droidsonroids.yaml:snakeyaml through 1.18.2, per the GitHub advisory GHSA-c4r9-r8fh-9vj2. The tables above give every range the sources list.
Which version fixes CVE-2022-38749?
1.31, per the GitHub advisory GHSA-c4r9-r8fh-9vj2. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-38749?
Medium (6.5, CVSS 3.1, from Google). The severity table above shows each score with its source.
Where is the official record of CVE-2022-38749?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.