Incorrect Type Conversion or Cast Affecting chainguard.dev/apko/pkg/apk/apk package, versions <1.2.7


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (17th percentile)

Do your applications use this vulnerable package?

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 applications
  • Snyk IDSNYK-GOLANG-CHAINGUARDDEVAPKOPKGAPKAPK-16419399
  • published6 May 2026
  • disclosed4 May 2026
  • credit1seal

Introduced: 4 May 2026

CVE-2026-42576  (opens in a new tab)
CWE-704  (opens in a new tab)

How to fix?

Upgrade chainguard.dev/apko/pkg/apk/apk to version 1.2.7 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Type Conversion or Cast in the DiscoverKeys process. An attacker can cause the application to crash by providing a non-RSA key (such as an EC key) from a repository JWKS endpoint, which triggers a panic due to an unchecked type assertion.

CVSS Base Scores

version 4.0
version 3.1