CVE-2023-27593
cilium-agent container can access the host via `hostPath` mount
Reported by github_m · Published March 17, 2023
github.com/cilium/cilium is fixed in 1.13.1, 1.12.8 and 1.11.15 (Go Modules)
Cilium is a networking, observability, and security solution with an eBPF-based dataplane. Prior to versions 1.11.15, 1.12.8, and 1.13.1, an attacker with access to a Cilium agent pod can write to `/opt/cni/bin` due to a `hostPath` mount of that directory in the agent pod. By replacing the CNI binary with their own malicious binary and waiting for the creation of a new pod on the node, the attacker can gain access to the underlying node. The issue has been fixed and the fix is available on versions 1.11.15, 1.12.8, and 1.13.1. Some workarounds are available. Kubernetes RBAC should be used to deny users and service accounts `exec` access to Cilium agent pods. In cases where a user requires `exec` access to Cilium agent pods, but should not have access to the underlying node, no workaround is possible.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/cilium/cilium | Go Modules | 1.13.1, 1.12.8, 1.11.15 |
| cilium-1.14 | Chainguard | 1.14.19-r23 |
| cilium | cilium | 1.13.1, 1.12.8, 1.11.15 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| cilium | cilium | < 1.11.15, >= 1.12.0, < 1.12.8, >= 1.13.0, < 1.13.1 |
| chainguard | cilium-1.14 | 0 |
| chainguard | cilium-1.15 | * |
| wolfi | cilium-1.15 | * |
| cilium | cilium | 0, 1.13.0, 1.12.0 |
| github.com | cilium/cilium | 0, 1.12.0, 1.13.0 |
| chainguard | cilium-fips-1.14 | 0 |
| wolfi | cilium-1.14 | 0 |
| chainguard | cilium-fips-1.15 | * |
Timeline
- Mar 11, 2023 Fix PR Merged
- Mar 17, 2023 CVE Published
- Mar 17, 2023 CVE Updated
- Mar 17, 2023 PoC Published
- Mar 18, 2023 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-27593
vulnetix vdb fixes CVE-2023-27593
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-27593/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/cilium/cilium/security/advisories/GHSA-4hc4-pgfx-3mrx x_refsource_CONFIRM
- https://github.com/cilium/cilium/pull/24075 x_refsource_MISC
- https://github.com/cilium/cilium/releases/tag/v1.11.15 x_refsource_MISC
- https://github.com/cilium/cilium/releases/tag/v1.12.8 x_refsource_MISC
- https://github.com/cilium/cilium/releases/tag/v1.13.1 x_refsource_MISC
- https://kubernetes.io/docs/reference/access-authn-authz/rbac/ x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-27593 advisory
- https://github.com/advisories/GHSA-4hc4-pgfx-3mrx advisory