Skip to main content

Traefik CVE-2026-54762

| EUVDEUVD-2026-38578 MEDIUM
Not Failing Securely ('Failing Open') (CWE-636)
2026-06-19 https://github.com/traefik/traefik GHSA-4mr2-fg2p-w63c
Medium
Disputed · 5.9 Vendor: https://github.com/traefik/traefik
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Traefik-managed Kubernetes route with auth annotations
  2. Delivery
    Confirm auth-secret is missing or malformed in cluster
  3. Exploit
    Traefik has already emitted backend router without BasicAuth/DigestAuth middleware
  4. Execution
    Send unauthenticated HTTP request to exposed route
  5. Impact
    Access protected backend resources without credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Fail-secure design
Exploitation Conditions

Exploitation requires three simultaneous conditions: (1) Traefik is running the KubernetesIngressNGINX provider at version >= 3.7.0-ea.1 and <= 3.7.4; (2) an Ingress object carries nginx.ingress.kubernetes.io/auth-type set to basic or digest with a corresponding auth-secret annotation; and (3) the referenced Kubernetes Secret is in a failed state - specifically one of: the Secret does not exist, the Secret exists but is missing the required auth key (for auth-file type), the Secret exists but the auth-map is empty, the auth-secret-type annotation is invalid, or the cross-namespace Secret reference is denied by RBAC or namespace policy. The fail-open window persists for the entire duration that Traefik holds a translated router configuration built from the failed-secret state. Exploitation is NOT limited to specific HTTP methods or paths - the entire backend route is exposed without authentication. Factors that limit exploitation: the KubernetesIngressNGINX provider must be the active provider (not standard Ingress or Docker), the backend must be network-reachable from the attacker, and the specific route must have been translated while the secret failure condition existed. No attacker action is required to create the secret failure - it arises from operational gaps such as deployment ordering, rollbacks, or RBAC changes.

Impact

Real-world risk is elevated by the operational scenarios that commonly trigger the fail-open state: GitOps or Helm deployments that apply Ingress objects before their dependent Secrets, rollback or pruning jobs that delete Secrets while Ingresses remain, transient RBAC policy changes, and ingress-nginx migration workflows where operators rely on annotation parity. In multi-tenant clusters, the actor who can affect Secret existence (a namespace-scoped deployment pipeline) may be entirely separate from the actor who owns the Traefik configuration, making accidental or adversarial triggering realistic without requiring control over Traefik itself. No CVSS vector was supplied by NVD at time of analysis; the vendor classifies the issue as medium severity, which appears to reflect the operational precondition (the secret must already be in a failed state) rather than a strict CVSS 3.1 scoring. Under strict CVSS 3.1, AV:N/AC:L/PR:N/UI:N against an exposed backend would score in the Critical range, creating a material discrepancy with the vendor's medium label. EPSS data was not provided. No public exploit kit or KEV listing is confirmed, but the reporter published a detailed regression harness covering eight failure modes, which substantially lowers the bar for third-party reproduction. The vulnerability is not automatable at internet scale because it requires a specific pre-existing misconfiguration, but within a targeted cluster the bypass requires no attacker skill once the secret failure condition exists.

Exploit ScenarioDerived

An attacker targeting a Kubernetes cluster running Traefik v3.7.x discovers an Ingress route whose nginx.ingress.kubernetes.io/auth-secret references a Secret that was deleted during a Helm rollback earlier in the day. Because Traefik has already translated the Ingress into a live backend router without BasicAuth middleware, the attacker sends plain unauthenticated HTTP GET requests to the route and receives full backend responses - no credentials, no brute-force, no exploit payload required. A publicly available proof-of-concept regression harness confirms this behavior across missing, malformed, and policy-denied Secret scenarios.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

