UBUNTU-CVE-2026-118653: Medium severity ubuntu/golang-github-labstack-echo.v2 vulnerability

Published Oct 29, 2026
·
Updated

Echo is a Go web framework. From 4.0.0 until 5.1.0, Context.RealIP falls back to client-supplied X-Forwarded-For or X-Real-IP values when Echo.IPExtractor is unset, and the default RateLimiter uses that result as its client identifier. A remote attacker can rotate arbitrary forwarded-address values to obtain new rate-limit buckets and bypass IP-based throttling used for controls such as brute-force or request-volume protection. This issue is fixed in Echo v5.1.0.

Affected Software

6 affected components
ubuntu/golang-github-labstack-echo.v2*
ubuntu/golang-github-labstack-echo*
ubuntu/golang-github-labstack-echo.v2*
ubuntu/golang-github-labstack-echo*
ubuntu/golang-github-labstack-echo*
ubuntu/golang-github-labstack-echo*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Echo to a version that resolves this vulnerability.

    Fixed in 5.1.0

Frequently Asked Questions

1

When is an application exposed to this rate-limit bypass?

It is exposed when it uses Echo's default RateLimiter for IP-based throttling and leaves Echo.IPExtractor unset. In that configuration, client-controlled X-Forwarded-For or X-Real-IP values can determine the rate-limit client identifier.

2

What does an attacker need to bypass throttling?

The attacker only needs remote access to the application and the ability to send requests with arbitrary X-Forwarded-For or X-Real-IP header values. By changing those values between requests, the attacker can obtain separate rate-limit buckets.

3

Are applications using the default configuration affected?

Yes, the vulnerable behavior occurs when Echo.IPExtractor is unset, which causes Context.RealIP to fall back to forwarded-address headers. The default RateLimiter then uses that result as its client identifier.

4

What is the available remediation?

Upgrade Echo to v5.1.0, where this issue is fixed. If an immediate upgrade is not possible, avoid leaving Echo.IPExtractor unset when IP-based rate limiting is relied upon.

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