p PatchFirst

CVE-2021-4235

CVE-2021-4235 · Denial of service in gopkg.in/yaml.v2

CVSS 5.5 · Medium · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-yaml.v2"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

This page shows selected source facts. See the linked advisories for the complete description and affected versions.

Due to unbounded alias chasing, a maliciously crafted YAML file can cause the system to consume significant system resources. If parsing user input, this may be used as a denial of service vector.

Published
Updated

Fixes in distributions

  • RHSA-2022:7398 · Red Hat openshift 4.12 el8, Red Hat openshift 4.12 el9, Red Hat openshift ironic 4.12 el9 ·
  • USN-6287-1 · Ubuntu 20.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS ·
  • DLA-3479-1 · Debian 10 ·

Stack: system

Affected products and versions

  • gopkg.in/yaml.v2

    Versions
    • ≥ 0, < 2.2.3: Affected (semver)

    Update to 2.2.3

  • github.com/go-yaml/yaml

    No fix published

  • golang-yaml.v2 Debian 12

    Affected ranges
    • ECOSYSTEM: < 2.2.8-1

    Update to 2.2.8-1

  • golang-yaml.v2 Debian 13

    Affected ranges
    • ECOSYSTEM: < 2.2.8-1

    Update to 2.2.8-1

  • golang-yaml.v2 Debian 14

    Affected ranges
    • ECOSYSTEM: < 2.2.8-1

    Update to 2.2.8-1

  • golang-yaml.v2 Ubuntu Pro 16.04 LTS

    Versions
    • 0.0+git20150627.7ad95dd-1
    • 0.0+git20160301.0.a83829b-1
    Affected ranges
    • ECOSYSTEM: < 0.0+git20160301.0.a83829b-1ubuntu0.1~esm1

    Update to 0.0+git20160301.0.a83829b-1ubuntu0.1~esm1

  • golang-yaml.v2 Ubuntu Pro 18.04 LTS

    Versions
    • 0.0+git20170407.0.cd8b52f-1ubuntu1
    • 0.0+git20170407.0.cd8b52f-1ubuntu2
    Affected ranges
    • ECOSYSTEM: < 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1

    Update to 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1

  • singularity-container Ubuntu Pro 18.04 LTS

    Versions
    • 2.3.1-2
    • 2.3.2-1
    • 2.4.1-1
    • 2.4.2-2
    • 2.4.2-3
    • 2.4.2-4
    All versions (7)
    • 2.4.2-4ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • webhook Ubuntu 18.04 LTS

    Versions
    • 2.5.0-1
    • 2.5.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-yaml.v2 Ubuntu 20.04 LTS

    Versions
    • 2.2.2-1
    Affected ranges
    • ECOSYSTEM: < 2.2.2-1ubuntu0.1

    Update to 2.2.2-1ubuntu0.1

  • golang-github-coreos-discovery-etcd-io Ubuntu 20.04 LTS

    Versions
    • 2.0.0+git2019.04.19.git.78fb45d3c9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • webhook Ubuntu 20.04 LTS

    Versions
    • 2.6.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-coreos-discovery-etcd-io Ubuntu 22.04 LTS

    Versions
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • webhook Ubuntu 22.04 LTS

    Versions
    • 2.6.9-1build2
    • 2.8.0-3
    • 2.8.0-3ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-coreos-discovery-etcd-io Ubuntu 24.04 LTS

    Versions
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4build1
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4ubuntu0.24.04.1
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4ubuntu0.24.04.2
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4ubuntu0.24.04.3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • webhook Ubuntu 24.04 LTS

    Versions
    • 2.8.0-4build1
    • 2.8.0-4ubuntu0.24.04.1
    • 2.8.0-4ubuntu0.24.04.2
    • 2.8.0-4ubuntu0.24.04.3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • singularity-container Ubuntu Pro 24.04 LTS

    Versions
    • 4.1.1+ds2-1
    • 4.1.1+ds2-1build1
    • 4.1.1+ds2-1ubuntu0.1
    • 4.1.1+ds2-1ubuntu0.2
    • 4.1.1+ds2-1ubuntu0.2+esm1
    • 4.1.1+ds2-1ubuntu0.3
    All versions (8)
    • 4.1.1+ds2-1ubuntu0.3+esm1
    • 4.1.1+ds2-1ubuntu0.3+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-coreos-discovery-etcd-io Ubuntu 25.10

    Versions
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • singularity-container Ubuntu 25.10

    Versions
    • 4.1.5+ds4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • webhook Ubuntu 25.10

    Versions
    • 2.8.0-4build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-coreos-discovery-etcd-io Ubuntu 26.10

    Versions
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • webhook Ubuntu 26.10

    Versions
    • 2.8.0-4build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-coreos-discovery-etcd-io Ubuntu 26.04 LTS

    Versions
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4build1
    • 2.0.0+git2019.04.19.git.78fb45d3c9-4build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • singularity-container Ubuntu 26.04 LTS

    Versions
    • 4.1.5+ds4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →