PT-2022-20224 · Go+9 · Go+9
Published
2022-07-12
·
Updated
2024-09-06
·
CVE-2022-30635
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Go versions prior to 1.17.12
Go versions prior to 1.18.4
Description
The issue is related to uncontrolled recursion in the
Decoder.Decode function in the encoding/gob package. This allows an attacker to cause a panic due to stack exhaustion by sending a message that contains deeply nested structures. The Decoder.Decode function is vulnerable when processing such messages, leading to a potential crash.Recommendations
For Go versions prior to 1.17.12, update to version 1.17.12 or later to resolve the issue.
For Go versions prior to 1.18.4, update to version 1.18.4 or later to resolve the issue.
As a temporary workaround, consider restricting the use of deeply nested structures in messages to minimize the risk of exploitation.
Fix
Uncontrolled Recursion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Debian
Go
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu