The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-21234

CVE-2021-21234: Spring Boot Actuator Path Traversal Flaw

CVE-2021-21234 is a path traversal vulnerability in Spring-boot-actuator-logview that allows attackers to access files outside the logging directory. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-21234 Overview

CVE-2021-21234 is a directory traversal vulnerability affecting spring-boot-actuator-logview, a library that adds a simple logfile viewer as a Spring Boot actuator endpoint (maven package eu.hinsch:spring-boot-actuator-logview). The vulnerability exists in versions prior to 0.2.13 and allows authenticated attackers to access files outside the intended logging directory through improper validation of the base parameter.

The library exposes a log file directory via admin (Spring Boot actuator) HTTP endpoints, where both the filename and a base folder (relative to the logging folder root) can be specified via request parameters. While the filename parameter was properly validated to prevent directory traversal exploits (so that filename=../somefile would not work), the base folder parameter lacked sufficient validation. This oversight allows attackers to craft requests such as filename=somefile&base=../ to access files outside the logging base directory.

Critical Impact

Authenticated attackers can read sensitive files outside the designated logging directory, potentially exposing configuration files, credentials, source code, and other confidential data accessible by the application's runtime user.

Affected Products

  • spring-boot-actuator-logview versions prior to 0.2.13
  • Maven package eu.hinsch:spring-boot-actuator-logview
  • Spring Boot applications using the affected logview actuator endpoint

Discovery Timeline

  • January 5, 2021 - CVE-2021-21234 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-21234

Vulnerability Analysis

This directory traversal vulnerability (CWE-22) occurs due to insufficient input validation of the base request parameter in the logview endpoint. The vulnerability allows network-based exploitation by authenticated users, requiring no user interaction. The scope of the vulnerability is changed, meaning a successful exploit can affect resources beyond the vulnerable component's security scope, enabling high-impact confidentiality breaches through unauthorized file access.

The library's design allows administrators to view log files through HTTP endpoints. The endpoint accepts two key parameters: filename to specify which log file to view, and base to specify a subdirectory within the logging root. The developers implemented path traversal protection for the filename parameter but overlooked applying the same security controls to the base parameter.

Root Cause

The root cause of this vulnerability lies in inconsistent input validation between the filename and base parameters. The securityCheck() function was called with only the base parameter before resolving the full path, which did not properly validate whether the resulting path would escape the logging directory boundaries. The fix changes the order of operations to first resolve the currentFolder path using loggingPath(base) and then pass the resolved path to the securityCheck() function for proper validation.

Attack Vector

The attack vector is network-based, requiring the attacker to have low-privilege authenticated access to the Spring Boot actuator endpoints. An attacker can manipulate the base parameter in HTTP requests to traverse directories and access arbitrary files readable by the application's runtime user. For example, a malicious request could use base=../../../etc combined with a valid filename to read system configuration files or base=../../../home/user/.ssh to access SSH keys.

java
// Vulnerable code pattern (before fix)
// Security check was performed on 'base' parameter before path resolution
securityCheck(base);
Path currentFolder = loggingPath(base);

// Fixed code pattern (after patch)
// Path is resolved first, then security check validates the full path
Path currentFolder = loggingPath(base);
securityCheck(currentFolder, null);

Source: GitHub Commit

Detection Methods for CVE-2021-21234

Indicators of Compromise

  • HTTP requests to actuator logview endpoints containing ../ sequences in the base parameter
  • Access logs showing repeated requests to /actuator/logview with varying directory traversal patterns
  • Unusual file access patterns from the Java application process outside the logging directory
  • Error logs indicating file access attempts to restricted directories

Detection Strategies

  • Monitor web application logs for requests containing path traversal sequences (../, ..%2F, %2e%2e/) in query parameters
  • Implement Web Application Firewall (WAF) rules to detect and block directory traversal attempts
  • Configure intrusion detection systems to alert on anomalous file access patterns from the application server
  • Audit Maven dependencies using software composition analysis tools to identify vulnerable versions of eu.hinsch:spring-boot-actuator-logview

Monitoring Recommendations

  • Enable detailed access logging for all Spring Boot actuator endpoints
  • Implement file integrity monitoring on sensitive configuration files and directories
  • Set up alerts for HTTP requests to actuator endpoints containing encoded or plain directory traversal characters
  • Monitor application process file access using endpoint detection and response (EDR) solutions

How to Mitigate CVE-2021-21234

Immediate Actions Required

  • Update spring-boot-actuator-logview to version 0.2.13 or later immediately
  • Review access logs for evidence of exploitation attempts using directory traversal patterns
  • Restrict file system read permissions for the application runtime user to only essential directories
  • Implement network-level access controls to limit actuator endpoint exposure

Patch Information

The vulnerability has been patched in release 0.2.13. Users of version 0.2.12 should be able to update without issues as there are no other breaking changes in that release. The fix modifies the LogViewEndpoint.java file to properly validate the resolved path rather than the raw base parameter. The security patches are available in the following commits:

  • Primary fix commit
  • Backport fix commit

For more information, see the GitHub Security Advisory and the Maven Artifact Repository.

Workarounds

  • Remove read access of the application runtime user to any directory not required for running the application to limit potential impact
  • Deploy the application behind a reverse proxy and restrict access to the logview actuator endpoint to trusted networks only
  • Disable or remove the logview actuator endpoint if not actively required for operations
  • Implement additional WAF rules to block requests with directory traversal patterns targeting actuator endpoints
bash
# Example: Restrict file permissions for application user
# Limit the application user's read access to essential directories only
chmod 750 /var/log/application
chown appuser:appgroup /var/log/application

# Example nginx reverse proxy configuration to restrict actuator access
# Add to server block to limit actuator endpoints to internal networks
location /actuator/ {
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
    proxy_pass http://backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechSpring Boot

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability93.85%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory

  • Maven Artifact Repository
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update
  • Related CVEs
  • CVE-2024-38807: Spring Boot Loader Auth Bypass Vulnerability

  • CVE-2023-34055: VMware Spring Boot DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English