Ingress-Nginx Vulnerability (CVE-2025-1974)

Problem

Critical Vulnerability CVE-2025-1974 impacting the Pod network has a good chance of taking over the Kubernetes cluster, with no credentials or administrative access required.

Environment

  • Self Managed Cloud Platform9 - 5.10. and 5.11.

Solution

The fix for the issue is available in:

  1. The SMCP-5.12 version, tracked in the Jira: AIR-1453.

Workaround

Section-1

Below are the workaround steps to fix the vulnerability in Ingress Nginx deployment part of the SMCP versions 5.10. and 5.11:

  1. From the master node verify the existing image version:

$ sudo /opt/pf9/pf9-kube/bin/nerdctl -n k8s.io images | grep ingress

$ kubectl describe pod -n airctl-1-xxxxxxxx-xx-kplane   ingress-nginx-controller-xxxxxxxxxxx-xxxxx | grep -i image

$ kubectl describe pod -n airctl-1-xxxxxxxx-xx   ingress-nginx-controller-xxxxxxxxxxx-xxxxx | grep -i image
  1. Download ingress-nginx_1.12.1.tgz image having the patch:

  1. Copy and load image into the management node

  1. Verify the ingress-nginx_1.12.1.tgz image with 1.12.1 tag.

  1. Update the ingress-nginx config-map to include annotations-risk-level: Criticalin the data section as shown below:

  1. Update the deployments which will be listed by the below command with the correct image v1.12.1

  1. Verify if pods are running as expected. Also, verify the workload cluster and UI.

Section-2

Below are the workaround steps to fix the vulnerability issue Monitoring deployment introduced in the Management Plane of SMCP-5.11.

  1. Download and save the kube-webhook-certgen image for management plane monitoring:

  1. Copy and load image into the Management plane cluster master node:

  1. Helm upgrade Management plane monitoring stack [if already installed] with new kube-prometheus-stack-62.7.1-13.tgz tarfile, if monitoring feature is already enabled: 3.1 Download the new kube-prometheus-stack tar file:

Or

Reference: https://platform9.com/docs/PEC/management-cluster-monitoringarrow-up-right

Additional Information

Reference - https://kubernetes.io/blog/2025/03/24/ingress-nginx-cve-2025-1974/arrow-up-right

Last updated