CVE-2022-28948 gopkg.in/yaml.v3 Denial of Service

High 7.5 Published Updated

An attacker can crash applications using the Go-Yaml library by providing invalid input to the Unmarshal function, causing a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-28948?

CVE-2022-28948 is a high-severity denial of service vulnerability in n/a, published on 19 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue in the Unmarshal function in Go-Yaml v3 causes the program to crash when attempting to deserialize invalid input.

Weakness: CWE-502

Which versions are affected by CVE-2022-28948?

3 open source packages ship an affected version, including gopkg.in/yaml.v3. It affects 2 products.

PackageAffectedFixed in
gopkg.in/yaml.v3 GoAll versions3.0.0-20220521103104-8f96da9f5d5e
gopkg.in/yaml.v3 GoAll versions3.0.1
gopkg.in/yaml.v3 GoAll versions3.0.1
Linux distribution packages (9)
hawk-apiserver SUSE:Linux Enterprise High Availability Extension 16.0All versions0.1.0+git.1781014483.1c464f2-160000.1.1
ignition SUSE:Linux Enterprise Micro 5.1All versions2.14.0-150300.4.16.1
ignition SUSE:Linux Enterprise Micro 5.2All versions2.14.0-150300.6.16.1
ignition SUSE:Linux Enterprise Micro 5.3All versions2.14.0-150400.4.12.1
ignition SUSE:Linux Enterprise Module for HPC 15 SP6All versions2.14.0-150400.9.12.1
ignition SUSE:Linux Enterprise Module for HPC 15 SP7All versions2.14.0-150400.9.12.1
ignition openSUSE:Leap 15.6All versions2.14.0-150400.9.12.1
hawk-apiserver openSUSE:Leap 16.0All versions0.1.0+git.1781014483.1c464f2-160000.1.1
traefik2 openSUSE:TumbleweedAll versions2.11.29-1.1

Products include Netapp Astra Trident, Yaml Project Yaml.

How do I fix CVE-2022-28948?

Upgrade gopkg.in/yaml.v3 to a fixed version for your release line: 3.0.0-20220521103104-8f96da9f5d5e or 3.0.1.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-28948 being exploited?

There is no known exploitation of CVE-2022-28948 in the wild and no public exploit code.

Sources

Also known as AZL-31966, CLEANSTART-2025-JA36317, CLEANSTART-2025-JX95241, CLEANSTART-2025-OQ82091, CLEANSTART-2026-BY73125, DEBIAN-CVE-2022-28948 and 10 more.

Is CVE-2022-28948 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free