CVE-2021-43557
JSON

7.5high

Path traversal in request_uri variable

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
13.0% (higher than 96% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
BIT-APISIX-2021-43557

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.

Affected

Product or packageVersionsReported by
Apache Software Foundation Apache APISIXfrom 1.5 before Apache APISIX 1.5*CVE List
apache apisixbefore 2.10.2NVD
apisix (Bitnami)before 2.10.2Bitnami Vulnerability Database

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

NVD (es)

El plugin uri-block en Apache APISIX versiones anteriores a 2.10.2, usa $request_uri sin verificación. La $request_uri es la URI original completa de la petición sin normalizar. Esto hace posible construir un URI para evitar la lista de bloqueo en algunas ocasiones. Por ejemplo, cuando la lista de bloqueo contiene "^/internal/", puede usarse una URI como "//internal/" para omitirla. Algunos otros plugins también presentan el mismo problema. Y puede afectar al plugin personalizado del desarrollador

References

https://lists.apache.org/thread/18jyd458ptocr31rnkjs71w4h366mv7hadvisory, exploit, mailing-list, vendor-advisory
http://www.openwall.com/lists/oss-security/2021/11/22/1advisory, mailing-list, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/11/22/2advisory, mailing-list, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/11/23/1advisory, exploit, mailing-list, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-43557web

Sources

SourceRecordLicence
CVE ListCVE-2021-43557 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-43557 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-APISIX-2021-43557 changed 2026-09-08Apache-2.0