The Kubernetes Ingress NGINX provider in Traefik v3.7.0-ea.1 through v3.7.4 fails open when BasicAuth or DigestAuth cannot be installed because the referenced auth-secret is unresolvable, silently publishing the intended-to-be-protected backend route without any authentication middleware to unauthenticated network clients. Operators who explicitly configure auth via nginx.ingress.kubernetes.io/auth-type and auth-secret annotations are left with a live, fully accessible backend route while Traefik logs a single controller-level error and routes traffic normally - a direct violation of the declared security intent. A detailed proof-of-concept covering eight distinct secret-failure scenarios was developed by the reporter and confirmed on both current master and v3.7.1; no public release of exploit code is confirmed and no CISA KEV listing exists at time of analysis.

RemediationAI

Upgrade Traefik to v3.7.5, which is the vendor-released patched version confirmed to address CVE-2026-54762 via pull request #13323. The fix sets loc.Error = true on any resolveBasicAuth() failure, causing the translator to route the affected location to unavailable-service rather than the real backend, consistent with how auth-tls-secret and custom-headers failures are already handled. Release notes and the patched binary are at https://github.com/traefik/traefik/releases/tag/v3.7.5. As an immediate compensating control prior to patching, operators should audit all Ingress objects carrying nginx.ingress.kubernetes.io/auth-type annotations and verify that their referenced Secrets exist, are readable by Traefik's service account, contain the expected keys (auth for auth-file, or valid key-value pairs for auth-map), and are in the correct namespace. Network-level controls such as placing auth-annotated backends behind a separate network segment or IP allowlist can reduce exposure if the patch cannot be applied immediately, but note that these controls protect against external access only and do not address internal lateral movement within the cluster. Controller log monitoring for the string 'Cannot resolve auth secret, skipping auth middleware' can serve as a detection signal but does not prevent exposure.

Affected VersionsENISA

traefik 3.7.0-ea.1, < 3.7.5

Affected Packages

go github.com/traefik/traefik no fix
go github.com/traefik/traefik/v2 no fix
go github.com/traefik/traefik/v3 fix: 3.7.5
euvd traefik_3_7_0_ea_1 fix: 3.7.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-636 (Not Failing Securely / Failing Open) and resides in pkg/provider/kubernetes/ingress-nginx/build.go within the Traefik Go module (pkg:go/github.com/traefik/traefik/v3, vulnerable range >= 3.7.0-ea.1, <= 3.7.4). During provider translation, resolveBasicAuth() is called for each Ingress location declaring nginx.ingress.kubernetes.io/auth-type: basic or digest. On any resolution failure - missing Kubernetes Secret, malformed htpasswd content, empty auth-map, invalid auth-secret-type, or cross-namespace RBAC denial - the code logs the error and continues without setting loc.Error = true. The downstream translator.go only redirects traffic to the unavailable-service stub when loc.Error is true; since it remains false, the real backend service receives the router and applyMiddlewares() has no BasicAuth or DigestAuth entry to attach. This contrasts directly with the provider's own fail-closed handling for auth-tls-secret (which skips the affected Ingress entirely) and custom-headers ConfigMap failures (which set loc.Error = true). The KubernetesIngressNGINX provider was promoted from experimental in v3.6.2, making auth-type, auth-secret, auth-secret-type, and auth-realm officially supported and load-bearing annotations for operators.

