third_party/localtoast: raise go directive in go.mod to fix CVE-2026-33814 Raise the go directive in go.mod from 1.17 to 1.25.10 on cos/release-R125 to clear the vulnerability scanner match on CVE-2026-33814. This module is built by COS (app-admin/localtoast builds localtoast.go and gen_full_config.go with release-R125's dev-lang/go 1.26.11 toolchain, which already fixes CVE-2026-33814, and neither target imports net/http or golang.org/x/net). Fix source: - CVE-2026-33814: upstream 9024c3f6b150 (released in go1.25.10) https://go.googlesource.com/go/+/9024c3f6b150fb1349d8a5dc5e9aa31d7896f67f Changes from upstream: - Raised go directive in go.mod from 1.17 to 1.25.10 (lowest fixed Go version, <= R125 SDK go1.26.11) to clear the scanner match; Go stdlib comes from dev-lang/go-1.26.11-r1 (ec5ebece4146 in go1.26.3). Uploaded by an AI agent using the cos-cve-remediation skill. BUG=b/590456264 TEST=cros_sdk -- emerge-lakitu app-admin/localtoast; cros_sdk -- ebuild-lakitu /mnt/host/source/src/overlays/project-lakitu/app-admin/localtoast/localtoast-9999.ebuild clean prepare; [in R125 chroot go1.26.11] go mod verify; CGO_ENABLED=0 GOOS=linux GOARCH={amd64,arm64} go list -mod=vendor -deps {localtoast.go,./configs/genfullconfig/gen_full_config.go}; CGO_ENABLED=0 GOOS=linux GOARCH={amd64,arm64} go build -mod=vendor {localtoast.go,./configs/genfullconfig/gen_full_config.go,./...}; CGO_ENABLED=0 GOOS=linux GOARCH={amd64,arm64} go vet -mod=vendor ./...; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go test -count=1 -mod=vendor ./... RELEASE_NOTE=Fixed CVE-2026-33814 in app-admin/localtoast. cos-patch: security-high Change-Id: Icafc416f8011b4abd8c90a4bdea3a4691c2be3b5
Localtoast is a scanner for running security-related configuration checks such as CIS benchmarks in an easily configurable manner.
The scanner can either be used as a standalone binary to scan the local machine or as a library with a custom wrapper to perform scans on e.g. container images or remote hosts.
makesudo ./localtoast --config=configs/example.textproto --result=scan-result.textprotomake configssudo ./localtoast --config=configs/full/cos_97/instance_scanning.textproto --result=scan-result.textprotomake configsmake localtoast_sqlsudo localtoast_sql/localtoast_sql --config=configs/full/cassandra-cql/instance_scanning.textproto --result=scan-result.textproto --cassandra-database=localhost:9042github.com/google/localtoast/scannerlib and github.com/google/localtoast/scanapi into your Go projectscanapi.ScanAPI interfacescannerlib.Scanner{}.Scan() with the appropriate config and the implementationSee the scan config and result protos for details on the input+output format.
To add your own checks to a scan config,
make configssudo ./localtoast --config=configs/full/cos_97/instance_scanning.textproto --result=scan-result.textprotoTo build Localtoast, you'll need to have the following installed:
go: Follow https://go.dev/doc/installprotoc: Install the appropriate package, e.g. apt install protobuf-compilerprotoc-gen-go: Run go install google.golang.org/protobuf/cmd/protoc-gen-goRead how to contribute to Localtoast.
Localtoast is released under the Apache 2.0 license.
Copyright 2021 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Localtoast is not an official Google product.