Vulnerability · Published Sep 5, 2022 · Assigned by Google
CVE-2022-38749DoS in SnakeYAML
Medium 6.5
In plain English
A medium-severity stack buffer overflow in SnakeYAML from snakeyaml. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)2.2%top 17.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 stackoverflow.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | snakeyaml | 1.31-1 | DEBIAN-CVE-2022-38749 |
| Debian:13 | snakeyaml | 1.31-1 | DEBIAN-CVE-2022-38749 |
| Debian:14 | snakeyaml | 1.31-1 | DEBIAN-CVE-2022-38749 |
| Maven | be.cylab:snakeyaml | no fix listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | com.alipay.sofa.acts:acts-common-util | no fix listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | io.prometheus.jmx:jmx_prometheus_httpserver | no fix listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | io.prometheus.jmx:jmx_prometheus_httpserver_java6 | no fix listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | org.testifyproject.external:external-snakeyaml | no fix listed | GHSA-c4r9-r8fh-9vj2 |
| Maven | org.yaml:snakeyaml | 1.31 | GHSA-c4r9-r8fh-9vj2 |
| Maven | pl.droidsonroids.yaml:snakeyaml | no fix listed | GHSA-c4r9-r8fh-9vj2 |
| Ubuntu:22.04:LTS | snakeyaml | 1.29-1ubuntu0.22.04.1 | UBUNTU-CVE-2022-38749 |
| Ubuntu:22.04:LTS | snakeyaml | 1.29-1ubuntu0.22.04.1 | USN-5944-1 |
Affected products (as reported)
Weakness: CWE-121 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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/