CVE-2022-28948 json
gopkg.in/yaml.v3 Denial of Service
published 2022-05-19 4 y ago modified 2026-09-10 1 mo ago also GHSA-hp87-p4gw-j4gq , GO-2022-0603 , EUVD-2022-4183
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.0%
- EPSS 4.0% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
An issue in the Unmarshal function in Go-Yaml v3 causes the program to crash when attempting to deserialize invalid input.
Patch / fix
- go gopkg.in/yaml.v3 3.0.0-20220521103104-8f96da9f5d5e, 3.0.1
- golang-gopkg-yaml.v3 Debian 14, Debian 13, Debian 12 3.0.1-1
debian advisories DEBIAN-CVE-2022-28948
- snapd Ubuntu 20.04 LTS 2.63+20.04ubuntu0.1
- snapd Ubuntu 22.04 LTS 2.63+22.04ubuntu0.1
- snapd Ubuntu 24.04 LTS 2.62+24.04build1
ubuntu advisories UBUNTU-CVE-2022-28948
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- hawk-apiserver SLE High Availability Extension 16.0 0.1.0+git.1781014483.1c464f2-160000.1.1
- ignition SLE Module for HPC 15 SP7, SLE Module for HPC 15 SP6, openSUSE Leap 15.6 2.14.0-150400.9.12.1
- ignition SLE Micro 5.2 2.14.0-150300.6.16.1
- ignition SLE Micro 5.3 2.14.0-150400.4.12.1
- ignition SLE Micro 5.1 2.14.0-150300.4.16.1
suse advisories SUSE-SU-2026:22997-1SUSE-SU-2025:03001-1SUSE-SU-2025:03000-1SUSE-SU-2025:02999-1SUSE-SU-2025:02998-1
- percona-toolkit openSUSE Tumbleweed 3.7.1.4-1.1
- hawk-apiserver openSUSE Leap 16.0 0.1.0+git.1781014483.1c464f2-160000.1.1
- traefik openSUSE Tumbleweed 3.5.1-1.1
- traefik2 openSUSE Tumbleweed 2.11.29-1.1
- coredns Package Hub 15 SP6, openSUSE Leap 15.6 1.11.3-bp156.4.3.1
- coredns openSUSE Tumbleweed 1.10.0-1.1
opensuse advisories openSUSE-SU-2026:12166-1openSUSE-SU-2026:21457-1openSUSE-SU-2025:15529-1openSUSE-SU-2025:15510-1openSUSE-SU-2024:0319-1openSUSE-SU-2024:12490-1
- coredns Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 1.9.3-r0
alpine advisories ALPINE-CVE-2022-28948
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/go-yaml/yaml@8f96da9 commit
- github.com/go-yaml/yaml@f6f7691 commit
- github.com/go-yaml/yaml/issues/666 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-28948 updated cvss 7.5
golang-gopkg-yaml: crash when attempting to deserialize invalid input
-
Red Hat Openshift Container Storage 4 ocs4/cephcsi-rhel8, ocs4/mcg-rhel8-operator, ocs4/ocs-rhel8-operator, ocs4/ocs-must-gather-rhel8affected: no fix planned “Out of support scope”
-
Red Hat Cryostat 2 on RHEL 8 cryostat-tech-preview/cryostat-rhel8 2.1.1-1, cryostat-tech-preview/jfr-datasource-rhel8 2.1.0-2, cryostat-tech-preview/cryostat-reports-rhel8 1.0.0-2, cryostat-tech-preview/cryostat-rhel8-operator 2.1.1-1, cryostat-tech-preview/cryostat-operator-bundle 2.1.1-2fixed: vendor fix RHSA-2022:4985
-
Red Hat OpenShift Dev Spaces 3 devspaces/devspaces-rhel8-operator 3.15-10fixed: vendor fix RHSA-2024:4631
-
Red Hat cert-manager Operator for Red Hat OpenShift cert-manager/cert-manager-operator-rhel9, cert-manager/jetstack-cert-manager-rhel9 Red Hat Cost Management Metrics Operator costmanagement/costmanagement-metrics-rhel8-operator Red Hat Custom Metric Autoscaler operator for Red Hat Openshift custom-metrics-autoscaler/custom-metrics-autoscaler-rhel8, custom-metrics-autoscaler-tech-preview/custom-metrics-autoscaler-rhel8-operator Red Hat Migration Toolkit for Applications 6 mta/mta-hub-rhel8, mta/mta-admin-addon-rhel8, mta/mta-windup-addon-rhel9 Red Hat Migration Toolkit for Containers rhmtc/openshift-velero-plugin-rhel8, rhmtc/openshift-migration-velero-rhel8, rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-velero-plugin-for-aws-rhel8, rhmtc/openshift-migration-velero-plugin-for-gcp-rhel8, rhmtc/openshift-migration-velero-plugin-for-microsoft-azure-rhel8 Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-controller-rhel9, migration-toolkit-virtualization/mtv-must-gather-api-rhel8not affected: vulnerable code not present
+18 more productsfewer
Red Hat mirror registry for Red Hat OpenShift mirror-registry-container Red Hat Network Observability Operator network-observability/network-observability-rhel9-operator, network-observability/network-observability-ebpf-agent-rhel9, network-observability/network-observability-console-plugin-rhel9, network-observability/network-observability-flowlogs-pipeline-rhel9 Red Hat Node HealthCheck Operator workload-availability/node-healthcheck-rhel8-operator Red Hat Node Maintenance Operator workload-availability/node-maintenance-rhel8-operator Red Hat OpenShift API for Data Protection oadp/oadp-velero-rhel9, oadp/oadp-rhel8-operator, oadp/oadp-velero-plugin-rhel8, oadp/oadp-velero-plugin-for-aws-rhel8, oadp/oadp-velero-plugin-for-csi-rhel8, oadp/oadp-velero-plugin-for-gcp-rhel9, +3 more Red Hat OpenShift Developer Tools and Services odo, helm Red Hat 3scale API Management Platform 2 3scale-amp2/3scale-rhel7-operator, 3scale-amp2/apicast-rhel7-operator Red Hat Ansible Automation Platform 1.2 helm, openshift-clients Red Hat Ansible Automation Platform 2 receptor, openshift-clients, rhc-catalog-worker Red Hat OpenShift Container Platform 4 cri-o, butane, buildah, cri-tools, openshift, microshift, +106 more Red Hat Openshift Data Foundation 4 odf4/cephcsi-rhel9, odf4/mcg-rhel9-operator, odf4/ocs-rhel9-operator, odf4/odf-rhel8-operator, noobaa-operator-container, odf4/ocs-must-gather-rhel8, +2 more Red Hat OpenShift Data Science (RHODS) rhods/odh-operator-base-rhel8 Red Hat OpenShift Dev Spaces 3 devspaces/udi-rhel8 3.15-5, devspaces/code-rhel8 3.15-4, devspaces/idea-rhel8 3.15-5, devspaces/server-rhel8 3.15-3, devspaces/traefik-rhel8 3.15-2, devspaces/dashboard-rhel8 3.15-6, +6 more Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-agent-rhel8, rhosdt/jaeger-rhel8-operator, rhosdt/opentelemetry-rhel8-operator, rhosdt/opentelemetry-collector-rhel8 Red Hat OpenShift GitOps openshift-gitops-kam, openshift-gitops-1/dex-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/gitops-rhel8, openshift-gitops-1/kam-delivery-rhel8, openshift-gitops-1/gitops-rhel8-operator Red Hat OpenShift Virtualization 4 kubevirt, container-native-virtualization/virt-api, container-native-virtualization/kubemacpool, container-native-virtualization/bridge-marker, container-native-virtualization/ovs-cni-marker, container-native-virtualization/virt-cdi-cloner, +26 more Red Hat OpenStack Platform 16.1 golang-gopkg-yaml-devel-v2 Red Hat OpenStack Platform 16.2 golang-gopkg-yaml-devel-v2
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.96% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/go-yaml/yaml/issues/666 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gopkg.in/yaml.v3 | <3.0.1 <3.0.0-20220521103104-8f96da9f5d5e |
3.0.1 3.0.0-20220521103104-8f96da9f5d5e |
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/go-yaml/yaml/issues/666
web, exploit, issue-tracking, patch, third-party-advisory
-
github.com
/go-yaml/yaml/commit/8f96da9f5d5eff988554c1aae1784627c4bf6754
web, patch
-
github.com
/go-yaml/yaml/commit/f6f7691b1fdeb513f56608cd2c32c51f8194bf51
web
-
security.netapp.com
/advisory/ntap-20220923-0006/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-28948
advisory
-
github.com
/go-yaml/yaml/issues/665
web
-
github.com
/go-yaml/yaml
package
-
security.netapp.com
/advisory/ntap-20220923-0006
web
Sources
- CVE List CVE-2022-28948
- GitHub Advisory GHSA-hp87-p4gw-j4gq
- NVD CVE-2022-28948
- OSV GO-2022-0603
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.