# CVE-2021-21234: Directory Traversal

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 21.17% (percentile 98, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-p4q6-qxjx-8jgp
- **Published:** 2021-01-05T17:29:40.000Z
- **Modified:** 2026-07-08T06:01:00.546Z

## Who should check

- Projects that depend on Maven package eu.hinsch:spring-boot-actuator-logview (\< 0.2.13)
- Anyone running lukashinsch spring-boot-actuator-logview \< 0.2.13

## Description

spring-boot-actuator-logview in a library that adds a simple logfile viewer as spring boot actuator endpoint. It is maven package "eu.hinsch:spring-boot-actuator-logview". In spring-boot-actuator-logview before version 0.2.13 there is a directory traversal vulnerability. The nature of this library is to expose a log file directory via admin (spring boot actuator) HTTP endpoints. Both the filename to view and a base folder (relative to the logging folder root) can be specified via request parameters. While the filename parameter was checked to prevent directory traversal exploits (so that \`filename=../somefile\` would not work), the base folder parameter was not sufficiently checked, so that \`filename=somefile&base=../\` could access a file outside the logging base directory). The vulnerability has been patched in release 0.2.13. Any users of 0.2.12 should be able to update without any issues as there are no other changes in that release. There is no workaround to fix the vulnerability other than updating or removing the dependency. However, removing read access of the user the application is run with to any directory not required for running the application can limit the impact. Additionally, access to the logview endpoint can be limited by deploying the application behind a reverse proxy.

## Affected and fixed versions

- Maven `eu.hinsch:spring-boot-actuator-logview`: affected \< 0.2.13; fixed 0.2.13 (osv)
- lukashinsch spring-boot-actuator-logview: \< 0.2.13 (cvelist)

## Mitigation

- Upgrade eu.hinsch:spring-boot-actuator-logview to 0.2.13 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-21234. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-21234.md
Affected: eu.hinsch:spring-boot-actuator-logview < 0.2.13
Fixed in: 0.2.13

Steps:
1. Search this machine and project for eu.hinsch:spring-boot-actuator-logview (Maven), lukashinsch spring-boot-actuator-logview: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-21234 being exploited?

There is no confirmed exploitation: CVE-2021-21234 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 21.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-21234?

High: CVSS 7.7 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2021-21234?

eu.hinsch:spring-boot-actuator-logview \< 0.2.13.

### Is there a fix for CVE-2021-21234?

Yes. Fixed in 0.2.13. Upgrade eu.hinsch:spring-boot-actuator-logview to 0.2.13 or later.

### How do I check if I'm affected by CVE-2021-21234?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/lukashinsch/spring-boot-actuator-logview/security/advisories/GHSA-p4q6-qxjx-8jgp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-21234>
- patch: <https://github.com/lukashinsch/spring-boot-actuator-logview/commit/1c76e1ec3588c9f39e1a94bf27b5ff56eb8b17d6>
- patch: <https://github.com/lukashinsch/spring-boot-actuator-logview/commit/760acbb939a8d1f7d1a7dfcd51ca848eea04e772>
- other: <https://search.maven.org/artifact/eu.hinsch/spring-boot-actuator-logview>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-21234>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-p4q6-qxjx-8jgp> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-21234> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-21234>
