VDB
Sign up
HIGH7.5

GHSA-9phm-fm57-rhg8

Panic when parsing invalid palette-color images in golang.org/x/image

Quick fix

GHSA-9phm-fm57-rhg8 — golang.org/x/image: upgrade to the fixed version with the command below.

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

Details

Parsing a corrupt or malicious image with invalid color indices can cause a panic.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/golang.org/x/image
Introduced in: 0Fixed in: 0.18.0
Fixgo get golang.org/x/image@v0.18.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"]}'