VDB
Sign up
MEDIUM6.5

GHSA-j3p8-6mrq-6g7h

Golang TIFF decoder vulnerable to excessive CPU consumption

Quick fix

GHSA-j3p8-6mrq-6g7h — golang.org/x/image: upgrade to the fixed version with the command below.

go get golang.org/x/image@v0.10.0

Details

A maliciously-crafted image can cause excessive CPU consumption in decoding. A tiled image with a height of 0 and a very large width can cause excessive CPU consumption, despite the image size (width * height) appearing to be zero.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/golang.org/x/image
Introduced in: 0Fixed in: 0.10.0
Fixgo get golang.org/x/image@v0.10.0

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/golang.org/x/image"]}'