# GHSA-g5p6-327m-3fxx: Talos Linux ships runc vulnerable to the escape to the host attack

> Attackers can escape containers to the host OS via malicious images or Dockerfiles, requiring Talos Linux administrators to upgrade runc.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 2 Feb 2024

## What is GHSA-g5p6-327m-3fxx?

GHSA-g5p6-327m-3fxx is a vulnerability in github.com/siderolabs/talos, published on 2 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

### Impact

Snyk has discovered a vulnerability in all versions of runc <=1.1.11, as used by the Docker engine, along with other containerization technologies such as Kubernetes. Exploitation of this issue can result in container escape to the underlying host OS, either through executing a malicious image or building an image using a malicious Dockerfile or upstream image (i.e., when using FROM). This issue has been assigned the CVE-2024-21626.

### Patches

`runc` runtime was updated to 1.1.12 in Talos v1.5.6 and v1.6.4.

### Workarounds

Inspect the workloads running on the cluster to make sure they are not trying to exploit the vulnerability.

### References

* [CVE-2024-21626](https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv)
* [Vulnerability: runc process.cwd and leaked fds container breakout](https://snyk.io/blog/cve-2024-21626-runc-process-cwd-container-breakout/)

## Which versions are affected by GHSA-g5p6-327m-3fxx?

4 open source packages ship an affected version, including github.com/siderolabs/talos.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/siderolabs/talos` | Go | All versions | 1.5.6 |
| `github.com/siderolabs/talos` | Go | All versions | 1.5.6 |
| `github.com/siderolabs/talos` | Go | From 1.6.0 | 1.6.4 |
| `github.com/siderolabs/talos` | Go | From 1.6.0 | 1.6.4 |

## How do I fix GHSA-g5p6-327m-3fxx?

Upgrade github.com/siderolabs/talos to a fixed version for your release line: 1.5.6 or 1.6.4.

## Is GHSA-g5p6-327m-3fxx being exploited?

There is no known exploitation of GHSA-g5p6-327m-3fxx in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-g5p6-327m-3fxx and fix it if it is affected.

What it is: GHSA-g5p6-327m-3fxx is a vulnerability in github.com/siderolabs/talos, published on 2 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-g5p6-327m-3fxx in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/siderolabs/talos (Go): affected all versions; fixed in 1.5.6
- github.com/siderolabs/talos (Go): affected all versions; fixed in 1.5.6
- github.com/siderolabs/talos (Go): affected from 1.6.0; fixed in 1.6.4
- github.com/siderolabs/talos (Go): affected from 1.6.0; fixed in 1.6.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-g5p6-327m-3fxx/ (Markdown: https://insights.sbomify.com/GHSA-g5p6-327m-3fxx/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-g5p6-327m-3fxx

---
From sbomify Insights: https://insights.sbomify.com/GHSA-g5p6-327m-3fxx/
Summaries are generated and may contain mistakes; the official description above is the record.
