CVE-2026-44774: Traefik Gateway API TraefikService Backend Accepts Vulnerability
MODERATECVE-2026-44774 is a MODERATE gateway api traefikservice backend accepts vulnerability (CWE-284: Improper Access Control) affecting Traefik libraries in the Go ecosystem. The issue involves gateway api traefikservice backend accepts rest@internal, allowing unauthorized exposure of the rest provider despite providers.rest.insecure=false. Remediation is available by upgrading affected packages to version 3.7.1, 3.6.17, 2.11.46.
CVE-2026-44774 at a Glance
How to Fix CVE-2026-44774
To remediate this vulnerability, upgrade all affected Traefik dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/traefik/traefik/v3 to 3.7.1
Upgrade github.com/traefik/traefik/v3 to 3.6.17
Upgrade github.com/traefik/traefik/v2 to 2.11.46
Upgrade github.com/traefik/traefik to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/traefik/traefik/v3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-44774, inspect your project dependencies for Traefik:
inspect dependencies for github.com/traefik/traefik/v3
Analyze the terminal output to locate any version of Traefik in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Traefik, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44774 Affected Traefik Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/traefik/traefik/v3
|
Go |
≥ 3.7.0
< 3.7.1
All 1 versions
3.7.0
|
3.7.1
|
|
github.com/traefik/traefik/v3
|
Go |
< 3.6.17
|
3.6.17
|
|
github.com/traefik/traefik/v2
|
Go |
< 2.11.46
|
2.11.46
|
|
github.com/traefik/traefik
|
Go |
≤ 1.7.34
|
|
References
Frequently Asked Questions
What is CVE-2026-44774?
Which Traefik versions are affected?
What version fixes CVE-2026-44774?
Is github.com/traefik/traefik/v3 affected?
Is github.com/traefik/traefik/v2 affected?
What CWE is associated with CVE-2026-44774?
How can I check Go dependencies for CVE-2026-44774?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-96qj-4jj5-wcjc",
"modified" : "2026-05-15T23:50:03Z",
"published" : "2026-05-13T15:29:56Z",
"aliases" : [ "CVE-2026-44774" ],
"summary" : "Traefik: Gateway API TraefikService backend accepts rest@internal, allowing unauthorized exposure of the REST provider despite providers.rest.insecure=false",
"details" : "## Summary\n\nThere is a medium severity vulnerability in Traefik's Kubernetes Gateway API provider that allows a tenant with `HTTPRoute` creation permissions to expose the REST provider handler, bypassing the `providers.rest.insecure=false` setting. The Gateway provider accepts any `TraefikService` backend reference whose name ends with `@internal`, making it possible to route traffic to `rest@internal` in addition to the intended `api@internal`. In shared Gateway deployments where the REST provider is enabled, this allows a low-privileged actor to gain live dynamic configuration write access to Traefik, enabling unauthorized reconfiguration of routers and services.\n\n## Patches\n\n- https://github.com/traefik/traefik/releases/tag/v2.11.46\n- https://github.com/traefik/traefik/releases/tag/v3.6.17\n- https://github.com/traefik/traefik/releases/tag/v3.7.1\n\n## For more information\n\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).\n\n<details>\n<summary>Original Description</summary>\n\n### Summary\nWhen the Kubernetes Gateway API provider is enabled, Traefik accepts any `TraefikService` backend whose name ends with `@internal`. This allows a tenant-controlled `HTTPRoute` to publish `rest@internal`.\n\nIf `providers.rest` is enabled, this exposes Traefik's REST provider handler even when `providers.rest.insecure=false`, even though providers.rest.insecure=false is meant to keep the REST handler from being exposed by Traefik's built-in internal router. In a shared Gateway deployment, an actor with permission to create or update `HTTPRoute` resources in an allowed namespace can gain live Traefik dynamic-configuration write access through `PUT /api/providers/rest`.\n\n### Details\nThe Gateway provider treats internal services broadly rather than allowing only a specific internal target.\n\nIn current `master`, `pkg/provider/kubernetes/gateway/kubernetes.go` defines `isInternalService(...)` as any `TraefikService` reference whose name ends with `@internal`.\n\nThen `pkg/provider/kubernetes/gateway/httproute.go` special-cases a single backend reference that matches `isInternalService(...)` and directly assigns `router.Service = string(routeRule.BackendRefs[0].Name)`.\n\nThis means a tenant route can target not only `api@internal`, but also `rest@internal` and other internal handlers.\n\nSeparately, the REST provider handler is created whenever the REST provider is enabled. In `pkg/server/service/managerfactory.go`, if `staticConfiguration.Providers.Rest != nil`, Traefik sets `factory.restHandler = staticConfiguration.Providers.Rest.CreateRouter()`.\n\nThe REST provider handler itself is implemented in `pkg/provider/rest/rest.go` and accepts `PUT /api/providers/{provider}`.\n\nThe `providers.rest.insecure` flag does not disable the underlying handler. In `pkg/provider/traefik/internal.go`, that flag only controls whether Traefik creates its own built-in internal router for `rest@internal`. Even when `providers.rest.insecure=false`, Traefik still registers the `rest` service object, and the service layer can still resolve `rest@internal` if another provider routes to it.\n\nI validated this locally in two tests:\n1. the Gateway route-building path accepts `rest@internal` as an internal backend through the same special-case branch used for `api@internal`\n2. the service layer builds and serves `rest@internal` successfully when `providers.rest` is enabled and `providers.rest.insecure=false`\n\nThe vulnerable code path is present in:\n- `v3.0.0`\n- `v3.6.7`\n- `v2.11.0`\n- `v2.11.36`\n- current `master` at `786f7192e11878dfaa634f8263bf79bb730a71cb`\n\nI verified the issue in v3.0.0, v3.6.7, v2.11.0, v2.11.36, and current master; the reported affected ranges reflect the maintained release lines checked during validation\n\nI did not find a public Traefik advisory or CVE for this exact issue. The closest public overlap I found is the documented/tested Gateway support for `api@internal`, but the issue here is broader because the Gateway code accepts any `@internal` `TraefikService`, including the write-capable `rest@internal` handler.\n\n### Expected behavior\n`providers.rest.insecure=false` should prevent low-privileged route authors from exposing the REST provider handler.\n\n### Actual behavior\nA tenant-controlled Gateway route can still publish `rest@internal` and reach the REST update API.\n\n### Attacker prerequisites\n- The Kubernetes Gateway API provider is enabled.\n- `providers.rest=true`.\n- `providers.rest.insecure=false`.\n- A shared Gateway allows tenant namespaces to attach `HTTPRoute` resources.\n- The attacker can create or update `HTTPRoute` resources in an allowed tenant namespace.\n\n### PoC\n1. Configure Traefik so that the Kubernetes Gateway provider is enabled, the REST provider is enabled, and the REST provider is not exposed insecurely.\n\nExample static configuration:\n\n```yaml\nproviders:\n kubernetesGateway: {}\n rest:\n insecure: false\n```\n\n2. Ensure a shared Gateway allows tenant `HTTPRoute` attachment.\n\n3. In an allowed tenant namespace, create an `HTTPRoute` whose backend points to `rest@internal`:\n\n```yaml\napiVersion: gateway.networking.k8s.io/v1\nkind: HTTPRoute\nmetadata:\n name: expose-rest-internal\n namespace: tenant-a\nspec:\n parentRefs:\n - name: shared-gateway\n namespace: infra\n hostnames:\n - rest.tenant.example\n rules:\n - matches:\n - path:\n type: PathPrefix\n value: /\n backendRefs:\n - group: traefik.io\n kind: TraefikService\n name: rest@internal\n port: 80\n```\n\n4. Send a `PUT` request through that published route to `/api/providers/rest` with a valid dynamic configuration body. A harmless proof can add a dummy router pointing to `noop@internal`.\n\nExample request body:\n\n```json\n{\n \"http\": {\n \"routers\": {\n \"probe\": {\n \"rule\": \"PathPrefix(`/probe`)\",\n \"service\": \"noop@internal\",\n \"ruleSyntax\": \"default\"\n }\n }\n }\n}\n```\n\n5. Observe that Traefik accepts the update and applies the supplied dynamic configuration, even though `providers.rest.insecure=false`.\n\n### Impact\nThis is an authorization / trust-boundary bypass affecting shared Gateway deployments.\n\nOn affected deployments, an actor who should only be able to create or update `HTTPRoute` objects can escalate to live Traefik dynamic-configuration write access. That can allow unauthorized reconfiguration of routers and services, publication of additional internal surfaces, request interception or rerouting, and denial of service through destructive config changes.\n\nOn affected deployments, this gives a low-privileged Gateway route author live Traefik dynamic-configuration write access. This is critical for affected shared Gateway deployments because it can give a low-privileged route author live Traefik dynamic-configuration write access, but it depends on providers.rest being enabled.\n\nThis is not an unauthenticated vulnerability in all Traefik deployments. The issue depends on realistic but specific conditions:\n- `providers.rest` must be enabled\n- the attacker must be allowed to attach `HTTPRoute` resources to a shared Gateway\n\n</details>",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/traefik/traefik/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.7.0"
}, {
"fixed" : "3.7.1"
} ]
} ],
"versions" : [ "3.7.0" ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/traefik/traefik/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.6.17"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.6.16"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/traefik/traefik/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.11.46"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.11.45"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/traefik/traefik"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.7.34"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/traefik/traefik/security/advisories/GHSA-96qj-4jj5-wcjc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44774"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/traefik/traefik"
}, {
"type" : "WEB",
"url" : "https://github.com/traefik/traefik/releases/tag/v2.11.46"
}, {
"type" : "WEB",
"url" : "https://github.com/traefik/traefik/releases/tag/v3.6.17"
}, {
"type" : "WEB",
"url" : "https://github.com/traefik/traefik/releases/tag/v3.7.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-13T15:29:56Z",
"nvd_published_at" : "2026-05-15T17:16:48Z"
}
}