CVE-2021-32769CWE-22

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

High · published July 16, 2021

CVSS v3.1
7.5
EPSS
2%
Percentile
77.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.01732 · 77.4th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2021-07-16T18:25Z
EPSS history
Timeline
  • 16 JUL 18:25Z
    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in micronaut-core
    cvelistv5