Skip to content

GO-2024-3107 #4039

@melekes

Description

@melekes

https://pkg.go.dev/vuln/GO-2024-3107

Vulnerable versions: before go1.22.7, from go1.23.0-0 before go1.23.1

Vulnerability #1: GO-2024-3107
    Stack exhaustion in Parse in go/build/constraint
  More info: https://pkg.go.dev/vuln/GO-2024-3107
  Standard library
    Found in: go/build/constraint@go1.22.5
    Fixed in: go/build/constraint@go1.22.7
    Example traces found:
Error:       #1: scripts/metricsgen/metricsgen.go:158:27: metricsgen.ParseMetricsDir calls parser.ParseDir, which eventually calls constraint.Parse

Vulnerability #2: GO-[20](https://github.com/cometbft/cometbft/actions/runs/10766490607/job/29852325945?pr=4025#step:6:21)24-3106
    Stack exhaustion in Decoder.Decode in encoding/gob
  More info: https://pkg.go.dev/vuln/GO-2024-3106
  Standard library
    Found in: encoding/gob@go1.[22](https://github.com/cometbft/cometbft/actions/runs/10766490607/job/29852325945?pr=4025#step:6:23).5
    Fixed in: encoding/gob@go1.22.7
    Example traces found:
Error:       #1: rpc/jsonrpc/server/http_server.go:262:15: server.defaultHandler.ServeHTTP calls http.ServeMux.ServeHTTP, which eventually calls gob.Decoder.Decode

Vulnerability #3: GO-20[24](https://github.com/cometbft/cometbft/actions/runs/10766490607/job/29852325945?pr=4025#step:6:25)-3105
    Stack exhaustion in all Parse functions in go/parser
  More info: https://pkg.go.dev/vuln/GO-2024-3105
  Standard library
    Found in: go/parser@go1.22.5
    Fixed in: go/parser@go1.22.7
    Example traces found:
Error:       #1: scripts/metricsgen/metricsgen.go:158:[27](https://github.com/cometbft/cometbft/actions/runs/10766490607/job/29852325945?pr=4025#step:6:28): metricsgen.ParseMetricsDir calls parser.ParseDir
Error:       #2: scripts/metricsgen/metricsgen.go:204:24: metricsgen.GenerateMetricsFile calls format.Source, which eventually calls parser.ParseFile

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds-triageThis issue/PR has not yet been triaged by the team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions