{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-27593",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-03-04T01:03:53.635Z",
        "datePublished": "2023-03-17T19:51:16.689Z",
        "dateUpdated": "2024-08-02T12:16:35.919Z"
    },
    "containers": {
        "cna": {
            "title": "cilium-agent container can access the host via `hostPath` mount",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-276",
                            "lang": "en",
                            "description": "CWE-276: Incorrect Default Permissions",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "HIGH",
                        "baseScore": 4.4,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "HIGH",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/cilium/cilium/security/advisories/GHSA-4hc4-pgfx-3mrx",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/cilium/cilium/security/advisories/GHSA-4hc4-pgfx-3mrx"
                },
                {
                    "name": "https://github.com/cilium/cilium/pull/24075",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/cilium/cilium/pull/24075"
                },
                {
                    "name": "https://github.com/cilium/cilium/releases/tag/v1.11.15",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/cilium/cilium/releases/tag/v1.11.15"
                },
                {
                    "name": "https://github.com/cilium/cilium/releases/tag/v1.12.8",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/cilium/cilium/releases/tag/v1.12.8"
                },
                {
                    "name": "https://github.com/cilium/cilium/releases/tag/v1.13.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/cilium/cilium/releases/tag/v1.13.1"
                },
                {
                    "name": "https://kubernetes.io/docs/reference/access-authn-authz/rbac/",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://kubernetes.io/docs/reference/access-authn-authz/rbac/"
                }
            ],
            "affected": [
                {
                    "vendor": "cilium",
                    "product": "cilium",
                    "versions": [
                        {
                            "version": "< 1.11.15",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.12.0, < 1.12.8",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.13.0, < 1.13.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-03-17T19:51:16.689Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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.\n\nThe 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."
                }
            ],
            "source": {
                "advisory": "GHSA-4hc4-pgfx-3mrx",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T12:16:35.919Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/cilium/cilium/security/advisories/GHSA-4hc4-pgfx-3mrx",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/cilium/cilium/security/advisories/GHSA-4hc4-pgfx-3mrx"
                    },
                    {
                        "name": "https://github.com/cilium/cilium/pull/24075",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/cilium/cilium/pull/24075"
                    },
                    {
                        "name": "https://github.com/cilium/cilium/releases/tag/v1.11.15",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/cilium/cilium/releases/tag/v1.11.15"
                    },
                    {
                        "name": "https://github.com/cilium/cilium/releases/tag/v1.12.8",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/cilium/cilium/releases/tag/v1.12.8"
                    },
                    {
                        "name": "https://github.com/cilium/cilium/releases/tag/v1.13.1",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/cilium/cilium/releases/tag/v1.13.1"
                    },
                    {
                        "name": "https://kubernetes.io/docs/reference/access-authn-authz/rbac/",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://kubernetes.io/docs/reference/access-authn-authz/rbac/"
                    }
                ]
            }
        ]
    }
}