REDHAT-BUG-2499685: High severity sigstore Rekor vulnerability
Rekor's Package.Unmarshal() function in pkg/types/alpine/apk.go decompresses signature and control gzip members of APK files into in-memory buffers without bounding the total decompressed size. An attacker can craft a gzip stream with ~1000:1 compression ratio, causing the server to consume unbounded heap memory and trigger OOM-kill. Reachable via unauthenticated POST /api/v1/log/entries and POST /api/v1/log/entries/retrieve. Fixed in rekor 1.5.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rekorto a version that resolves this vulnerability.Fixed in 1.5.2