Skip to content
OpenAdvisories

Package · Go

chainguard.dev/apko

9 known vulnerabilities.

9 results · Feed

  • High 8.3

    melange: Incomplete package integrity verification allows data section substitution

    melange allows users to build apk packages using declarative pipelines. Apko prior to version 1.2.9, corresponding to melange prior to version 0.50.4, verified the control section hash (`.PKGINFO` etc.) against the signed `APKINDEX`, but never verified the da…

  • Medium 6.5

    apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery

    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 …

  • High 7.5

    apko doesn't verify downloaded apk packages against APKINDEX checksum (package substitution possible)

    apko allows users to build and publish OCI container images built from apk packages. Prior to version 1.2.7, apko verifies the signature on APKINDEX.tar.gz but never compares individually downloaded .apk packages against the checksum recorded in the signed in…

  • High 7.5

    apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root

    apko allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before version 1.2.5, a crafted .apk could install a TypeSymlink tar entry whose target pointed outside the build root, and a subsequent directory-crea…

  • High 7.5

    apko affected by potential unbounded resource consumption in expandapk.ExpandApk on attacker-controlled .apk streams

    apko allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before 1.1.1, an attacker who controls or compromises an APK repository used by apko could cause resource exhaustion on the build host. The ExpandApk f…

  • High 7.5

    apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base

    apko allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before 1.1.1, a path traversal vulnerability was discovered in apko's dirFS filesystem abstraction. An attacker who can supply a malicious APK package …

  • Medium 5.5

    apko is vulnerable to unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams

    apko allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before 1.1.0, expandapk.Split drains the first gzip stream of an APK archive via io.Copy(io.Discard, gzi) without explicit bounds. With an attacker-con…

  • High 7.0

    apko has incorrect permission (0666) in /etc/ld.so.cache and other files

    apko allows users to build and publish OCI container images built from apk packages. Starting in version 0.27.0 and prior to version 0.29.5, critical files were inadvertently set to 0666, which could likely be abused for root escalation. Version 0.29.5 contai…

  • High 7.5

    apko Exposure of HTTP basic auth credentials in log output

    apko is an apk-based OCI image builder. apko exposures HTTP basic auth credentials from repository and keyring URLs in log output. This vulnerability is fixed in v0.14.5.