Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsA fix was pushed into the master
branch but not yet published.
Affected versions of this package are vulnerable to Improper Validation of Array Index due to improper sanitization of palette
indices when parsing palette-color
images. An attacker could craft a malicious image with color indices out of range of the actual palette, which will eventually result in a panic when the consumer tries to read the color at any corrupted pixel.
Note:
This issue was reported before as CVE-2023-36308.
package main
import (
"fmt"
"os"
"golang.org/x/image/tiff"
)
func main() {
if len(os.Args) != 2 {
fmt.Fprintf(os.Stderr, "Usage: %v <filename>")
os.Exit(1)
}
f, err := os.Open(os.Args[1])
if err != nil {
panic(err)
}
defer f.Close()
img, err := tiff.Decode(f)
if err != nil {
panic(err)
}
b := img.Bounds()
for x := b.Min.X; x <= b.Max.X; x++ {
for y := b.Min.Y; y <= b.Max.Y; y++ {
_ = img.At(x, y)
}
}
}