Improper Restriction of Operations within the Bounds of a Memory Buffer Affecting envoyproxy/envoy package, versions [,1.29.9)[1.30.0,1.30.6)[1.31.0,1.31.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (19th 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-UNMANAGED-ENVOYPROXYENVOY-8062332
  • published20 Sept 2024
  • disclosed19 Sept 2024
  • creditAndreas Moregård

Introduced: 19 Sep 2024

CVE-2024-45809  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade envoyproxy/envoy to version 1.29.9, 1.30.6, 1.31.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Restriction of Operations within the Bounds of a Memory Buffer due to the improper handling of clearRouteCache when remote JWKs are used, which requires asynchronous header processing. An attacker can trigger a crash in the upstream code by exploiting the ordering of continueDecoding and clearRouteCache under specific conditions.

Note:

This is only exploitable if remote JWKs are used, clear_route_cache is enabled on the provider, header operations are enabled in JWT filter, and the routing table is configured in a way that the JWT header operations modify requests to not match any route.

CVSS Scores

version 4.0
version 3.1