Bug 2156727 (CVE-2021-4235) - CVE-2021-4235 go-yaml: Denial of Service in go-yaml
Summary: CVE-2021-4235 go-yaml: Denial of Service in go-yaml
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-4235
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2158142 2158143 2158133 2158134 2158135 2158136 2158137 2158138 2158139 2158140 2158144 2158145 2158146 2158147 2158148 2158149 2158150 2158152 2158153 2158154 2158156 2158157 2159172 2159173
Blocks: 2156728
TreeView+ depends on / blocked
 
Reported: 2022-12-28 11:14 UTC by Avinash Hanwate
Modified: 2023-09-01 04:25 UTC (History)
71 users (show)

Fixed In Version: go-yaml 2.2.3
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in go-yaml. This issue occurs due to unbounded alias chasing, where 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.
Clone Of:
Environment:
Last Closed: 2023-01-25 18:22:17 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:7398 0 None None None 2023-01-17 14:51:49 UTC
Red Hat Product Errata RHSA-2023:0569 0 None None None 2023-02-07 21:23:50 UTC
Red Hat Product Errata RHSA-2023:0570 0 None None None 2023-02-07 21:22:42 UTC
Red Hat Product Errata RHSA-2023:1326 0 None None None 2023-05-17 22:31:14 UTC
Red Hat Product Errata RHSA-2023:3615 0 None None None 2023-06-24 01:27:42 UTC
Red Hat Product Errata RHSA-2023:3742 0 None None None 2023-06-22 19:52:11 UTC

Description Avinash Hanwate 2022-12-28 11:14:39 UTC
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.

https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241
https://pkg.go.dev/vuln/GO-2021-0061
https://github.com/go-yaml/yaml/pull/375

Comment 8 Avinash Hanwate 2023-01-04 11:36:13 UTC
Created golang-gopkg-yaml tracking bugs for this issue:

Affects: epel-7 [bug 2158142]


Created golang-gopkg-yaml-1 tracking bugs for this issue:

Affects: fedora-36 [bug 2158144]
Affects: fedora-37 [bug 2158150]


Created golang-gopkg-yaml-2 tracking bugs for this issue:

Affects: fedora-36 [bug 2158145]
Affects: fedora-37 [bug 2158152]


Created golang-gopkg-yaml-3 tracking bugs for this issue:

Affects: fedora-36 [bug 2158146]
Affects: fedora-37 [bug 2158153]


Created golang-k8s-sample-cli-plugin tracking bugs for this issue:

Affects: fedora-36 [bug 2158147]


Created golang-sigs-k8s-kustomize tracking bugs for this issue:

Affects: fedora-36 [bug 2158148]
Affects: fedora-37 [bug 2158154]


Created golang-sigs-k8s-kustomize-kyaml tracking bugs for this issue:

Affects: fedora-36 [bug 2158149]


Created manifest-tool tracking bugs for this issue:

Affects: epel-7 [bug 2158143]

Comment 17 errata-xmlrpc 2023-01-17 14:51:45 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

Via RHSA-2022:7398 https://access.redhat.com/errata/RHSA-2022:7398

Comment 20 Product Security DevOps Team 2023-01-21 09:22:08 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-4235

Comment 21 Product Security DevOps Team 2023-01-25 18:22:12 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-4235

Comment 26 errata-xmlrpc 2023-02-07 21:22:39 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

Via RHSA-2023:0570 https://access.redhat.com/errata/RHSA-2023:0570

Comment 27 errata-xmlrpc 2023-02-07 21:23:47 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

Via RHSA-2023:0569 https://access.redhat.com/errata/RHSA-2023:0569

Comment 28 errata-xmlrpc 2023-05-17 22:31:10 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2023:1326 https://access.redhat.com/errata/RHSA-2023:1326

Comment 29 errata-xmlrpc 2023-06-22 19:52:07 UTC
This issue has been addressed in the following products:

  RHODF-4.13-RHEL-9

Via RHSA-2023:3742 https://access.redhat.com/errata/RHSA-2023:3742

Comment 30 errata-xmlrpc 2023-06-24 01:27:38 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.12

Via RHSA-2023:3615 https://access.redhat.com/errata/RHSA-2023:3615


Note You need to log in before you can comment on or make changes to this bug.