Advisory

GO-2024-3105

Also known as: BIT-golang-2024-34155, CVE-2024-34155

Summary

Stack exhaustion in all Parse functions in go/parser

Details

Calling any of the Parse functions on Go source code which contains deeply nested literals can cause a panic due to stack exhaustion.

Severity

Not rated by the source.

Dates

Published
2024-09-06 19:15 UTC
Modified
2026-02-24 16:29 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.22.7, introduced 1.23.0-0, fixed 1.23.1 (semver)

Fixed versions

1.22.7, 1.23.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences