{"id":"CVE-2021-43795","aliases":["GHSA-8fp4-rp6c-5gcv"],"url":"https://o3.security/vulnerability/CVE-2021-43795","summary":"Path Traversal in com.linecorp.armeria:armeria","details":"### Impact\n\nAn 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.\n\n### Patches\n\nArmeria 1.13.4 or above contains the hardened path validation logic that handles `%2F` properly. \n\n### Workarounds\n\nThis vulnerability can be worked around by inserting a decorator that performs an additional validation on the request path, e.g.\n\n```java\nServer\n  .builder()\n  .serviceUnder(\n    \"/files\",\n    FileService\n      .of(...)\n      .decorate((delegate, ctx, req) -> {\n        String path = req.headers().path();\n        if (path.contains(\"%2f\") || path.contains(\"%2F\")) {\n          return HttpResponse.of(HttpStatus.BAD_REQUEST);\n        }\n        return delegate.serve(ctx, req);\n      })\n  )\n  .build()\n```\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [line/armeria](https://github.com/line/armeria)\n* Chat with us at [Slack](https://armeria.dev/s/slack)\n\n### Credits\n\nThis vulnerability was originally reported by Abdallah Zaher ([elcayser-0x0a](https://hackerone.com/elcayser-0x0a?type=user)).","published":"2021-12-02T18:15:08.267Z","modified":"2026-08-07T19:47:04.716804Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"com.linecorp.armeria:armeria","fixedVersion":"1.13.4"}],"fix":{"url":"https://github.com/line/armeria/commit/e2697a575e9df6692b423e02d731f293c1313284","label":"line/armeria@e2697a5"},"references":[{"type":"ADVISORY","url":"https://github.com/line/armeria/pull/3855"},{"type":"ADVISORY","url":"https://github.com/line/armeria/security/advisories/GHSA-8fp4-rp6c-5gcv"},{"type":"FIX","url":"https://github.com/line/armeria/commit/e2697a575e9df6692b423e02d731f293c1313284"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43795"},{"type":"PACKAGE","url":"https://github.com/line/armeria"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T19:47:04.716804Z"}}