6.5 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): Low (L)
- Integrity (I): None (N)
- Availability (A): Low (L)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): Low (L)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): None (N)
- Modified Availability (MA): Low (L)
Activity log
- Created suggestion
Caddy: rewrite placeholder re-expansion
Caddy is an extensible server platform that uses TLS by default. In version 2.11.3 and earlier, three configuration-dependent weaknesses affect the handler and placeholder layer. In modules/caddyhttp/rewrite/rewrite.go, Rewrite.Rewrite() can pass attacker-controlled replacement bytes through buildQueryString for a second placeholder expansion when a rewrite URI ends with a literal question mark, allowing injected environment or request-variable placeholders to disclose data and, when the file provider is registered, allowing injected file placeholders to disclose readable files. The issue is fixed in version 2.11.4.
References
-
https://github.com/caddyserver/caddy/security/advisories/GHSA-j8px-rmrx-76h9 x_refsource_CONFIRM
-
https://github.com/caddyserver/caddy/pull/7761 x_refsource_MISC
-
https://github.com/caddyserver/caddy/releases/tag/v2.11.4 x_refsource_MISC
Affected products
- ==< 2.11.4
Matching in nixpkgs
pkgs.caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
pkgs.xcaddy
Build Caddy with plugins
pkgs.caddyfile-language-server
None
-
nixos-26.05 -
- nixos-26.05-small 0.4.0
pkgs.vimPlugins.nvim-treesitter-parsers.caddy
Tree-sitter grammar for caddy
-
nixos-unstable -
- nixos-unstable-small 0.0.0+rev=2686186
-
nixos-26.05 -
- nixos-26.05-small 0.0.0+rev=2686186
pkgs.tree-sitter-grammars.tree-sitter-caddyfile
Tree-sitter grammar for caddyfile
-
nixos-unstable -
- nixos-unstable-small 0-unstable-2026-04-06
-
nixos-26.05 -
- nixos-26.05-small 0-unstable-2026-04-06
pkgs.vscode-extensions.matthewpi.caddyfile-support
Rich Caddyfile support for Visual Studio Code
pkgs.python313Packages.tree-sitter-grammars.tree-sitter-caddyfile
Python bindings for tree-sitter-caddyfile
-
nixos-unstable -
- nixos-unstable-small 0+unstable20260406
-
nixos-26.05 -
- nixos-26.05-small 0+unstable20260406
pkgs.python314Packages.tree-sitter-grammars.tree-sitter-caddyfile
Python bindings for tree-sitter-caddyfile
-
nixos-unstable -
- nixos-unstable-small 0+unstable20260406
-
nixos-26.05 -
- nixos-26.05-small 0+unstable20260406
Package maintainers
-
@stepbrobd Yifei Sun <ysun@hey.com>
-
@techknowlogick techknowlogick <techknowlogick@gitea.com>
-
@ryan4yin Ryan Yin <xiaoyin_c@qq.com>
-
@A-jay98 Ali Jamadi <ali@jamadi.me>
-
@adfaure Adrien Faure <adfaure@pm.me>
-
@mightyiam Shahar "Dawn" Or <mightyiampresence@gmail.com>
-
@aciceri Andrea Ciceri <andrea.ciceri@autistici.org>
-
@matthewpi Matthew Penner <me+nix@matthewp.io>