GO-2022-1166

Source
https://pkg.go.dev/vuln/GO-2022-1166
Import Source
https://vuln.go.dev/ID/GO-2022-1166.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2022-1166
Aliases
Published
2022-12-22T22:30:45Z
Modified
2024-05-20T16:03:47Z
Summary
Denial of service via schema file in helm.sh/helm/v3
Details

Certain JSON schema validation files can cause a Helm Client to panic, leading to a possible denial of service.

The chartutil package contains a parser that loads a JSON Schema validation file. For example, the Helm client when rendering a chart will validate its values with the schema file. The chartutil package parses the schema file and loads it into memory, but some schema files can cause array data structures to be created causing a memory violation.

The Helm Client will panic with a schema file that causes a memory violation panic. Helm is not a long running service so the panic will not affect future uses of the Helm client.

References
Credits
    • Ada Logics, in a fuzzing audit sponsored by CNCF

Affected packages

Go / helm.sh/helm/v3

Package

Name
helm.sh/helm/v3
View open source insights on deps.dev
Purl
pkg:golang/helm.sh/helm/v3

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.10.3

Ecosystem specific

{
    "imports": [
        {
            "path": "helm.sh/helm/v3/pkg/chartutil",
            "symbols": [
                "ToRenderValues",
                "ValidateAgainstSchema",
                "ValidateAgainstSingleSchema"
            ]
        }
    ]
}