Skip to content
OpenAdvisories
High · 7.5 CVE-2021-43795 EUVD-2021-2484GHSA-8fp4-rp6c-5gcv

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in com.linecorp.armeria:armeria

Published Dec 2, 2021 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

Armeria is an open source microservice framework. In affected versions an attacker can access an Armeria server's local file system beyond its restricted directory by sending an HTTP request whose path contains `%2F` (encoded `/`), such as `/files/..%2Fsecrets.txt`, bypassing Armeria's path validation logic. Armeria 1.13.4 or above contains the hardened path validation logic that handles `%2F` properly. This vulnerability can be worked around by inserting a decorator that performs an additional validation on the request path.

Affected products

VendorProductAffectedFixed
line armeria < 1.13.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.linecorp.armeria:armeria >= 1.12.0, < 1.13.4 1.13.4 GHSA-8fp4-rp6c-5gcv

References