Lucene search

K
cvelistGoCVELIST:CVE-2022-30635
HistoryAug 09, 2022 - 8:16 p.m.

CVE-2022-30635 Stack exhaustion when decoding certain messages in encoding/gob

2022-08-0920:16:05
Go
www.cve.org
2
uncontrolled recursion
stack exhaustion
encoding/gob

7.7 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

55.8%

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.

CNA Affected

[
  {
    "vendor": "Go standard library",
    "product": "encoding/gob",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "encoding/gob",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.17.12",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.18.0-0",
        "lessThan": "1.18.4",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "Decoder.decIgnoreOpFor"
      },
      {
        "name": "Decoder.compileIgnoreSingle"
      },
      {
        "name": "Decoder.compileDec"
      }
    ],
    "defaultStatus": "unaffected"
  }
]