CVE-2025-66491
JSON

5.9medium

Traefik has Inverted TLS Verification Logic in its ingress-nginx Provider

Severity
5.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7vww-mvcr-x6vjGO-2025-4205

Description

Traefik is an HTTP reverse proxy and load balancer. Versions 3.5.0 through 3.6.2 have inverted TLS verification logic in the nginx.ingress.kubernetes.io/proxy-ssl-verify annotation. Setting the annotation to "on" (intending to enable backend TLS certificate verification) actually disables verification, allowing man-in-the-middle attacks against HTTPS backends when operators believe they are protected. This issue is fixed in version 3.6.3.

Affected

Product or packageVersionsReported by
traefik traefik>= 3.5.0, < 3.6.3, from 3.5.0 before 3.6.3CVE List, NVD
github.com/traefik/traefik/v3 (Go)from 3.5.0 before 3.6.3GitHub Advisory Database, Go Vulnerability Database
github.com/traefik/traefik (Go)all versionsGo Vulnerability Database
github.com/traefik/traefik/v2 (Go)all versionsGo Vulnerability Database

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-295

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Traefik is an HTTP reverse proxy and load balancer. Versions 3.5.0 through 3.6.2 have inverted TLS verification logic in the nginx.ingress.kubernetes.io/proxy-ssl-verify annotation. Setting the annotation to "on" (intending to enable backend TLS certificate verification) actually disables verification, allowing man-in-the-middle attacks against HTTPS backends when operators believe they are protected. This issue is fixed in version 3.6.3.

GitHub Advisory Database

Impact

There is a potential vulnerability in Traefik NGINX provider managing the nginx.ingress.kubernetes.io/proxy-ssl-verify annotation.

The provider inverts the semantics of the nginx.ingress.kubernetes.io/proxy-ssl-verify annotation. Setting the annotation to "on" (intending to enable backend TLS certificate verification) actually disables verification, allowing man-in-the-middle attacks against HTTPS backends when operators believe they are protected.

Patches

For more information

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

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

A logic error in Traefik's experimental ingress-nginx provider inverts the semantics of the nginx.ingress.kubernetes.io/proxy-ssl-verify annotation. Setting the annotation to "on" (intending to enable backend TLS certificate verification) actually disables verification, allowing man-in-the-middle attacks against HTTPS backends when operators believe they are protected.

Details

In pkg/provider/kubernetes/ingress-nginx/kubernetes.go at line 512, the InsecureSkipVerify field is set using inverted logic:

nst := &namedServersTransport{
    Name: provider.Normalize(namespace + "-" + name),
    ServersTransport: &dynamic.ServersTransport{
        ServerName:         ptr.Deref(cfg.ProxySSLName, ptr.Deref(cfg.ProxySSLServerName, "")),
        InsecureSkipVerify: strings.ToLower(ptr.Deref(cfg.ProxySSLVerify, "off")) == "on",
    },
}

The expression == "on" evaluates to true when the annotation is "on", setting InsecureSkipVerify: true. In Go's crypto/tls, InsecureSkipVerify: true means "do not verify the server's certificate" — the opposite of what proxy-ssl-verify: "on" should do according to NGINX semantics.

Current behavior:

Annotation ValueInsecureSkipVerifyActual Result
"on"trueVerification disabled ❌
"off" (default)falseVerification enabled

Expected behavior (per NGINX semantics):

Annotation ValueInsecureSkipVerifyExpected Result
"on"falseVerification enabled
"off" (default)trueVerification disabled

The test in pkg/provider/kubernetes/ingress-nginx/kubernetes_test.go lines 397-403 confirms this inverted behavior is codified as "expected":

ServersTransports: map[string]*dynamic.ServersTransport{
    "default-ingress-with-proxy-ssl": {
        ServerName:         "whoami.localhost",
        InsecureSkipVerify: true,  // Wrong: should be false when annotation is "on"
        RootCAs:            []types.FileOrContent{"-----BEGIN CERTIFICATE-----"},
    },
},

Affected versions: v3.5.0 through current master (introduced in commit 9bd5c617820f2a8d23b50b68d114bb7bc464eccd)

Pavel Kohout Aisle Research

</details>
Go Vulnerability Database

Traefik Inverted TLS Verification Logic in ingress-nginx Provider in github.com/traefik/traefik

NVD (es)

Traefik es un proxy inverso HTTP y un balanceador de carga. Las versiones 3.5.0 a 3.6.2 tienen la lógica de verificación TLS invertida en la anotación nginx.ingress.kubernetes.io/proxy-ssl-verify. Establecer la anotación en 'on' (con la intención de habilitar la verificación del certificado TLS del backend) en realidad deshabilita la verificación, permitiendo ataques man-in-the-middle contra backends HTTPS cuando los operadores creen que están protegidos. Este problema está solucionado en la versión 3.6.3.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-66491 changed 2025-12-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-7vww-mvcr-x6vj changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4205 changed 2026-07-02CC-BY-4.0
NVDCVE-2025-66491 changed 2026-10-14Public domain