The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-5044

CVE-2023-5044: Kubernetes Ingress-nginx RCE Vulnerability

CVE-2023-5044 is a remote code execution vulnerability in Kubernetes Ingress-nginx caused by code injection via the permanent-redirect annotation. This article covers the technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-5044 Overview

CVE-2023-5044 is a code injection vulnerability in Kubernetes Ingress-nginx that allows attackers to inject arbitrary code through the nginx.ingress.kubernetes.io/permanent-redirect annotation. This vulnerability stems from improper input validation (CWE-20) and code injection weaknesses (CWE-94), enabling malicious actors with the ability to create or modify Ingress objects to execute arbitrary commands within the context of the Ingress-nginx controller.

Critical Impact

Attackers with access to create or modify Ingress resources can inject malicious code through the permanent-redirect annotation, potentially compromising the entire Kubernetes cluster's network traffic routing and gaining unauthorized access to sensitive data and services.

Affected Products

  • Kubernetes Ingress-nginx (all versions prior to patch)
  • Kubernetes clusters utilizing Ingress-nginx controller for traffic management
  • Cloud-native environments with exposed Ingress resources

Discovery Timeline

  • 2023-10-25 - CVE-2023-5044 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-5044

Vulnerability Analysis

The vulnerability exists in the Kubernetes Ingress-nginx controller's handling of the nginx.ingress.kubernetes.io/permanent-redirect annotation. When processing Ingress resources, the controller fails to properly sanitize user-supplied input in this annotation before incorporating it into the nginx configuration. This improper input validation allows an attacker who can create or modify Ingress objects to inject arbitrary nginx configuration directives or Lua code that executes within the controller's context.

The attack requires low privileges (PR:L) as the attacker needs permissions to create or modify Kubernetes Ingress resources, but once achieved, the impact spans confidentiality, integrity, and availability of the affected system. The vulnerability is exploitable over the network without user interaction, making it particularly dangerous in multi-tenant Kubernetes environments.

Root Cause

The root cause of CVE-2023-5044 lies in insufficient input validation and sanitization of the permanent-redirect annotation value. The Ingress-nginx controller directly processes annotation values and incorporates them into the generated nginx configuration without adequately escaping or validating the content. This allows specially crafted annotation values containing nginx configuration syntax or Lua code to be interpreted as legitimate configuration rather than data, leading to code injection.

Attack Vector

The attack vector leverages network access to the Kubernetes API server. An attacker with permissions to create or modify Ingress resources can craft a malicious Ingress manifest that includes a specially crafted nginx.ingress.kubernetes.io/permanent-redirect annotation. When the Ingress-nginx controller processes this resource, the injected code is incorporated into the nginx configuration and executed.

The exploitation flow typically involves:

  1. Attacker gains access to create or modify Ingress resources (via compromised credentials, misconfigured RBAC, or insider access)
  2. Attacker creates an Ingress resource with a malicious permanent-redirect annotation containing injected nginx directives or Lua code
  3. The Ingress-nginx controller processes the annotation without proper sanitization
  4. The malicious configuration is loaded into nginx, executing the attacker's code

This vulnerability does not have verified public exploits available. For technical details on the vulnerability mechanism, refer to the GitHub Issue #10572 and the Kubernetes Security Announcement.

Detection Methods for CVE-2023-5044

Indicators of Compromise

  • Unusual or malformed nginx.ingress.kubernetes.io/permanent-redirect annotations in Ingress resources
  • Unexpected nginx configuration changes in the Ingress-nginx controller pods
  • Anomalous network traffic patterns from the Ingress-nginx controller
  • Kubernetes audit logs showing modifications to Ingress resources with suspicious annotation content

Detection Strategies

  • Monitor Kubernetes audit logs for creation or modification of Ingress resources, specifically tracking changes to the permanent-redirect annotation
  • Implement admission controller policies to validate and restrict annotation values on Ingress resources
  • Deploy runtime security monitoring to detect unusual process execution or network connections from Ingress-nginx controller pods
  • Use SentinelOne Singularity Platform to detect code injection attempts and anomalous behavior in containerized workloads

Monitoring Recommendations

  • Enable verbose logging on the Ingress-nginx controller to capture configuration generation events
  • Configure alerts for Kubernetes API events related to Ingress resource mutations
  • Implement continuous scanning of Ingress resources for potentially malicious annotation patterns
  • Utilize SentinelOne's Kubernetes workload protection to monitor for runtime exploitation attempts

How to Mitigate CVE-2023-5044

Immediate Actions Required

  • Review all existing Ingress resources for suspicious permanent-redirect annotations
  • Implement Kubernetes RBAC policies to restrict who can create or modify Ingress resources
  • Deploy admission webhooks to validate annotation content before Ingress resources are created
  • Upgrade Ingress-nginx controller to the latest patched version as soon as available

Patch Information

Kubernetes has acknowledged this vulnerability and users should monitor the GitHub Issue #10572 and the Kubernetes Security Announcement for official patch releases and version upgrade guidance. Additional context is available in the NetApp Security Advisory NTAP-20240307-0012.

Workarounds

  • Implement strict RBAC policies to limit Ingress resource creation to trusted operators only
  • Use OPA Gatekeeper or Kyverno policies to validate and sanitize annotation values on Ingress resources
  • Consider network segmentation to limit the blast radius if the Ingress-nginx controller is compromised
  • Monitor the Openwall OSS-Security Discussion for additional mitigation guidance from the security community
bash
# Example Kubernetes RBAC policy to restrict Ingress modifications
kubectl create clusterrole ingress-viewer --verb=get,list,watch --resource=ingresses
kubectl create clusterrolebinding restricted-ingress-access --clusterrole=ingress-viewer --group=developers
# Only grant ingress modification rights to trusted administrators
kubectl create clusterrole ingress-admin --verb=get,list,watch,create,update,patch,delete --resource=ingresses
kubectl create clusterrolebinding admin-ingress-access --clusterrole=ingress-admin --group=cluster-admins

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechKubernetes

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability10.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20

  • CWE-94
  • Technical References
  • Openwall OSS-Security Discussion

  • NetApp Security Advisory NTAP-20240307-0012
  • Vendor Resources
  • GitHub Issue #10572

  • Kubernetes Security Announcement
  • Related CVEs
  • CVE-2026-34940: KubeAI Command Injection RCE Vulnerability

  • CVE-2025-1974: Kubernetes ingress-nginx Controller RCE Flaw

  • CVE-2023-5043: Kubernetes Ingress-nginx RCE Vulnerability

  • CVE-2024-10220: Kubernetes kubelet RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English