CVE-2021-21234 — spring-boot-actuator-logv…
HIGHFix: lukashinsch/spring-boot-actuator-logview@1c76e1eCVE-2021-21234 is a high-severity (CVSS 7.7) Path Traversal vulnerability in eu.hinsch:spring-boot-actuator-logview. 2 public exploit references exist, so weaponization risk is real. A fix is available for eu.hinsch:spring-boot-actuator-logview — see the affected versions and patch details below.
Directory Traversal in spring-boot-actuator-logview
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-21234 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,386 CVEs with a current EPSS score, this one falls in the 10–50% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
eu.hinsch:spring-boot-actuator-logviewReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | eu.hinsch:spring-boot-actuator-logview | all versions | 0.2.13eu.hinsch:spring-boot-actuator-logview:0.2.13 |
Affected Products
spring-boot-actuator-logviewspring-boot-actuator-logview_projectResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for eu.hinsch:spring-boot-actuator-logview, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update eu.hinsch:spring-boot-actuator-logview to 0.2.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-21234 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
How to detect CVE-2021-21234
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-21234 -u https://target- Template
- Spring Boot Actuator Logview Directory Traversal
- Severity
- high
- Impact
- This vulnerability can lead to unauthorized access to sensitive information stored on the server.
- Remediation
- Apply the latest security patches or upgrade to a patched version of Spring Boot Actuator.
Template by ProjectDiscovery nuclei-templates (gy741, pikpikcu), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2021-21234 in your dependencies?
Find it across Maven, including transitive dependencies.