REDHAT-BUG-2493622: High severity Echo Echo vulnerability

Published Jun 26, 2026
·
Updated

Echo is a Go web framework. Prior to 4.15.3 and 5.2.0, Echo's router and static file handler disagree on URL path decoding. The router matches routes using the raw encoded path (preserving %2F as-is), while StaticDirectoryHandler unescapes %2F to / before resolving filesystem paths. This allows an attacker to bypass route-level access controls and read static files without authorization. This vulnerability is fixed in 4.15.3 and 5.2.0.

Affected Software

1 affected component
Echo Echo>4.15.3<=5.2.0, <4.15.3, <5.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Echo (Go web framework) to a version that resolves this vulnerability.

    Fixed in 4.15.3
  2. Upgrade

    Upgrade Echo (Go web framework) to a version that resolves this vulnerability.

    Fixed in 5.2.0

Event History

Jun 26, 2026
Data Sourced
via Red Hat·05:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using Echo versions earlier than 4.15.3 or 5.2.0 are affected when route-level access controls protect content served through the static file handler. The issue arises from differing handling of encoded path separators such as %2F.

2

What does an attacker need to exploit it?

An attacker needs to send requests containing encoded slashes (%2F) to trigger the mismatch between router matching and static-file path resolution. The vulnerability can allow bypass of route-level authorization and unauthorized reading of static files.

3

What should be done if an affected version is in use?

Upgrade Echo to version 4.15.3 or 5.2.0. Until upgrading, review whether static-file routes rely on route-level access controls, since those controls may be bypassed with encoded path separators.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203