title: Ingress-nginx custom snippets allows retrieval of ingress-nginx serviceaccount token and secrets across all namespaces
description: A security issue was discovered in ingress-nginx where a user that can create or update ingress objects can use the custom snippets feature to obtain all secrets in the cluster.
problem types: CWE-20: Improper Input Validation
affected:
{
product: Kubernetes ingress-nginx
vendor: Kubernetes
versions:
lessThanOrEqual: 0.49.0, status: affected, version: unspecified, versionType: custom
lessThan: unspecified, status: unknown, version: next of 0.49.0, versionType: custom
lessThanOrEqual: 1.0.0, status: affected, version: unspecified, versionType: custom
lessThan: unspecified, status: unknown, version: next of 1.0.0, versionType: custom
}
metrics:
cvssV3_1: [
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
]
workarounds: This can be mitigated by disallowing snippet annotations on a supported version. Refer to https://github.com/kubernetes/ingress-nginx/issues/7837 for instructions.