MEDIUM6.1
GO-2026-4962
Excessive memory allocation when decoding malicious SFNT in golang.org/x/image
Quick fix
GO-2026-4962 — golang.org/x/image: upgrade to the fixed version with the command below.
go get golang.org/x/image@v0.39.0Details
Parsing a malicious font file can cause excessive memory allocation.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://go.dev/cl/761180[FIX]
- https://go.dev/issue/78382[REPORT]
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"]}'