Uncontrolled recursion in Decoder.Decode in encoding/gob before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack e…
Uncontrolled recursion in Decoder.Decode in encoding/gob before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a message which contains deeply nested structures.
The product manages a group of objects or resources and performs a separate memory allocation for each object, but it does not properly limit the total amount of memory that is consumed by all of the combined objects.
https://cwe.mitre.org/data/definitions/1325.html →Open in CWE collection →The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
https://cwe.mitre.org/data/definitions/674.html →Open in CWE collection →An adversary causes the target to allocate excessive resources to servicing the attackers' request, thereby reducing the resources available for legitimate services and degrading or denying services. Usually, this attack focuses on memory allocation, but any finite resource on the target could be the attacked, including bandwidth, processing cycles, or other resources. This attack does not attempt to force this allocation through a large number of requests (that would be Resource Depletion through Flooding) but instead uses one or a small number of requests that are carefully formatted to force the target to allocate excessive resources to service this request(s). Often this attack takes advantage of a bug in the target to cause the target to allocate resources vastly beyond what would be needed for a normal request.
https://capec.mitre.org/data/definitions/130.html →Open in CAPEC collection →Applications often need to transform data in and out of a data format (e.g., XML and YAML) by using a parser. It may be possible for an adversary to inject data that may have an adverse effect on the parser when it is being processed. Many data format languages allow the definition of macro-like structures that can be used to simplify the creation of complex structures. By nesting these structures, causing the data to be repeatedly substituted, an adversary can cause the parser to consume more resources while processing, causing excessive memory consumption and CPU utilization.
https://capec.mitre.org/data/definitions/230.html →Open in CAPEC collection →An adversary injects oversized serialized data payloads into a parser during data processing to produce adverse effects upon the parser such as exhausting system resources and arbitrary code execution.
https://capec.mitre.org/data/definitions/231.html →Open in CAPEC collection →| Product | Vendor | Status |
|---|---|---|
| container-tools | Tracked | |
| etcd | Tracked | |
| etcd | Tracked | |
| git-lfs | Tracked | |
| git-lfs | Tracked | |
| go-toolset-1.17-golang | Tracked | |
| golang | Tracked | |
| golang-1.11 | Tracked | |
| golang-1.11 | Tracked | |
| golang-1.13 | Tracked | |
| golang-1.13 | Tracked | |
| golang-1.13 | Tracked | |
| golang-1.13 | Tracked | |
| golang-1.13 | Tracked | |
| golang-1.15 | Tracked | |
| golang-1.15 | Tracked | |
| golang-1.16 | Tracked | |
| golang-1.16 | Tracked | |
| golang-1.16 | Tracked | |
| golang-1.16 | Tracked |