SB2023103025 - Multiple vulnerabilities in Ingress-NGINX Controller for Kubernetes
Published: October 30, 2023 Updated: January 15, 2024
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 3 secuirty vulnerabilities.
1) OS Command Injection (CVE-ID: CVE-2023-5043)
The vulnerability allows a remote user to execute arbitrary commands on the target system.
The vulnerability exists due to improper input validation in the nginx.ingress.kubernetes.io/configuration-snippet annotation. A remote user can pass specially crafted data to the application, execute arbitrary OS commands and obtain the credentials of the ingress-nginx controller.
2) Code Injection (CVE-ID: CVE-2023-5044)
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation in the nginx.ingress.kubernetes.io/permanent-redirect annotation on an Ingress object. A remote user can send a specially crafted request, inject arbitrary commands, and obtain the credentials of the ingress-nginx controller.
3) Input validation error (CVE-ID: CVE-2022-4886)
The vulnerability allows a remote user to compromise the affected system.
The vulnerability exists due to insufficient validation of user-supplied input. A remote user who can create or update ingress objects can use directives 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.
Remediation
Install update from vendor's website.
References
- https://github.com/kubernetes/ingress-nginx/issues/10571
- https://groups.google.com/g/kubernetes-security-announce/c/pVsXsOpxYZo
- http://www.openwall.com/lists/oss-security/2023/10/25/4
- https://github.com/kubernetes/ingress-nginx/issues/10572
- https://groups.google.com/g/kubernetes-security-announce/c/ukuYYvRNel0
- http://www.openwall.com/lists/oss-security/2023/10/25/3
- https://github.com/kubernetes/ingress-nginx/issues/10570
- https://groups.google.com/g/kubernetes-security-announce/c/ge7u3qCwZLI
- http://www.openwall.com/lists/oss-security/2023/10/25/5