{"id":"CVE-2021-21234","published":"2021-01-05T17:30:15Z","modified":"2024-08-03T18:09:14Z","title":"Directory Traversal","vendor":"lukashinsch","product":"spring-boot-actuator-logview","tier":"core","eol":null,"affectedVersions":[{"vendor":"lukashinsch","product":"spring-boot-actuator-logview","versions":["< 0.2.13"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The spring-boot-actuator-logview library (Maven package eu.hinsch:spring-boot-actuator-logview) contains a directory traversal flaw in its log viewer actuator endpoint: the filename parameter is checked against traversal, but the base folder parameter is not, so the base folder can be used to reach files outside the logging directory. An attacker who can send requests to the logview endpoint and has valid authentication to it can read arbitrary files the application's user can access, by supplying a traversal sequence such as ../ in the base parameter.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:19:14Z"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.21173,"percentile":0.98115,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2023-11-16","exploitedFirstSeen":"2023-11-16","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2021-21234","date":"2023-11-16"},{"url":"https://go.catonetworks.com/rs/245-RJK-441/images/CATO_CTRL_Report_Q3_2024.pdf","date":"2024-11-20"},{"url":"https://app.crowdsec.net/cti/cve-explorer/CVE-2021-21234","date":"2025-06-07"}],"evidenceTotal":3,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/lukashinsch/spring-boot-actuator-logview/security/advisories/GHSA-p4q6-qxjx-8jgp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lukashinsch/spring-boot-actuator-logview/commit/1c76e1ec3588c9f39e1a94bf27b5ff56eb8b17d6","tags":["x_refsource_MISC"]},{"url":"https://github.com/lukashinsch/spring-boot-actuator-logview/commit/760acbb939a8d1f7d1a7dfcd51ca848eea04e772","tags":["x_refsource_MISC"]},{"url":"https://search.maven.org/artifact/eu.hinsch/spring-boot-actuator-logview","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"eu.hinsch:spring-boot-actuator-logview","vulnerableRanges":["<0.2.13"],"patched":["0.2.13"],"from":["GHSA-p4q6-qxjx-8jgp"],"provenance":"source"}],"advisories":[{"id":"GHSA-p4q6-qxjx-8jgp","url":"https://github.com/advisories/GHSA-p4q6-qxjx-8jgp","severity":"HIGH","ecosystem":"Maven","package":"eu.hinsch:spring-boot-actuator-logview","vulnerableRanges":["<0.2.13"],"patched":["0.2.13"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2021-0509","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-0509","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2021-06-08","earliestUrl":"https://github.com/PwCNO-CTO/CVE-2021-21234","repos":[{"name":"xiaojiangxl/CVE-2021-21234","url":"https://github.com/xiaojiangxl/CVE-2021-21234","stars":5,"created":"2021-10-19"},{"name":"PwCNO-CTO/CVE-2021-21234","url":"https://github.com/PwCNO-CTO/CVE-2021-21234","stars":1,"created":"2021-06-08"}]},"nuclei":[{"id":"CVE-2021-21234","name":"Spring Boot Actuator Logview Directory Traversal","severity":"high","path":"http/cves/2021/CVE-2021-21234.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-21234.yaml"}],"first":{"date":"2021-06-08","source":"PoC-in-GitHub","url":"https://github.com/PwCNO-CTO/CVE-2021-21234"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2021-01-05","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-21234","provenance":"source"},{"date":"2021-06-08","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/PwCNO-CTO/CVE-2021-21234","provenance":"source"},{"date":"2023-11-16","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2021-21234","provenance":"source"}],"speed":{"daysToPublicExploit":154,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":65.0,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1105 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.62,"detail":"percentile 0.9811"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":5.39,"detail":"base score 7.7"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}