CVE-2021-43557
Apache APISIX vulnerability analysis and mitigation

Overview

CVE-2021-43557 is a path traversal vulnerability discovered in Apache APISIX's uri-block plugin affecting versions before 2.10.2. The vulnerability was reported by Marcin Niemiec and disclosed on November 22, 2021. The issue exists in the uri-block plugin which uses $requesturi without proper verification, where $requesturi represents the full original request URI without normalization (OSS Security).

Technical details

The vulnerability stems from the improper handling of the $request_uri variable in the uri-block plugin. Since the request URI is processed without normalization, it creates a path traversal vulnerability. For example, when the block list contains a pattern like '^/internal/', an attacker can bypass this restriction by constructing a URI like '//internal/'. This issue affects not only the uri-block plugin but also extends to other plugins and potentially impacts custom plugins developed for APISIX (NVD, OSS Security).

Impact

The vulnerability allows attackers to bypass URI blocking mechanisms implemented in Apache APISIX. By exploiting this vulnerability, malicious actors could access restricted paths that were intended to be blocked by the uri-block plugin, potentially leading to unauthorized access to protected resources (OSS Security).

Mitigation and workarounds

Two primary mitigation strategies have been recommended: 1) Upgrade to Apache APISIX version 2.10.2 or later, which contains the fix for this vulnerability, and 2) Carefully review and fix any custom code that uses $request_uri without proper verification (OSS Security).

Community reactions

The Apache APISIX team responded quickly to the vulnerability report, with the fix being verified and implemented promptly. The community response was positive, with Apache APISIX's website publishing a detailed blog post about the CVE. Marcin Niemiec, who reported the vulnerability, praised the quick response and verification of the issue (OSS Security, OSS Security).

Additional resources


SourceThis report was generated using AI

Related Apache APISIX vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-27446HIGH7.8
  • Apache APISIXApache APISIX
  • cpe:2.3:a:apache:apisix
NoYesJul 06, 2025
CVE-2025-62232HIGH7.5
  • Apache APISIXApache APISIX
  • cpe:2.3:a:apache:apisix
NoYesOct 31, 2025
CVE-2022-29266HIGH7.5
  • Apache APISIXApache APISIX
  • cpe:2.3:a:apache:apisix
NoYesApr 20, 2022
CVE-2024-32638MEDIUM6.3
  • Apache APISIXApache APISIX
  • cpe:2.3:a:apache:apisix
NoYesMay 02, 2024
CVE-2025-46647MEDIUM5.3
  • Apache APISIXApache APISIX
  • cpe:2.3:a:apache:apisix
NoYesJul 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management