act: actions/cache server allows malicious cache injection in github.com/nektos/act
act: actions/cache server allows malicious cache injection in github.com/nektos/act
02 / AFFECTED SOFTWARE
Affected packages
95 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
act: actions/cache server allows malicious cache injection in github.com/nektos/act
act's built-in actions/cache server listens to connections on all interfaces and allows anyone who can connect to it — including someone anywhere on the internet — to create caches with arbitrary keys and retrieve all existing caches. If one can predict which cache keys will be used by local actions, one can create malicious caches containing whatever files one pleases, most likely allowing arbitrary remote code execution within the Docker container. ## Discovery Discovered while discussing [forgejo/runner#294](https://code.forgejo.org/forgejo/runner/issues/294). ## Proposed Mitigation It was discussed to append a secret to `ACTIONS_CACHE_URL` to retain compatibility with GitHub's cache action and still allow authorization. Forgejo is considering also encoding which repo is currently being run in CI into the secret in the URL to prevent unrelated repos using the same (probably global) runner from seeing each other's caches.
act is a project which allows for local running of github actions. Prior to version 0.2.86, act's built in actions/cache server listens to connections on all interfaces and allows anyone who can connect to it including someone anywhere on the internet to create caches with arbitrary keys and retrieve all existing caches. If they can predict which cache keys will be used by local actions, they can create malicious caches containing whatever files they please most likely allowing arbitrary remote code execution within the docker container. This issue has been patched in version 0.2.86.
05 / REFERENCES
Further evidence
- https://github.com/nektos/act/commit/c28c27e141e8b54f9853de82f421ee09846751f7
- https://github.com/nektos/act/releases/tag/v0.2.86
- https://github.com/nektos/act/security/advisories/GHSA-x34h-54cw-9825
- https://code.forgejo.org/forgejo/runner/issues/294
- https://github.com/nektos/act
- https://nvd.nist.gov/vuln/detail/CVE-2026-34042
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34042.json