{"id":"CVE-2021-43557","state":"PUBLISHED","title":"Path traversal in request_uri variable","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.","publishedAt":"2021-11-22T08:25:09.000Z","updatedAt":"2024-08-04T04:03:07.927Z","severity":null,"assigner":"apache","products":["Apache Software Foundation Apache APISIX"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache APISIX","versions":[{"version":"1.5","status":"affected","lessThan":"Apache APISIX 1.5*","versionType":"custom"}]}],"references":["https://lists.apache.org/thread/18jyd458ptocr31rnkjs71w4h366mv7h","http://www.openwall.com/lists/oss-security/2021/11/22/1","http://www.openwall.com/lists/oss-security/2021/11/22/2","http://www.openwall.com/lists/oss-security/2021/11/23/1"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:07.642Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/43xxx/CVE-2021-43557.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-43557","state":"PUBLISHED","datePublished":"2021-11-22T08:25:09.000Z","dateUpdated":"2024-08-04T04:03:07.927Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2021-11-09T00:00:00.000Z"},"containers":{"cna":{"title":"Path traversal in request_uri variable","descriptions":[{"lang":"en","value":"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":[{"vendor":"Apache Software Foundation","product":"Apache APISIX","versions":[{"version":"1.5","status":"affected","lessThan":"Apache APISIX 1.5*","versionType":"custom"}]}],"references":[{"url":"https://lists.apache.org/thread/18jyd458ptocr31rnkjs71w4h366mv7h","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/22/1","name":"[oss-security] 20211122 CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/22/2","name":"[oss-security] 20211122 Re: CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/23/1","name":"[oss-security] 20211123 Re: CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","tags":["mailing-list","x_refsource_MLIST"]}],"metrics":[{"other":{"content":{"other":"moderate"},"type":"unknown"}}],"problemTypes":[{"descriptions":[{"description":"Use Nginx's $request_uri variable without verification","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"apache","dateUpdated":"2021-11-23T12:06:15.000Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09"},"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"1. Upgrade to APISIX 2.10.2, or apply this commit which provides a normalized $request_uri: https://github.com/apache/apisix/commit/9fc38330e82ce46e2aaabceef7d61708c91782db\n2. Carefully review custom code, find & fix the usage of $request_uri without verification."}],"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2021-43557","STATE":"PUBLIC","TITLE":"Path traversal in request_uri variable"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache APISIX","version":{"version_data":[{"version_affected":">=","version_name":"Apache APISIX 1.5","version_value":"1.5"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{"other":"moderate"}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Use Nginx's $request_uri variable without verification"}]}]},"references":{"reference_data":[{"name":"https://lists.apache.org/thread/18jyd458ptocr31rnkjs71w4h366mv7h","refsource":"MISC","url":"https://lists.apache.org/thread/18jyd458ptocr31rnkjs71w4h366mv7h"},{"name":"[oss-security] 20211122 CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2021/11/22/1"},{"name":"[oss-security] 20211122 Re: CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2021/11/22/2"},{"name":"[oss-security] 20211123 Re: CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2021/11/23/1"}]},"source":{"discovery":"UNKNOWN"},"work_around":[{"lang":"en","value":"1. Upgrade to APISIX 2.10.2, or apply this commit which provides a normalized $request_uri: https://github.com/apache/apisix/commit/9fc38330e82ce46e2aaabceef7d61708c91782db\n2. Carefully review custom code, find & fix the usage of $request_uri without verification."}]}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.apache.org/thread/18jyd458ptocr31rnkjs71w4h366mv7h","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/22/1","name":"[oss-security] 20211122 CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/22/2","name":"[oss-security] 20211122 Re: CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2021/11/23/1","name":"[oss-security] 20211123 Re: CVE-2021-43557: Apache APISIX: Path traversal in request_uri variable","tags":["mailing-list","x_refsource_MLIST","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T04:03:07.927Z"}}]}}}