All vulnerabilities

Go · Servers and applications

GHSA-gx7w-56w6-g48x

Caddy: Remote Admin Authorization Bypass on PKI Endpoints via Prefix-Based Path Matching

Severity
Medium 4.3
Published
13 May 2026
Last changed
24 Jul 2026
Added to UpHeron
22 Oct 2026
Fixed in
2.11.3
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Also known as
GO-2026-5408
Sources
OSV.dev and GitHub, Project advisories (GitHub)

Description

Caddy's remote admin access control performs path authorization using prefix matching:

  • admin.go: strings.HasPrefix(r.URL.Path, allowedPath)

This allows a client certificate authorized only for /pki/ca/prod to access sibling PKI resources whose paths merely share the same prefix, such as /pki/ca/prod-backup.

This is an authorization bug in Caddy's source code, not a misconfiguration issue. The configured policy is more restrictive than the behavior that Caddy actually enforces.

In RemoteAdmin.enforceAccessControls(), allowed paths are checked like this:

This does not enforce a path-segment boundary.

So if the allowed path is:

/pki/ca/prod

then all of the following are treated as authorized:

  • /pki/ca/prod-backup
  • /pki/ca/prod1
  • /pki/ca/prodanything

For PKI admin endpoints, the CA ID is taken directly from the request path:

  • modules/caddypki/adminapi.go:164
From caddyserver/caddy's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CaddyServers and applications · github:caddyserver/caddy
  • Every version before 2.11.3
CaddyGo · osv:Go:github.com/caddyserver/caddy/v2
  • Every version before 2.11.3

About Caddy

open source web server

From Wikidata, CC0 1.0.
Share of websites with a known web server
1.3%W3Techs, Nov 2026
Docker Hub pulls
770,668,265Docker Hub, 15 Nov 2026
GitHub stars
79,049GitHub, 15 Nov 2026
Forks
5,264GitHub, 15 Nov 2026
Latest release
v2.11.9GitHub, 15 Nov 2026
Released
5 Nov 2026GitHub
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First published on GitHub
13 Jan 2015GitHub

Release lines

ReleaseLatestSecurity fixes
22.11.9Yes
11.0.5Ended 1 Jul 2020

From endoflife.date.

References