Security Resilience

CVE-2026-42576

chainguard-dev apko

Published
09 May 2026
Modified
24 July 2026
CVSS Score v3.1 6.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS Score 0.0045 31th percentile
Risk Priority 50 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-42576 is a medium-severity Incorrect Type Conversion or Cast (CWE-704) vulnerability in chainguard-dev apko (named in the CVE record; NVD lists no product yet). Its CVSS base score is 6.5 (Medium).

Operationally, ranked at the 31th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

apko allows users to build and publish OCI container images built from apk packages. Prior to version 1.2.7, DiscoverKeys in pkg/apk/apk/implementation.go unconditionally type-asserts JWKS keys as *rsa.PublicKey without checking the key type. If a repository JWKS endpoint returns a non-RSA…

more

key (e.g. EC), the unchecked assertion panics and crashes apko. This affects any workflow that initializes the APK database and fetches repository keys. This issue has been patched in version 1.2.7.

CWE(s)

Related Threats

CVEs Like This One

CVE-2024-2606Shared CWE-704
CVE-2025-39880Shared CWE-704
CVE-2026-69585Shared CWE-704
CVE-2025-12781Shared CWE-704
CVE-2025-1057Shared CWE-704
CVE-2025-21088Shared CWE-704
CVE-2026-133466Shared CWE-704
CVE-2023-21651Shared CWE-704
CVE-2024-39590Shared CWE-704
CVE-2024-47181Shared CWE-704

Affected Assets

chainguard-dev
apko
named in the CVE record; NVD lists no product yet

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation (static analysis, fuzzing, unit tests) directly finds incorrect type conversions or casts.

Requiring documented development standards and tools can mandate safe typing, casting rules, and compiler checks that stop the weakness from being introduced.

Security engineering principles can require type-safe design and casting practices that structurally avoid incorrect conversions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can uncover type-conversion defects before release.

prevents

Secure coding standards directly forbid or detect incorrect type casts.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-704, a class-level weakness, and none of its children carries one either.

References