Allocation of Resources Without Limits or Throttling Affecting github.com/caddyserver/caddy/v2/modules/caddyhttp/rewrite package, versions <2.11.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.49% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCADDYSERVERCADDYV2MODULESCADDYHTTPREWRITE-20158557
  • published27 Sept 2026
  • disclosed18 Sept 2026
  • creditUnknown

Introduced: 18 Sep 2026

NewCVE-2026-77281  (opens in a new tab)
CWE-178  (opens in a new tab)
CWE-770  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade github.com/caddyserver/caddy/v2/modules/caddyhttp/rewrite to version 2.11.4 or higher.

Overview

github.com/caddyserver/caddy/v2/modules/caddyhttp/rewrite is a fast, multi-platform web server with automatic HTTPS

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the rewrite process when a placeholder in the URI template resolves to attacker-controlled input and is followed by a literal ?, allowing injected placeholders to be re-expanded and potentially exposing sensitive environment variables or files. An attacker can access confidential data by crafting specific HTTP headers and request paths. Additionally, in the replacer function, referencing the {http.request.body} placeholder causes the entire request body to be read into memory without size limitation, enabling an attacker to exhaust server memory by sending large or unlimited request bodies. Furthermore, in the fileHidden function, improper handling of case sensitivity allows hidden files or directories to be accessed using case-variant paths, enabling attackers to bypass file hiding protections and retrieve sensitive files by altering the case of the request path.

CVSS Base Scores

version 4.0
version 3.1