gitea-runner: workflow container.options passes host namespaces and capability flags to job container when privileged mode is disabled (CVE-2026-73802)
A vulnerability in gitea.com/gitea/runner (CVE-2026-73802) allows workflow authors to pass Docker container options that preserve host namespaces and capability flags even when privileged mode is disabled. This enables execution of commands as root on the runner host by entering host PID/IPC namespaces. The flaw affects versions prior to 1.0.9-0.20260731160927-34bfa1915022. The issue is critical for shared runners where untrusted users can submit workflows and high severity for single-tenant runners relying on privileged mode disabling as a security control. A fix is available that involves rejecting or stripping unsafe container options when privileged mode is disabled.
AI Analysis
Technical Summary
The act_runner component of gitea.com/gitea/runner appends workflow-controlled container.options directly to the Docker HostConfig for job containers. When privileged mode is disabled, only the Privileged flag is forced false, but host namespace flags (e.g., --pid=host, --ipc=host), capability expansions (e.g., --cap-add=ALL), and security profile overrides (e.g., seccomp=unconfined) from the workflow YAML are preserved. This allows a workflow author to execute commands as root on the runner host by entering host namespaces. The vulnerability affects versions prior to 1.0.9-0.20260731160927-34bfa1915022. The recommended fix is to treat container.options as untrusted input and reject or strip dangerous options when privileged mode is disabled.
Potential Impact
An attacker able to submit workflows to a repository using a shared Docker-backed act_runner can enter host PID, IPC, and mount namespaces and execute arbitrary commands as root on the runner host. This enables access to host secrets, deployment credentials, environment variables, and internal build infrastructure. The attacker can also pivot to other jobs running on the same runner. The vulnerability is critical for shared runners with untrusted users and high severity for single-tenant runners relying on privileged mode disabling as a security control.
Mitigation Recommendations
A patch is available for this vulnerability. The fix involves rejecting or stripping unsafe container.options such as host namespaces (--pid=host, --ipc=host, --uts=host, --network=host), capability expansions (--cap-add ALL, --cap-add SYS_ADMIN), security overrides (--security-opt seccomp=unconfined, --security-opt apparmor=unconfined), device access options, volume inheritance, and runtime controls when privileged mode is disabled. Users should upgrade to version 1.0.9-0.20260731160927-34bfa1915022 or later where this issue is addressed.
gitea-runner: workflow container.options passes host namespaces and capability flags to job container when privileged mode is disabled (CVE-2026-73802)
Description
A vulnerability in gitea.com/gitea/runner (CVE-2026-73802) allows workflow authors to pass Docker container options that preserve host namespaces and capability flags even when privileged mode is disabled. This enables execution of commands as root on the runner host by entering host PID/IPC namespaces. The flaw affects versions prior to 1.0.9-0.20260731160927-34bfa1915022. The issue is critical for shared runners where untrusted users can submit workflows and high severity for single-tenant runners relying on privileged mode disabling as a security control. A fix is available that involves rejecting or stripping unsafe container options when privileged mode is disabled.
CVSS v3.1
Score 9.9critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The act_runner component of gitea.com/gitea/runner appends workflow-controlled container.options directly to the Docker HostConfig for job containers. When privileged mode is disabled, only the Privileged flag is forced false, but host namespace flags (e.g., --pid=host, --ipc=host), capability expansions (e.g., --cap-add=ALL), and security profile overrides (e.g., seccomp=unconfined) from the workflow YAML are preserved. This allows a workflow author to execute commands as root on the runner host by entering host namespaces. The vulnerability affects versions prior to 1.0.9-0.20260731160927-34bfa1915022. The recommended fix is to treat container.options as untrusted input and reject or strip dangerous options when privileged mode is disabled.
Potential Impact
An attacker able to submit workflows to a repository using a shared Docker-backed act_runner can enter host PID, IPC, and mount namespaces and execute arbitrary commands as root on the runner host. This enables access to host secrets, deployment credentials, environment variables, and internal build infrastructure. The attacker can also pivot to other jobs running on the same runner. The vulnerability is critical for shared runners with untrusted users and high severity for single-tenant runners relying on privileged mode disabling as a security control.
Mitigation Recommendations
A patch is available for this vulnerability. The fix involves rejecting or stripping unsafe container.options such as host namespaces (--pid=host, --ipc=host, --uts=host, --network=host), capability expansions (--cap-add ALL, --cap-add SYS_ADMIN), security overrides (--security-opt seccomp=unconfined, --security-opt apparmor=unconfined), device access options, volume inheritance, and runtime controls when privileged mode is disabled. Users should upgrade to version 1.0.9-0.20260731160927-34bfa1915022 or later where this issue is addressed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-x4q3-gcj3-m6cf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-73802"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6ac139a8a43b0b3b89d69abe
Added to database: 10/03/2026, 17:21:44 UTC
Last enriched: 10/03/2026, 17:38:06 UTC
Last updated: 10/03/2026, 22:38:21 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.