{"id":"CVE-2021-32769","published":"2021-07-16T18:25:09Z","modified":"2024-08-03T23:33:55Z","title":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in micronaut-core","vendor":"micronaut-projects","product":"micronaut-core","tier":"tail","description":{"text":"Micronaut is a JVM-based, full stack Java framework designed for building JVM applications. A path traversal vulnerability exists in versions prior to 2.5.9. With a basic configuration, it is possible to access any file from a filesystem, using \"/../../\" in the URL. This occurs because Micronaut does not restrict file access to configured paths. The vulnerability is patched in version 2.5.9. As a workaround, do not use `**` in mapping, use only `*`, which exposes only flat structure of a directory not allowing traversal. If using Linux, another workaround is to run micronaut in chroot.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01732,"percentile":0.78188,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/micronaut-projects/micronaut-core/security/advisories/GHSA-cjx7-399x-p2rj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/micronaut-projects/micronaut-core/commit/a0cfeb13bf1ef5d692d16d4a3b91b34b7456bb11","tags":["x_refsource_MISC"]}],"priority":{"score":20.9,"factors":[{"name":"EPSS percentile","points":15.64},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"micronaut-projects","affectedVersions":[{"vendor":"micronaut-projects","product":"micronaut-core","versions":["< 2.5.9"]}],"affected":[{"ecosystem":"Maven","package":"io.micronaut:micronaut-http-server-netty","vulnerableRanges":["<2.5.9"],"patched":["2.5.9"],"from":["GHSA-cjx7-399x-p2rj"],"provenance":"source"}],"summary":{"text":"The micronaut-core component of the micronaut-projects Micronaut framework has a path traversal flaw in versions prior to 2.5.9, where file access is not restricted to configured paths. An attacker with network access, requiring no authentication or user interaction and only a basic configuration, can use \"/../../\" in a URL to read any file on the filesystem.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:25Z"},"euvd":{"id":"EUVD-2021-1459","exploited":false,"provenance":"source"}}