CVE-2021-21234
Exploitation confirmed. First attested on 2023-10-14 by GCVE · kevintel, GCVE · shadowserver.
- Published2021-01-05
- Fixed in0.2.13
- WeaknessCWE-22
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-01-0518:15CVE publishedNVD
- 2023-10-1414:56Listed as exploited by GCVEGCVE
- 2023-10-1414:56Exploitation first reportedGCVE
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-21234?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-21234?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.2 | < 0.2.13 | 0.2.13 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.2 | ≤ 0.2.12 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Fix
- Update spring-boot-actuator-logview to 0.2.13
Advisories and patches
- github.comPatch
- github.comPatch
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 2 repositories, unverifiedPwCNO-CTO/CVE-2021-21234xiaojiangxl/CVE-2021-21234 PoC-in-GitHub
- Metasploit modules
- none listed Metasploit Framework
Sources
- GCVEexploitation2023-10-14
- CNACVSS 3.17.7known since 2026-10-23
- NVDCVSS 3.17.7read 2026-10-23
- NVDCVSS 2.04read 2026-10-23
- CNAweakness (CWE)CWE-22known since 2026-10-23
- FIRST EPSSEPSS score21.0 %read 2026-11-03
- PoC-in-GitHubproof of concept2read 2026-11-03
- ProjectDiscoverydetectionread 2026-11-03
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2021-01-05
Identifiers
- EUVD-2021-0509same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-p4q6-qxjx-8jgpsame flawGitHub Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Published
- 2021-01-05
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-p4q6-qxjx-8jgp
Frequently asked questions
What is CVE-2021-21234?
Is CVE-2021-21234 actively exploited?
What is the CVSS score for CVE-2021-21234?
Running spring-boot-actuator-logview? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-p4q6-qxjx-8jgp
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0