CVE-2022-38751: 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.

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

18 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/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
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 debian/snakeyaml to a version that resolves this vulnerability.

    Fixed in 1.31-1
  7. 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
  8. Upgrade

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

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

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

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

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

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

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

    Fixed in 1.25+ds-2ubuntu0.1
  12. 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
Jun 15, 2023
Data Sourced
via Red Hat·03:23 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-38751?

CVE-2022-38751 is a vulnerability found in the snakeyaml package that can be exploited for Denial of Service attacks.

2

What is the severity of CVE-2022-38751?

The severity of CVE-2022-38751 is medium, with a CVSS score of 6.5.

3

How does CVE-2022-38751 affect candlepin package?

The candlepin package with version 0:4.2.13-1.el8 is affected by CVE-2022-38751.

4

How does CVE-2022-38751 affect rh-sso7-keycloak package?

The rh-sso7-keycloak package with versions 0:18.0.6-1.redhat_00001.1.el7, 0:18.0.6-1.redhat_00001.1.el8, and 0:18.0.6-1.redhat_00001.1.el9 are affected by CVE-2022-38751.

5

Is there a fix available for CVE-2022-38751?

Yes, a fix is available for CVE-2022-38751. Please refer to the Red Hat security advisory RHSA-2022:8876 for more information.

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