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

    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 ID SNYK-UNMANAGED-ENVOYPROXYENVOY-8062332
  • published 20 Sep 2024
  • disclosed 19 Sep 2024
  • credit Andreas Moregård

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
Expand this section

Snyk

Recommended
6 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Passive
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None