You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even when -trimpath is active, emit full ldflags in the version
information ELF note. Vulnerability scanners typically parse ldflags
field to detect main package version, thus binaries that are built
with -trimpath are currently actively evading vulnerability scanners.
Fixes: wolfi-dev#17647Fixes: golang/go#63432
trimpath reduces binary size a lot by stripping filepaths from binaries.
For privacy reasons it also strips ldflags from binaries; even if they don't contain any paths.
That hides useful information - ie.
We should patch our golang toolchain to not hide ldflags from binaries, when they are built using trimpath.
As this hides information from security scanners.
See also:
golang/go#50603
golang/go#63432
The text was updated successfully, but these errors were encountered: