
Cloud Vulnerability DB
A community-led vulnerabilities database
Micronaut, a JVM-based full stack Java framework designed for building JVM applications, contained a path traversal vulnerability in versions prior to 2.5.9. The vulnerability was discovered and disclosed on July 16, 2021. With a basic configuration, it was possible to access any file from the filesystem using '/../../' in the URL, as Micronaut did not restrict file access to configured paths (GitHub Advisory, NVD).
The vulnerability exists in the file system resource loading functionality. When configured with static resources enabled (e.g., router.static-resources.assets.enabled=true), the application failed to properly validate file paths, allowing directory traversal attacks. An attacker could use path traversal sequences like '../' to access files outside the intended directory structure. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating it can be exploited remotely without authentication (GitHub Advisory).
The vulnerability could potentially lead to unauthorized access to sensitive information on the filesystem. An attacker could read any file accessible to the application process by traversing outside the configured static resource paths. This could result in exposure of sensitive configuration files, credentials, or other confidential data (GitHub Advisory).
The vulnerability was patched in Micronaut version 2.5.9. For users unable to upgrade immediately, two workarounds are available: 1) Avoid using '*' in mapping and use only '' which exposes only flat structure of a directory not allowing traversal, or 2) On Linux systems, run Micronaut in chroot. The patch implements proper path validation to prevent access to files outside the configured base directory (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."