VDB
Sign up
MEDIUM6.5

GHSA-qpw4-5x99-6vjp

golang.org/x/crypto: Invoking memory leak when rejecting channels can lead to DoS

Quick fix

GHSA-qpw4-5x99-6vjp — golang.org/x/crypto: upgrade to the fixed version with the command below.

go get golang.org/x/crypto@v0.52.0

Details

An authenticated SSH client that repeatedly opened channels which were rejected by the server caused unbounded memory growth, eventually crashing the server process and affecting all connected users. Rejected channels are now properly removed from the connection's internal state and released for garbage collection.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/golang.org/x/crypto
Introduced in: 0Fixed in: 0.52.0
Fixgo get golang.org/x/crypto@v0.52.0

References