Vulnerability
CVE-2026-48702
Rekor is a software supply chain transparency log. Starting in version 0.3.0 and prior to version 1.5.2, the `Package.Unmarshal()` function in `pkg/types/alpine/apk.go` decompresses the signature and control gzip members of an APK file into in-memory buffers without bounding the total decompressed size. The existing `max_apk_metadata_size` check (default 1MB) is only applied to individual tar entry header sizes after decompression completes, so it does not prevent a decompression bomb from consuming unbounded heap memory. An attacker can craft a gzip stream that compresses at a ~1000:1 ratio (e.g., 2MB compressed zeros → 2GB decompressed). When submitted as spec.package.content in an Alpine `ProposedEntry`, the server decompresses the full payload into memory during request processing, triggering a fatal Go runtime out-of-memory error or OS OOM-kill that cannot be caught by the server's recover() middleware. This is reachable via two unauthenticated endpoints, `POST /api/v1/log/entries (createLogEntry)` and `POST /api/v1/log/entries/retrieve (searchLogQuery)`. Both invoke `V001Entry.Canonicalize()` → `fetchExternalEntities()` → `apk.Unmarshal(packageData)`, which performs the unbounded decompression. Version 1.5.2 patches the issue. There is no effective workaround. Setting `max_request_body_size` reduces but does not eliminate exposure due to the ~1000:1 compression ratio (a 1MB body limit still allows ~1GB heap allocation). Setting `max_apk_metadata_size` has no effect on this vulnerability since the check is applied after decompression.
318 advisories report this vulnerability, across 9 ecosystems.
Advisories in Wolfi
- CGA-232r-v63j-mr5r
- CGA-23r4-5879-g5j9
- CGA-2725-xx9m-g86m
- CGA-2g8h-vv43-rv8w
- CGA-2q6f-235h-wjjq
- CGA-34fj-m4wx-v7w5
- CGA-36wh-pg5w-7gq3
- CGA-3rrf-r4ff-488p
- CGA-3xj2-c5wx-8w24
- CGA-42j6-g82g-4463
- CGA-477r-x9r6-5w64
- CGA-47hp-xv9x-hhgv
- CGA-49fc-7vpj-cfx8
- CGA-4qf7-j3w8-c2jr
- CGA-5pp6-wj56-fjhv
- CGA-6x64-6v74-42gg
- CGA-727w-jr9x-72r6
- CGA-72g6-44vq-h85m
- CGA-73wg-p2mc-5cpx
- CGA-755v-99hp-8jxr
- CGA-7954-h2xp-xmpv
- CGA-7wr9-6c9v-4gp8
- CGA-83x5-2jvq-p868
- CGA-9r8m-v3c7-cwp4
- CGA-cgr3-g3gr-pgj2
- CGA-cq3j-2747-9ww7
- CGA-cr46-f624-fj26
- CGA-crf3-p468-53vm
- CGA-fxcc-pw8w-gvjr
- CGA-g94j-gwq7-h4ww
- CGA-gjqp-7434-3hpp
- CGA-hhjh-wx9g-5qf5
- CGA-j437-8xm2-qjj4
- CGA-j5p3-39c2-2w5v
- CGA-j896-rq6c-9rhw
- CGA-jgvr-8x47-467p
- CGA-jjmq-247x-94hp
- CGA-m243-qjj9-q39j
- CGA-m3g8-wcf7-37c2
- CGA-m6x7-chgw-vpx8
- CGA-p4jm-mf6x-7537
- CGA-p6j8-chgr-jqxr
- CGA-pcwv-ggph-f5hq
- CGA-pg5c-5q9c-3fv2
- CGA-ppp8-j4vr-9whq
- CGA-pqwq-mh7x-37hc
- CGA-q78m-ffxf-qcmc
- CGA-qg4h-fjx2-8gjx
- CGA-qj54-76gw-8rx9
- CGA-qvpg-93f2-w85c
- CGA-r99h-8r3c-98m4
- CGA-r9hf-q88m-h57x
- CGA-rw64-4qm4-j4wq
- CGA-v6vx-423p-m8q7
- CGA-v79h-wh3r-cp79
- CGA-vhj2-qj4x-7h3v
- CGA-vj73-x9f5-c9g8
- CGA-vmq7-vjmj-ffv5
- CGA-vvjg-h3j8-79c4
- CGA-w2vf-2pgj-3cfq
- CGA-w34g-jm85-5p7r
- CGA-w38m-j54v-9g9j
- CGA-x95r-hhph-w68f
- CGA-xmvf-2wvc-3fqq
- CGA-xpf8-fjj8-c69v