{
    "CVE_data_meta": {
        "ASSIGNER": "security@kubernetes.io",
        "DATE_PUBLIC": "2022-06-10T16:00:00.000Z",
        "ID": "CVE-2021-25748",
        "STATE": "PUBLIC",
        "TITLE": "Ingress-nginx `path` sanitization can be bypassed with newline character"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Kubernetes ingress-nginx",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_value": "1.2.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "Kubernetes"
                }
            ]
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "Gafnit Amiga"
        }
    ],
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "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."
            }
        ]
    },
    "generator": {
        "engine": "Vulnogram 0.0.9"
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "LOW",
            "baseScore": 7.6,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "LOW",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-20: Improper Input Validation"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8",
                "name": "https://groups.google.com/g/kubernetes-security-announce/c/avaRYa9c7I8"
            },
            {
                "refsource": "MISC",
                "url": "https://github.com/kubernetes/ingress-nginx/issues/8686",
                "name": "https://github.com/kubernetes/ingress-nginx/issues/8686"
            }
        ]
    },
    "source": {
        "defect": [
            "https://github.com/kubernetes/ingress-nginx/issues/8686"
        ],
        "discovery": "EXTERNAL"
    }
}