Skip to content
OpenAdvisories
High · 7.5 CVE-2021-32769 EUVD-2021-1459GHSA-cjx7-399x-p2rj

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in micronaut-core

Published Jul 16, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
micronaut-projects micronaut-core < 2.5.9 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven io.micronaut:micronaut-http-server-netty < 2.5.9 2.5.9 GHSA-cjx7-399x-p2rj

References