sops icon indicating copy to clipboard operation
sops copied to clipboard

CVE-2025-61726

Open Tortenschmeisser opened this issue 9 months ago • 6 comments

The net/url package does not set a limit on the number of query parameters in a query. While the maximum size of query parameters in URLs is generally limited by the maximum request header size, the net/http.Request.ParseForm method can parse large URL-encoded forms. Parsing a large form containing many unique query parameters can cause excessive memory consumption.

Location: usr/local/bin/sops Component Name: stdlib Component Version: v1.25.5

golang: net/url: Memory exhaustion in query parameter parsing in net/url

Target: usr/local/bin/sops

Type: gobinary

Fixed version: 1.24.12, 1.25.6

The net/url package does not set a limit on the number of query parameters in a query. While the maximum size of query parameters in URLs is generally limited by the maximum request header size, the net/http.Request.ParseForm method can parse large URL-encoded forms. Parsing a large form containing many unique query parameters can cause excessive memory consumption.

Vulnerability Namespace: nvd:cpe

Vulnerability Description: The net/url package does not set a limit on the number of query parameters in a query. While the maximum size of query parameters in URLs is generally limited by the maximum request header size, the net/http.Request.ParseForm method can parse large URL-encoded forms. Parsing a large form containing many unique query parameters can cause excessive memory consumption.

Matcher: go-module-matcher

Package URL: pkg:golang/[email protected]

Tortenschmeisser avatar Feb 09 '26 13:02 Tortenschmeisser

How does this affect sops? Plesae provide more information.

felixfontein avatar Feb 09 '26 16:02 felixfontein

We use SOPs in our images. However, according to our security policy, we are no longer permitted to use SOPs in this way.

To resolve this issue, only a GO version update is necessary.

Tortenschmeisser avatar Feb 10 '26 07:02 Tortenschmeisser

Since you didn't supply any evidence that this actually affects SOPS (I'm pretty sure it does not) I'm going to close this and the others.

felixfontein avatar Feb 10 '26 17:02 felixfontein

Hi, My team also encounter this CVE finding (CVE-2025-68121) as it's been reported by AWS Inspector. I would say that this does not affect SOPS as it's functional scope - encrypting and decrypting secrets. It would be nice to keep an eye and solve somehow those findings even if they are not functionally mandatory. Thank you.

popesmih avatar Feb 26 '26 08:02 popesmih

@felixfontein It's so easy to fix these findings because it is only an update of the go version.

Tortenschmeisser avatar Feb 26 '26 08:02 Tortenschmeisser

In case you didn't notice, there was a new SOPS release last week.

felixfontein avatar Feb 26 '26 18:02 felixfontein