CVE-2022-38749: DoS in SnakeYAML

Published Sep 5, 2022
·
Updated

A flaw was found in the snakeyaml package due to a stack-overflow in parsing YAML files. By persuading a victim to open a specially-crafted file, a remote attacker could cause the application to crash, resulting in a denial of service.

Other sources

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 Software

25 affected componentsFixes available
redhat/candlepin<0:4.2.13-1.el8
0:4.2.13-1.el8
redhat/rh-sso7-keycloak<0:18.0.6-1.redhat_00001.1.el7
0:18.0.6-1.redhat_00001.1.el7
redhat/rh-sso7-keycloak<0:18.0.6-1.redhat_00001.1.el8
0:18.0.6-1.redhat_00001.1.el8
redhat/rh-sso7-keycloak<0:18.0.6-1.redhat_00001.1.el9
0:18.0.6-1.redhat_00001.1.el9
maven/pl.droidsonroids.yaml:snakeyaml<=1.18.2
maven/org.testifyproject.external:external-snakeyaml<=1.0.6
maven/io.prometheus.jmx:jmx_prometheus_httpserver_java6<=0.18.0
maven/io.prometheus.jmx:jmx_prometheus_httpserver=0.17.0
maven/com.alipay.sofa.acts:acts-common-util=1.0.0
maven/be.cylab:snakeyaml=1.25.1
maven/org.yaml:snakeyaml<1.31
1.31
Snakeyaml Project Snakeyaml<1.31
Debian Debian Linux=10.0
Microsoft cbl2 snakeyaml
IBM watsonx.data intelligence<=5.2.0, 5.2.1, 5.3.0, 5.3.1
redhat/snakeyaml<1.31.0
1.31.0
debian/snakeyaml<1.31-1
1.31-1
debian/snakeyaml<1.31-1
1.31-1
debian/snakeyaml<1.31-1
1.31-1
debian/snakeyaml
1.23-1+deb10u11.28-1+deb11u11.31-1
ubuntu/snakeyaml<1.12-2ubuntu0.14.04.1~esm1
1.12-2ubuntu0.14.04.1~esm1
ubuntu/snakeyaml<1.12-2ubuntu0.16.04.1~esm1
1.12-2ubuntu0.16.04.1~esm1
ubuntu/snakeyaml<1.23-1+deb10u1build0.18.04.1
1.23-1+deb10u1build0.18.04.1
ubuntu/snakeyaml<1.25+ds-2ubuntu0.1
1.25+ds-2ubuntu0.1
ubuntu/snakeyaml<1.29-1ubuntu0.22.04.1
1.29-1ubuntu0.22.04.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/candlepin to a version that resolves this vulnerability.

    Fixed in 0:4.2.13-1.el8
  2. Upgrade

    Upgrade redhat/rh-sso7-keycloak to a version that resolves this vulnerability.

    Fixed in 0:18.0.6-1.redhat_00001.1.el7
  3. Upgrade

    Upgrade redhat/rh-sso7-keycloak to a version that resolves this vulnerability.

    Fixed in 0:18.0.6-1.redhat_00001.1.el8
  4. Upgrade

    Upgrade redhat/rh-sso7-keycloak to a version that resolves this vulnerability.

    Fixed in 0:18.0.6-1.redhat_00001.1.el9
  5. Upgrade

    Upgrade maven/org.yaml:snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.31
  6. Upgrade

    Upgrade redhat/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.31.0
  7. Upgrade

    Upgrade debian/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.31-1
  8. Upgrade

    Upgrade debian/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.23-1+deb10u1Fixed in 1.28-1+deb11u1Fixed in 1.31-1
  9. Upgrade

    Upgrade ubuntu/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.12-2ubuntu0.14.04.1~esm1
  10. Upgrade

    Upgrade ubuntu/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.12-2ubuntu0.16.04.1~esm1
  11. Upgrade

    Upgrade ubuntu/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.23-1+deb10u1build0.18.04.1
  12. Upgrade

    Upgrade ubuntu/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.25+ds-2ubuntu0.1
  13. Upgrade

    Upgrade ubuntu/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.29-1ubuntu0.22.04.1

Event History

Sep 5, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·10:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeaknessAffected Software
Sep 6, 2022
Advisory Published
via GitHub·12:00 AM
Data Sourced
via GitHub·12:00 AM
DescriptionSeverityWeaknessAffected Software
Dec 8, 2022
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Updated
via IBM·12:00 AM
Affected Software
Mar 10, 2023
Updated
12:00 AM
Affected Software
Dec 7, 2023
Data Sourced
via Red Hat·01:42 PM
DescriptionSeverityAffected Software
Mar 15, 2024
Advisory Published
via GitHub·12:30 PM
Mar 25, 2025
Updated
via IBM·12:00 AM
Affected Software
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Mar 4, 2026
Updated
via IBM·12:00 AM
DescriptionAffected Software
Apr 27, 2026
Updated
via IBM·12:00 AM
Affected Software
Jun 17, 2026
Updated
via NVD·04:57 AM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-38749?

CVE-2022-38749 is a vulnerability in the snakeyaml package that allows for Denial of Service (DOS) attacks through the parsing of specially-crafted YAML files.

2

How severe is CVE-2022-38749?

CVE-2022-38749 has a severity rating of 6.5 out of 10, making it a medium severity vulnerability.

3

Which software versions are affected by CVE-2022-38749?

Versions up to but not including 1.31.0 of the snakeyaml package are affected by CVE-2022-38749.

4

How can I fix CVE-2022-38749?

To fix CVE-2022-38749, you should update your snakeyaml package to version 1.31.0 or later.

5

Where can I find more information about CVE-2022-38749?

You can find more information about CVE-2022-38749 on the CVE website (https://www.cve.org/CVERecord?id=CVE-2022-38749) and the NIST National Vulnerability Database (https://nvd.nist.gov/vuln/detail/CVE-2022-38749).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203