Arbitrary Code Injection Affecting caddy package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.36% (30th 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-ECHOLATEST-CADDY-19964088
  • published20 Sept 2026
  • disclosed17 Sept 2026

Introduced: 17 Sep 2026

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

How to fix?

There is no fixed version for Echo:latest caddy.

NVD Description

Note: Versions mentioned in the description apply only to the upstream caddy package and not the caddy package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.