Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/caddyserver/caddy/v2
  4. ›
  5. CVE-2026-45692

CVE-2026-45692: Caddy: Remote Admin Authorization Bypass in `/config` API via Array Index Normalization

May 19, 2026

A remote admin client certificate restricted to the following path:

/config/apps/http/servers/srv/routes/0

can still read and modify a different array element by requesting:

/config/apps/http/servers/srv/routes/01

This happens because:

  • the authorization layer uses string prefix matching
  • the /config traversal layer parses array indices numerically using strconv.Atoi()

So:

  • authorization sees /…/01 as matching /…/0
  • traversal resolves 01 to numeric index 1
  • the request therefore targets routes[1], not routes[0]

This is not just a prefix-match quirk. It is an authorization-to-object mismatch.

References

  • github.com/advisories/GHSA-x5w9-xh9r-mvfc
  • github.com/caddyserver/caddy/security/advisories/GHSA-x5w9-xh9r-mvfc
  • nvd.nist.gov/vuln/detail/CVE-2026-45692

Code Behaviors & Features

Detect and mitigate CVE-2026-45692 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.4.0 before 2.11.3

Fixed versions

  • 2.11.3

Solution

Upgrade to version 2.11.3 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-187: Partial String Comparison
  • CWE-863: Incorrect Authorization

Source file

go/github.com/caddyserver/caddy/v2/CVE-2026-45692.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:03 +0000.