CVE-2021-43557 Path traversal in request_uri variable
Attackers can bypass URI block lists in Apache APISIX by using unnormalized request URIs, potentially accessing restricted internal endpoints.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-43557?
CVE-2021-43557 is a high-severity path traversal vulnerability in Apache APISIX, published on 22 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-77
Which versions are affected by CVE-2021-43557?
1 open source package ship an affected version, including apisix. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apisix Bitnami | All versions | 2.10.2 |
Products include Apache Apisix.
How do I fix CVE-2021-43557?
Upgrade apisix to 2.10.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-43557 being exploited?
There is no known exploitation of CVE-2021-43557 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Apache APISIX
- CVE-2022-24112 Apache APISIX Authentication Bypass
- CVE-2022-25757 Apache APISIX: the body_schema check in request-validation plugin can be bypassed
- CVE-2026-31908 Apache APISIX: forward auth plugin allows header injection
- CVE-2026-75005 Apache APISIX: Unauthenticated CPU-exhaustion DoS
- CVE-2025-27446 Privilege escalation in Apache APISIX Java Plugin Runner
Sources
Also known as BIT-apisix-2021-43557, GHSA-9wxc-375c-cvq2.