CVE-2021-43795
mediumpriority · track · 21EPSS 0.017 · 77 %ileEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-8fp4-rp6c-5gcvPath Traversal in com.linecorp.armeria:armeria2021-12-02ghsa · osvUS
### Impact 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. ### Patches Armeria 1.13.4 or above contains the hardened path validation logic that handles `%2F` properly. ### Workarounds This vulnerability can be worked around by inserting a decorator that performs an additional validation on the request path, e.g. ```java Server .builder() .serviceUnder( "/files", FileService .of(...) .decorate((delegate, ctx, req) -> { String path = req.headers().path(); if (path.contains("%2f") || path.contains("%2F")) { return HttpResponse.of(HttpStatus.BAD_REQUEST); } return delegate.serve(ctx, req); }) ) .build() ``` ### For more information If you have any questions or comments about this advisory: * Open an issue in [line/armeria](https://github.com/line/armeria) * Chat with us at [Slack](https://armeria.dev/s/slack) ### Credits This vulnerability was originally reported by Abdallah Zaher ([elcayser-0x0a](https://hackerone.com/elcayser-0x0a?type=user)).
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://github.com/line/armeria/commit/e2697a575e9df6692b423e02d731f293c1313284cnnvd
- https://github.com/line/armeria/pull/3855cnnvd
- https://github.com/line/armeria/security/advisories/GHSA-8fp4-rp6c-5gcvcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-43795cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021120609cnnvd
- https://github.com/line/armeria/commit/e2697a575e9df6692b423e02d731f293c1313284enisa_euvd
- https://github.com/line/armeria/pull/3855enisa_euvd
- https://github.com/line/armeria/security/advisories/GHSA-8fp4-rp6c-5gcvenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan