CVE-2022-30633: Vulnerability in stdlib package - Stack Exhaustion in Unmarshal
Summary
CVE-2022-30633: Uncontrolled recursion in Unmarshal in encoding/xml before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via unmarshalling an XML document into a Go struct which has a nested field... Affects golang-1.15 versions < 1ed3c127daceaffb9aadc806ba60f0b51b47421b. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The stdlib package is a core package in the Go programming language that provides a set of standard libraries for various functionalities. It includes the encoding/xml package, which allows for XML encoding and decoding operations. This vulnerability specifically affects the Unmarshal function in the encoding/xml package.
Vulnerability Detail
Uncontrolled recursion in the Unmarshal function in encoding/xml before Go 1.17.12 and Go 1.18.4 can lead to a stack exhaustion issue. An attacker can exploit this vulnerability by unmarshalling an XML document into a Go struct that has a nested field using the 'any' field tag. This can cause a panic due to stack exhaustion, potentially leading to a denial-of-service (DoS) situation. The vulnerability has a CVSS score of 7.5, indicating a high severity level.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is crucial to update to the fixed versions of the Go programming language.
Conclusion
The vulnerability in the stdlib package's encoding/xml module can result in a stack exhaustion issue, potentially leading to a denial-of-service situation. It is crucial to update to the fixed versions of the Go programming language to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for golang-1.15 →
FAQ
The vulnerability can lead to a denial-of-service (DoS) situation due to stack exhaustion, potentially causing the affected application to crash or become unresponsive.
Versions before Go 1.17.12 and Go 1.18.4 are vulnerable to this issue.
There is no known public exploit for this vulnerability at the time of this report.
The only effective mitigation is to update to the fixed versions of the Go programming language.
Yes, the CVSS score for this vulnerability is 7.5, indicating a high severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for golang-1.15.