Skip to content

remote code execution possible -- actions/cache server allows malicious cache injection

High
cplee published GHSA-x34h-54cw-9825 Mar 25, 2026

Package

gomod gitea.com/gitea/act_runner (Go)

Affected versions

all

Patched versions

None
gomod github.com/nektos/act (Go)
<= 0.2.85
0.2.86

Description

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.

Discovered while discussing https://code.forgejo.org/forgejo/runner/issues/294 (sorry, that's public)
We discussed appending a secret to ACTIONS_CACHE_URL to retain compatibility with github's cache action and still allow authorization. forgejo is thinking about 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.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

CVE ID

CVE-2026-34042

Weaknesses

Missing Authorization

The product does not perform an authorization check when an actor attempts to access a resource or perform an action. Learn more on MITRE.

Credits