{"id":"CVE-2021-43557","published":"2021-11-22T08:25:09Z","modified":"2024-08-04T04:03:07Z","title":"Path traversal in request_uri variable","vendor":"Apache","product":"Apache APISIX","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.13044,"percentile":0.96436,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.apache.org/thread/18jyd458ptocr31rnkjs71w4h366mv7h","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/22/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/22/2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/23/1","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":19.29},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2021-11-22","earliestUrl":"https://github.com/xvnpw/k8s-CVE-2021-43557-poc","repos":[{"name":"xvnpw/k8s-CVE-2021-43557-poc","url":"https://github.com/xvnpw/k8s-CVE-2021-43557-poc","stars":22,"created":"2021-11-22"}]},"first":{"date":"2021-11-22","source":"PoC-in-GitHub","url":"https://github.com/xvnpw/k8s-CVE-2021-43557-poc"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache APISIX","versions":[">= 1.5, < Apache APISIX 1.5*"]}],"workarounds":{"items":["1. Upgrade to APISIX 2.10.2, or apply this commit which provides a normalized $request_uri: https://github.com/apache/apisix/commit/9fc38330e82ce46e2aaabceef7d61708c91782db 2. Carefully review custom code, find & fix the usage of $request_uri without verification."],"from":"CVE.org CNA","provenance":"source"},"summary":{"text":"A path traversal flaw in Apache APISIX (before 2.10.2) affects the uri-block plugin, which uses the unnormalised $request_uri variable, and similar issues may exist in some other plugins and custom plugins. An attacker who can send requests to the gateway can craft a URI, such as one with a doubled leading slash, to bypass the block list and reach restricted paths.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:38Z"},"euvd":{"id":"EUVD-2021-30486","exploited":false,"provenance":"source"}}