Know when Kubernetes gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–High)
Vendor (https://github.com/traefik/traefik) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
vuln.today AI 9.1 CRITICAL

Network vector, no privileges required once fail-open state exists; C:H/I:H reflects full unauthenticated backend access; A:N as bypass causes no availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 4.4 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: https://github.com/traefik/traefik

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 23, 2026 - 20:22 NVD
5.9 (MEDIUM)

DescriptionCVE.org

Summary

There is a medium severity vulnerability in Traefik's Kubernetes Ingress NGINX provider that causes affected routes to fail open. When an Ingress explicitly enables BasicAuth or DigestAuth through the supported nginx.ingress.kubernetes.io/auth-type and auth-secret annotations, but the referenced auth Secret cannot be resolved or parsed, Traefik logs the resolution error, skips installing the authentication middleware, and still emits a router to the backend service. A route that operators intended to protect is therefore published to the data plane without its authentication control, allowing unauthenticated access to the backend. The trigger is an invalid or unresolved auth dependency - a missing, malformed, unreadable, or policy-denied Secret - rather than an intentionally unprotected route.

Patches

  • https://github.com/traefik/traefik/releases/tag/v3.7.5

For more information

If you have any questions or comments about this advisory, please open an issue.

<details> <summary>Original Description</summary>

Summary

Traefik's Kubernetes Ingress NGINX provider can fail open for routes that explicitly configure BasicAuth or DigestAuth through supported ingress-nginx annotations.

When an Ingress contains nginx.ingress.kubernetes.io/auth-type: basic or digest, but the referenced nginx.ingress.kubernetes.io/auth-secret cannot be resolved or parsed, Traefik logs the auth resolution error, skips installing the BasicAuth/DigestAuth middleware, and still emits a router to the backend service.

This can expose a route that operators intended to protect. The issue is not that an invalid Secret exists; the issue is that an explicitly auth-protected Ingress location is translated into a live backend route where the authentication control is removed from the generated data-plane configuration, with only a controller log entry, instead of failing closed.

Tested affected versions:

  • Current master: 29406d42898547f1ffabd904f66af06c212740cf
  • Latest tag tested by me: v3.7.1 / fa49e2bcad7ffd8a80accdf1fae1ae480913d93d

The KubernetesIngressNGINX provider is documented as no longer experimental as of v3.6.2, and the auth-type, auth-secret, auth-secret-type, and auth-realm annotations are documented supported annotations.

Details

The root cause is in pkg/provider/kubernetes/ingress-nginx/build.go. During provider translation, auth is pre-resolved for each location:

go
if ing.config.AuthType != nil {
    basic, digest, err := p.resolveBasicAuth(ing.Namespace, ing.config)
    if err != nil {
        logger.Error().
            Err(err).
            Str("ingress", fmt.Sprintf("%s/%s rule-%d path-%d", ing.Namespace, ing.Name, ri, pi)).
            Msg("Cannot resolve auth secret, skipping auth middleware")
    } else {
        loc.BasicAuth = basic
        loc.DigestAuth = digest
    }
}

The error is logged, but loc.Error is not set. Later, pkg/provider/kubernetes/ingress-nginx/translator.go only routes to unavailable-service when loc.Error is true. Since this auth error leaves loc.Error false, the generated router continues to use the real backend service, and applyMiddlewares has no BasicAuth/DigestAuth middleware to attach.

This differs from nearby fail-closed behavior for comparable provider translation failures:

  • auth-tls-secret resolution failure skips the affected ingress.
  • custom-headers ConfigMap resolution failure sets loc.Error = true, causing the translator to avoid normal backend exposure.

Security invariant:

> If an Ingress location explicitly configures BasicAuth/DigestAuth, Traefik should not forward that location to the backend unless the corresponding auth middleware is installed.

Reasonable fail-closed behaviors would include omitting the router, routing it to unavailable-service, returning 503, or attaching a deny-all middleware until the auth dependency is valid.

Expected behavior

An Ingress location with explicit auth-type: basic or auth-type: digest must not forward requests to the backend unless the generated Traefik router has the corresponding BasicAuth/DigestAuth middleware attached.

If the referenced auth Secret is missing, malformed, unreadable, denied by namespace policy, or otherwise unusable, Traefik should fail closed for that location.

Actual behavior

When auth-secret resolution fails, Traefik still creates a router to the backend service and only omits the BasicAuth/DigestAuth middleware. The only indication is a controller log entry:

text
Cannot resolve auth secret, skipping auth middleware

PoC

I reproduced this with a clean fake Kubernetes provider state. The reproduction does not use Docker provider labels, dashboard/API routing, lab backends, or public network targets.

Minimal Kubernetes objects:

  • IngressClass named nginx with controller k8s.io/ingress-nginx
  • Service named whoami in namespace default
  • EndpointSlice for the whoami service
  • Ingress with ingressClassName: nginx, a backend pointing to whoami, and these annotations:
yaml
nginx.ingress.kubernetes.io/auth-type: "basic"
nginx.ingress.kubernetes.io/auth-secret-type: "auth-file"
nginx.ingress.kubernetes.io/auth-secret: "default/missing-basic-auth"

The referenced Secret intentionally does not exist. The expected secure behavior is fail-closed for this auth-configured route. The observed behavior is a normal router to the backend without BasicAuth/DigestAuth.

Key failing assertion from the regression harness:

text
router forwards to backend service without BasicAuth/DigestAuth when auth-secret is missing; middlewares=[default-auth-missing-secret-rule-0-path-0-retry] service="default-auth-missing-secret-whoami-80"

The same behavior reproduces on both current master and v3.7.1.

I also tested a matrix of auth-secret resolution failures. In each error case, Traefik still emitted the backend router without BasicAuth/DigestAuth:

  • missing auth-secret
  • omitted/empty auth-secret
  • invalid auth-secret-type
  • auth-file Secret missing the required auth key
  • empty auth-map Secret
  • missing DigestAuth Secret
  • cross-namespace auth-secret denied by default policy

The same matrix includes a positive control where a valid auth-file Secret correctly attaches BasicAuth, confirming that the harness is exercising the intended provider path.

I also performed a clean-room revalidation from fresh git archive source trees for both source/master and v3.7.1. Only the two minimal test harnesses were copied into each archived source tree. This avoided contamination from lab compose files, Docker provider state, dashboard/API routes, prior source-tree test files, or running lab backends.

Threat model

This does not require an attacker to modify Traefik static configuration or Traefik process state. The relevant security boundary is the Kubernetes-declared route policy: an Ingress explicitly declares BasicAuth/DigestAuth, but Traefik publishes the data-plane route without that control when the auth dependency is invalid.

In multi-tenant or GitOps-managed clusters, the actor or automation that can affect Secret existence, Secret contents, namespace policy, or deployment ordering is not necessarily the same actor that owns the protected backend or Traefik deployment. As a result, a mistake, rollback, pruning job, policy change, or compromise limited to Kubernetes application resources can remove the effective auth boundary while the Ingress continues to declare that auth is required.

Impact

This is a fail-open authentication control issue leading to unintended unauthenticated route exposure.

The trigger is an invalid or unresolved auth dependency, but the security consequence is a data-plane route that violates explicit auth intent. This is materially different from intentionally deploying an unprotected route: the Ingress declares auth-type: basic or digest, yet Traefik publishes the backend without the corresponding auth middleware.

Realistic scenarios include:

  • GitOps, Helm, or CI/CD deploys Ingress and Secret resources separately. Ordering issues, rollbacks, pruning, or typos can leave the Ingress active while the auth Secret is absent or unreadable.
  • Kubernetes RBAC commonly separates ownership of Ingress objects, Secrets, and namespace policies. A lower-privileged namespace actor or deployment automation may be able to affect the referenced Secret or cross-namespace reference outcome without having direct access to Traefik static configuration.
  • During ingress-nginx migration, operators reasonably expect supported nginx.ingress.kubernetes.io/auth-* annotations to preserve the authentication boundary. Publishing the backend without auth is a worse failure mode than rejecting the invalid location.
  • A transient Secret deletion, malformed Secret update, or policy change can turn an already protected route into an unprotected route without changing the Ingress rule itself.

Controller logs are not a sufficient mitigation. Logs do not prevent exposure, may not page the service owner, and the first externally visible symptom can be unauthenticated access to the protected backend.

Suggested remediation

Fail closed on any resolveBasicAuth error. A minimal tested change is to mark the location as errored:

diff
 if err != nil {
     logger.Error().
         Err(err).
         Str("ingress", fmt.Sprintf("%s/%s rule-%d path-%d", ing.Namespace, ing.Name, ri, pi)).
         Msg("Cannot resolve auth secret, skipping auth middleware")
+    loc.Error = true
 } else {

This reuses the existing loc.Error / unavailable-service path. In my local validation, this change made the no-backend-without-auth regression pass while preserving the valid-secret positive control.

</details>

---

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Threat Intel
1
1 sources
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2023-3676 HIGH POC
8.8 Oct 31

A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4

CVE-2026-54680 CRITICAL POC
9.9 Jul 29

Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected
openSUSE Leap 15.6 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy