Advisory

GO-2024-3107

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

Summary

Stack exhaustion in Parse in go/build/constraint

Details

Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.

Severity

Not rated by the source.

Dates

Published
2024-09-06 19:15 UTC
Modified
2026-08-05 10:56 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