{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-25748",
        "assignerOrgId": "a6081bf6-c852-4425-ad4f-a67919267565",
        "assignerShortName": "kubernetes",
        "dateUpdated": "2024-08-03T20:11:28.404Z",
        "dateReserved": "2021-01-21T00:00:00",
        "datePublished": "2023-05-24T00:00:00"
    },
    "containers": {
        "cna": {
            "title": "Ingress-nginx `path` sanitization can be bypassed with newline character",
            "datePublic": "2022-06-10T00:00:00",
            "providerMetadata": {
                "orgId": "a6081bf6-c852-4425-ad4f-a67919267565",
                "shortName": "kubernetes",
                "dateUpdated": "2023-05-24T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use a newline character to bypass the sanitization of the `spec.rules[].http.paths[].path` field of an Ingress object (in the `networking.k8s.io` or `extensions` API group) to obtain the credentials of the ingress-nginx controller. In the default configuration, that credential has access to all secrets in the cluster."
                }
            ],
            "affected": [
                {
                    "vendor": "Kubernetes",
                    "product": "Kubernetes ingress-nginx",
                    "versions": [
                        {
                            "version": "unspecified",
                            "lessThan": "1.2.1",
                            "status": "affected",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"
                },
                {
                    "url": "https://github.com/kubernetes/ingress-nginx/issues/8686"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Gafnit Amiga"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "LOW",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "LOW",
                        "availabilityImpact": "LOW",
                        "baseScore": 7.6,
                        "baseSeverity": "HIGH"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-20: Improper Input Validation",
                            "cweId": "CWE-20"
                        }
                    ]
                }
            ],
            "x_generator": {
                "engine": "Vulnogram 0.0.9"
            },
            "source": {
                "defect": [
                    "https://github.com/kubernetes/ingress-nginx/issues/8686"
                ],
                "discovery": "EXTERNAL"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T20:11:28.404Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/kubernetes/ingress-nginx/issues/8686",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}