Kubernetes ingress-nginx
ingress-nginx comment-based nginx configuration injection
A security issue was discovered in ingress-nginx where a combination of Ingress annotations can be used to inject configuration into nginx. This can lead to arbitrary code execution in the context of the ingress-nginx controller, and disclosure of Secrets accessible to the controller. (Note that in the default installation, the controller can access all Secrets cluster-wide.)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.13.9
- < 1.14.5
- < 1.15.1
Fixed in 1.13.9, 1.14.5, 1.15.1
Mitigation
Upgrade ingress-nginx to 1.13.9 or 1.14.5 or 1.15.1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 16 h after publication; not in CISA KEV. First PoC: stuartMoorhouse/CVE-2026-4342 (created 20 Mar 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| stuartMoorhouse/CVE-2026-4342 | 20 Mar 2026 +16 h | 2 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /_rce_output
- Seen in
- 1 repo: stuartMoorhouse/CVE-2026-4342
- Evidence
- stuartMoorhouse/CVE-2026-4342/scripts/exploit.sh:62
GET /_read_secrets
- Query
namespace=defaultname=test-secret-defaultnamespace=kube-systemname=test-secret-systemnamespace=target-nsname=test-secret-target- Seen in
- 1 repo: stuartMoorhouse/CVE-2026-4342
- Evidence
- stuartMoorhouse/CVE-2026-4342/scripts/exploit.sh:101 stuartMoorhouse/CVE-2026-4342/scripts/exploit.sh:115 stuartMoorhouse/CVE-2026-4342/scripts/exploit.sh:118
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/_rce_output(?:[?#].*)?$
(?i)^/_read_secrets\?(?:.*&)?namespace=default.*name=test-secret-default.*namespace=kube-system.*name=test-secret-system.*namespace=target-ns.*name=test-secret-target
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-4342 Kubernetes ingress-nginx exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/_rce_output"; reference:url,poc.griffinguard.io/cve/CVE-2026-4342; classtype:web-application-attack; sid:9195420; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-4342 Kubernetes ingress-nginx exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/_read_secrets"; http.uri; content:"namespace=default"; http.uri; content:"name=test-secret-default"; http.uri; content:"namespace=kube-system"; http.uri; content:"name=test-secret-system"; http.uri; content:"namespace=target-ns"; http.uri; content:"name=test-secret-target"; reference:url,poc.griffinguard.io/cve/CVE-2026-4342; classtype:web-application-attack; sid:9849608; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Kubernetes ingress-nginx exploit attempt (CVE-2026-4342)
id: gg-pocmon-cve-2026-4342-9195420
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4342. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4342
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/_rce_output'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4342
title: Kubernetes ingress-nginx exploit attempt (CVE-2026-4342)
id: gg-pocmon-cve-2026-4342-9849608
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4342. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4342
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/_read_secrets'
cs-uri-query|contains|all:
- 'namespace=default'
- 'name=test-secret-default'
- 'namespace=kube-system'
- 'name=test-secret-system'
- 'namespace=target-ns'
- 'name=test-secret-target'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4342