Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gopkg.in/yaml.v3
  4. ›
  5. CVE-2022-28948

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

May 20, 2022 (updated August 27, 2025)

An issue in the Unmarshal function in Go-Yaml v3 can cause a program to panic when attempting to deserialize invalid input.

References

  • github.com/advisories/GHSA-hp87-p4gw-j4gq
  • github.com/go-yaml/yaml
  • github.com/go-yaml/yaml/commit/8f96da9f5d5eff988554c1aae1784627c4bf6754
  • github.com/go-yaml/yaml/commit/f6f7691b1fdeb513f56608cd2c32c51f8194bf51
  • github.com/go-yaml/yaml/issues/665
  • github.com/go-yaml/yaml/issues/666
  • nvd.nist.gov/vuln/detail/CVE-2022-28948
  • security.netapp.com/advisory/ntap-20220923-0006

Code Behaviors & Features

Detect and mitigate CVE-2022-28948 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.0.1

Fixed versions

  • 3.0.1

Solution

Upgrade to version 3.0.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

go/gopkg.in/yaml.v3/CVE-2022-28948.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:14 +0000.