#VU82557 Code Injection in Ingress-NGINX Controller for Kubernetes - CVE-2023-5044


| Updated: 2024-01-07

Vulnerability identifier: #VU82557

Vulnerability risk: Medium

CVSSv4.0: 5.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/U:Green]

CVE-ID: CVE-2023-5044

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
Ingress-NGINX Controller for Kubernetes
Server applications / Other server solutions

Vendor: Kubernetes

Description

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Ingress-NGINX Controller for Kubernetes: 1.0.0 - 1.8.4


External links
https://github.com/kubernetes/ingress-nginx/issues/10572
https://groups.google.com/g/kubernetes-security-announce/c/ukuYYvRNel0
https://www.openwall.com/lists/oss-security/2023/10/25/3


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability