by @LeSuisse Activity log
- Created automatic suggestion
-
@LeSuisse
removed
7 packages
- xcaddy
- caddyfile-language-server
- vimPlugins.nvim-treesitter-parsers.caddy
- tree-sitter-grammars.tree-sitter-caddyfile
- vscode-extensions.matthewpi.caddyfile-support
- python313Packages.tree-sitter-grammars.tree-sitter-caddyfile
- python314Packages.tree-sitter-grammars.tree-sitter-caddyfile
- @LeSuisse accepted
-
@LeSuisse
removed
4 maintainers
- @ryan4yin
- @techknowlogick
- @Br1ght0ne
- @stepbrobd
- @LeSuisse published on GitHub
Caddy: Unicode case-folding length expansion causes incorrect split_path index (SCRIPT_NAME/PATH_INFO confusion) in FastCGI transport
Caddy is an extensible server platform that uses TLS by default. Prior to version 2.11.1, Caddy's FastCGI path splitting logic computes the split index on a lowercased copy of the request path and then uses that byte index to slice the original path. This is unsafe for Unicode because `strings.ToLower()` can change UTF-8 byte length for some characters. As a result, Caddy can derive an incorrect `SCRIPT_NAME`/`SCRIPT_FILENAME` and `PATH_INFO`, potentially causing a request that contains `.php` to execute a different on-disk file than intended (path confusion). In setups where an attacker can control file contents (e.g., upload features), this can lead to unintended PHP execution of non-.php files (potential RCE depending on deployment). Version 2.11.1 fixes the issue.
References
- https://github.com/caddyserver/caddy/releases/tag/v2.11.1 x_refsource_MISC
- https://github.com/caddyserver/caddy/security/advisories/GHSA-5r3v-vc8m-m96g x_refsource_CONFIRM
- https://github.com/php/frankenphp/security/advisories/GHSA-g966-83w7-6w38 x_refsource_MISC
Affected products
- ==< 2.11.1
Matching in nixpkgs
Ignored packages (7)
pkgs.xcaddy
Build Caddy with plugins
pkgs.caddyfile-language-server
Basic language server for caddyfile
pkgs.vimPlugins.nvim-treesitter-parsers.caddy
None
-
nixos-unstable 0.0.0+rev=2686186
- nixpkgs-unstable 0.0.0+rev=2686186
- nixos-unstable-small 0.0.0+rev=2686186
pkgs.tree-sitter-grammars.tree-sitter-caddyfile
Tree-sitter grammar for caddyfile
-
nixos-unstable 0-unstable-2025-12-16
- nixpkgs-unstable 0-unstable-2025-12-16
- nixos-unstable-small 0-unstable-2025-12-16
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 0+unstable20251216
- nixpkgs-unstable 0+unstable20251216
- nixos-unstable-small 0+unstable20251216
pkgs.python314Packages.tree-sitter-grammars.tree-sitter-caddyfile
Python bindings for tree-sitter-caddyfile
-
nixos-unstable 0+unstable20251216
- nixpkgs-unstable 0+unstable20251216
- nixos-unstable-small 0+unstable20251216
Package maintainers
Ignored maintainers (4)
-
@ryan4yin Ryan Yin <xiaoyin_c@qq.com>
-
@techknowlogick techknowlogick <techknowlogick@gitea.com>
-
@Br1ght0ne Oleksii Filonenko <brightone@protonmail.com>
-
@stepbrobd Yifei Sun <ysun@hey.com>