CVE-2021-43557 Path traversal in request_uri variable
HighCVSS 7.5
EPSS 13.0%
- Published
- Updated
- Exploit status
- No public exploit known
Description
The uri-block plugin in Apache APISIX before 2.10.2 uses $request_uri without verification. The $request_uri is the full original request URI without normalization. This makes it possible to construct a URI to bypass the block list on some occasions. For instance, when the block list contains "^/internal/", a URI like //internal/ can be used to bypass it. Some other plugins also have the same issue. And it may affect the developer's custom plugin.
Upgrade path
2 packages: 1 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache APISIX | >= 1.5 | No fix listed | No fix yet |
| apache apisix | < 2.10.2 | 2.10.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache apisix | < 2.10.2 | 2.10.2 |
| Apache APISIX | >= 1.5 | No fix listed |
References
- [oss-security] 20211122 CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable mailing-list third-party-advisory
- [oss-security] 20211122 Re: CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable mailing-list third-party-advisory
- [oss-security] 20211123 Re: CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable exploit mailing-list third-party-advisory
- lists.apache.org exploit mailing-list vendor-advisory