cve.bz

CVE-2022-25857 Billion Laughs Attack

7.5 highExploit referenceEPSS 3.1%Fix available

High (7.5). EPSS 3.1% estimated probability of exploitation activity in the next 30 days. Fixed in org.yaml:snakeyaml 1.31.

On this page
The package org.yaml:snakeyaml from 0 and before 1.31 are vulnerable to Denial of Service (DoS) due missing to nested depth limitation for collections.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.1% (unchanged from 2.9% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-776 Improper Restriction of Recursive Entity References in DTDs (Billion Laughs Attack)
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-25857 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-25857?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-25857?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-25857 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
snakeyaml_project:snakeyamlbefore 1.31
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3mc7-4q67-w48mMavenorg.yaml:snakeyaml<1.311.31

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10snakeyaml1.23-1+deb10u1DLA-3132-1
Debian12, 13, 14snakeyaml1.31-1DEBIAN-CVE-2022-25857
Ubuntu18.04:LTSsnakeyaml1.23-1+deb10u1build0.18.04.1UBUNTU-CVE-2022-25857 USN-5944-1
Ubuntu20.04:LTSsnakeyaml1.25+ds-2ubuntu0.1UBUNTU-CVE-2022-25857 USN-5944-1
Ubuntu22.04:LTSsnakeyaml1.29-1ubuntu0.22.04.1UBUNTU-CVE-2022-25857 USN-5944-1
UbuntuPro:14.04:LTSsnakeyaml1.12-2ubuntu0.14.04.1~esm1UBUNTU-CVE-2022-25857 USN-5944-1
UbuntuPro:16.04:LTSsnakeyaml1.12-2ubuntu0.16.04.1~esm1UBUNTU-CVE-2022-25857 USN-5944-1
Red Hatenterprise_linux:8::appstreamprometheus-jmx-exporter, prometheus-jmx-exporter-openjdk8, prometheus-jmx-exporter-openjdk11 and 1 more0:0.12.0-8.el8_6RHSA-2022:6820
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-snakeyaml0:1.31.0-1.redhat_00001.1.el7eapRHSA-2022:6821
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-undertow0:2.2.19-1.SP2_redhat_00001.1.el7eapRHSA-2022:6821
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-snakeyaml0:1.31.0-1.redhat_00001.1.el8eapRHSA-2022:6822
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-undertow0:2.2.19-1.SP2_redhat_00001.1.el8eapRHSA-2022:6822
Red Hatjboss_enterprise_application_platform:7.4::el9eap7-snakeyaml0:1.31.0-1.redhat_00001.1.el9eapRHSA-2022:6823
Red Hatjboss_enterprise_application_platform:7.4::el9eap7-undertow0:2.2.19-1.SP2_redhat_00001.1.el9eapRHSA-2022:6823
Red Hatjboss_enterprise_application_platform_eus:7.1::el7eap7-activemq-artemis, eap7-activemq-artemis-ra, eap7-activemq-artemis-cli and 13 more0:1.5.5.016-1.redhat_00001.1.ep7.el7RHSA-2025:4226
Red Hatjboss_enterprise_application_platform_eus:7.1::el7eap7-artemis-native, eap7-artemis-native-wildfly, eap7-artemis-native-debuginfo1:1.5.5.016-1.redhat_00001.1.ep7.el7RHSA-2025:4226
Red Hatjboss_enterprise_application_platform_eus:7.1::el7eap7-jboss-xnio-base0:3.5.11-1.Final_redhat_00001.1.ep7.el7RHSA-2025:4226
Red Hatjboss_enterprise_application_platform_eus:7.1::el7eap7-jsoup0:1.14.2-1.redhat_00002.1.ep7.el7RHSA-2025:4226
Red Hatjboss_enterprise_application_platform_eus:7.1::el7eap7-undertow0:1.4.18-14.SP13_redhat_00001.1.ep7.el7RHSA-2025:4226
230 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Development Tools 15 SP3, Linux Enterprise Module for Development Tools 15 SP4, Manager Server Module 4.2 and 1 moresnakeyaml1.31-150200.3.8.1SUSE-SU-2022:3397-1
SUSEManager Server Module 4.1snakeyaml1.31-150200.12.6.1SUSE-SU-2022:3560-1
openSUSELeap 15.3, Leap 15.4snakeyaml1.31-150200.3.8.1SUSE-SU-2022:3397-1
AlmaLinux8prometheus-jmx-exporter, prometheus-jmx-exporter-openjdk110.12.0-8.el8_6ALSA-2022:6820
Rocky Linux8prometheus-jmx-exporter0:0.12.0-8.el8RLSA-2022:6820
Rocky Linux8prometheus-jmx-exporter0:0.12.0-8.el8_6RLSA-2022:6820

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

For RHEL-8 it's downgraded to moderate because "snakeyaml" itself in RHEL 8 or RHEL-9 isn't shipped and "prometheus-jmx-exporter" is needed as build dependency. And it's not directly exploitable, hence severity marked as moderate.

Red Hat Integration and AMQ products are not vulnerable to this flaw, so their severity has been lowered to moderate.

Red Hat Single Sign-On uses snakeyaml from liquibase-core and is only used when performing migrations and would require administrator privileges to execute, hence severity marked as Low.

Red Hat Fuse 7 is now in Maintenance Support Phase and details about its fix should be present soon. However, Red Hat Fuse Online (Syndesis) does will not contain the fix for this flaw.

ProductPackageStateAdvisory
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1698294000-1.el8Fixed 2023-10-30RHSA-2023:6172
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1706515741-1.el8Fixed 2024-02-12RHSA-2024:0778
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1698292274-1.el8Fixed 2023-10-30RHSA-2023:6179
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1706516346-1.el8Fixed 2024-02-12RHSA-2024:0776
OCP-Tools-4.14-RHEL-8jenkins-2-plugins-0:4.14.1699356715-1.el8Fixed 2023-11-16RHSA-2023:7288
OCP-Tools-4.14-RHEL-8jenkins-2-plugins-0:4.14.1706516441-1.el8Fixed 2024-02-12RHSA-2024:0777
OpenShift Developer Tools and Services for OCP 4.11jenkins-2-plugins-0:4.11.1683009941-1.el8Fixed 2023-05-17RHSA-2023:3198
Red Hat AMQ Broker 7snakeyamlFixed 2022-12-07RHSA-2022:8876
Red Hat AMQ ClientssnakeyamlFixed 2023-12-07RHSA-2023:7697
Red Hat build of Eclipse Vert.x 4.3.3snakeyamlFixed 2022-10-05RHSA-2022:6757
A-MQ Clients 2snakeyamlAffected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
Red Hat A-MQ OnlinesnakeyamlNot affected
Red Hat build of Debezium 1snakeyamlNot affected
Red Hat Enterprise Linux 7snakeyamlOut of support scope
Red Hat Integration Camel K 1snakeyamlAffected
Red Hat Integration Camel Quarkus 1snakeyamlAffected
Red Hat Integration Service RegistrysnakeyamlOut of support scope
Red Hat JBoss Data Grid 7snakeyamlOut of support scope
Red Hat JBoss Data Virtualization 6snakeyamlOut of support scope
51 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-25857.

Attack patterns (CAPEC)

  • CAPEC-197 Exponential Data Expansion Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON