ID CVE-2021-29492
Summary Envoy is a cloud-native edge/middle/service proxy. Envoy does not decode escaped slash sequences `%2F` and `%5C` in HTTP URL paths in versions 1.18.2 and before. A remote attacker may craft a path with escaped slashes, e.g. `/something%2F..%2Fadmin`, to bypass access control, e.g. a block on `/admin`. A backend server could then decode slash sequences and normalize path and provide an attacker access beyond the scope provided for by the access control policy. ### Impact Escalation of Privileges when using RBAC or JWT filters with enforcement based on URL path. Users with back end servers that interpret `%2F` and `/` and `%5C` and `\` interchangeably are impacted. ### Attack Vector URL paths containing escaped slash characters delivered by untrusted client. Patches in versions 1.18.3, 1.17.3, 1.16.4, 1.15.5 contain new path normalization option to decode escaped slash characters. As a workaround, if back end servers treat `%2F` and `/` and `%5C` and `\` interchangeably and a URL path based access control is configured, one may reconfigure the back end server to not treat `%2F` and `/` and `%5C` and `\` interchangeably.
References
Vulnerable Configurations
  • cpe:2.3:a:envoyproxy:envoy:1.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.7.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.8.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.8.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.9.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.9.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.9.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.9.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.10.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.10.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.11.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.11.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.11.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.11.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.11.2:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.11.2:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.12.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.12.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.12.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.12.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.12.2:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.12.2:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.12.3:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.12.3:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.12.4:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.12.4:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.12.5:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.12.5:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.12.6:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.12.6:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.12.7:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.12.7:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.2:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.2:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.3:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.3:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.4:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.4:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.5:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.5:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.6:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.6:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.7:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.7:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.13.8:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.13.8:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.14.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.14.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.14.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.14.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.14.2:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.14.2:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.14.3:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.14.3:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.14.4:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.14.4:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.14.5:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.14.5:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.14.6:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.14.6:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.14.7:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.14.7:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.15.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.15.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.15.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.15.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.15.2:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.15.2:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.15.3:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.15.3:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.15.4:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.15.4:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.16.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.16.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.16.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.16.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.16.2:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.16.2:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.16.3:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.16.3:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.17.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.17.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.17.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.17.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.17.2:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.17.2:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.18.0:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.18.0:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.18.1:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.18.1:*:*:*:*:*:*:*
  • cpe:2.3:a:envoyproxy:envoy:1.18.2:*:*:*:*:*:*:*
    cpe:2.3:a:envoyproxy:envoy:1.18.2:*:*:*:*:*:*:*
CVSS
Base: 7.5 (as of 10-12-2021 - 18:10)
Impact:
Exploitability:
CWE CWE-22
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Using Slashes and URL Encoding Combined to Bypass Validation Logic
    This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple ways of encoding a URL and abuse the interpretation of the URL. A URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
  • Using Escaped Slashes in Alternate Encoding
    This attack targets the use of the backslash in alternate encoding. An attacker can provide a backslash as a leading character and causes a parser to believe that the next character is special. This is called an escape. By using that trick, the attacker tries to exploit alternate ways to encode the same character which leads to filter problems and opens avenues to attack.
  • Path Traversal
    An adversary uses path manipulation methods to exploit insufficient input validation of a target to obtain access to data that should be not be retrievable by ordinary well-formed requests. A typical variety of this attack involves specifying a path to a desired file together with dot-dot-slash characters, resulting in the file access API or function traversing out of the intended directory structure and into the root file system. By replacing or modifying the expected path information the access function or API retrieves the file desired by the attacker. These attacks either involve the attacker providing a complete path to a targeted file or using control characters (e.g. path separators (/ or \) and/or dots (.)) to reach desired directories or files.
  • Using Slashes in Alternate Encoding
    This attack targets the encoding of the Slash characters. An attacker would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the attacker many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:N/AC:L/Au:N/C:P/I:P/A:P
Last major update 10-12-2021 - 18:10
Published 28-05-2021 - 21:15
Last modified 10-12-2021 - 18:10
Back to Top