Package
thanos-geomys-fips
Component
github.com/prometheus/prometheus
Latest update
7.5
CVSS V3
Build, ship, and run secure software with minimal, hardened container images — rebuilt from source daily and guarded under our industry-leading remediation SLA.
Start for freeStatus
Impact
The github.com/prometheus/prometheus dependency at v0.309.1 contains a vulnerability that is fixed in v0.311.3. The vulnerable function, DecodeReadRequest in storage/remote, decodes requests to the Prometheus remote read endpoint (/api/v1/read). Thanos does not serve that endpoint: "go tool nm" on /usr/bin/thanos from thanos-geomys-fips 0.42.5-r0 shows neither the function nor its only caller, the remote read handler, on either architecture. The finding comes from the module version. This status matches thanos and thanos-fips, which embed the same module version and measure the same.
Upgrading github.com/prometheus/prometheus from v0.309.1 to v0.311.3 introduces a breaking change that Thanos v0.42.5 has not adopted:
Upstream Thanos has moved its main branch to a newer Prometheus library (https://github.com/thanos-io/thanos/pull/9169), but v0.42.5 is the latest Thanos release. Resolution requires an upstream Thanos release built on Prometheus v0.311.3 or later.
Status
Justification
Impact
The vulnerability is in DecodeReadRequest in github.com/prometheus/prometheus/storage/remote (storage/remote/codec.go), which decodes requests to the Prometheus remote read endpoint (/api/v1/read). The upstream fix (https://github.com/prometheus/prometheus/pull/18584) changes only that function. Thanos uses Prometheus as a library and does not serve the remote read endpoint, and the Go linker drops unreferenced functions, so this code is not in the binary.
Verified with "go tool nm" on /usr/bin/thanos from thanos-geomys-fips 0.42.5-r0. The binary embeds github.com/prometheus/prometheus v0.309.1 and links 365 symbols from storage/remote. None of them is DecodeReadRequest or its only caller, the remote read handler (readHandler, NewReadHandler). The symbol table is intact: 128,009 symbols on x86_64 and 127,652 on aarch64. The result is the same on both architectures.