Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-45339

CVE-2024-45339: glog Privilege Escalation Vulnerability

CVE-2024-45339 is a privilege escalation flaw in glog that allows unprivileged attackers to overwrite sensitive files via symlink attacks. This article covers technical details, affected versions, and mitigation steps.

Updated: January 22, 2026

CVE-2024-45339 Overview

CVE-2024-45339 is a symlink attack vulnerability affecting the Go glog logging library. When logs are written to a widely-writable directory (the default configuration), an unprivileged attacker may predict a privileged process's log file path and pre-create a symbolic link to a sensitive file in its place. When that privileged process runs, it will follow the planted symlink and overwrite that sensitive file, potentially leading to arbitrary file overwrites with elevated privileges.

Critical Impact

Unprivileged attackers can leverage predictable log file paths to overwrite sensitive system files through symlink exploitation, potentially compromising system integrity or escalating privileges.

Affected Products

  • glog (Go logging library) - versions prior to the security fix
  • Applications using glog with default log directory configurations
  • Debian Linux systems (addressed in LTS security announcement)

Discovery Timeline

  • 2025-01-28 - CVE CVE-2024-45339 published to NVD
  • 2025-02-17 - Last updated in NVD database

Technical Details for CVE-2024-45339

Vulnerability Analysis

This vulnerability represents a classic Time-of-Check to Time-of-Use (TOCTOU) race condition combined with insecure temporary file handling. The glog library's default behavior writes log files to widely-writable directories without verifying the integrity of the target file path. This design flaw enables attackers to exploit the predictable nature of log file naming conventions.

The attack exploits a fundamental trust assumption in the logging process: that the log file path points to a legitimate location rather than a symbolic link. When a privileged process (running as root or with elevated capabilities) initializes logging through glog, it attempts to create or open a log file at a predetermined path. An attacker who can anticipate this path can race to create a symbolic link pointing to a sensitive file such as /etc/passwd, /etc/shadow, or critical application configuration files.

The impact includes unauthorized file overwrites leading to potential denial of service, privilege escalation, or system compromise. The local attack vector requires the attacker to have local access to the system but only unprivileged access is needed to exploit this vulnerability.

Root Cause

The root cause lies in glog's insufficient validation of log file paths before writing. The library did not check whether the target log file already exists or whether it is a symbolic link pointing elsewhere. This oversight in the file creation logic allows attackers to plant malicious symlinks that redirect privileged write operations to arbitrary files on the filesystem.

The fix implemented in the glog library now causes the program to exit with status code 2 when it detects that the configured log file already exists, preventing the symlink attack from succeeding.

Attack Vector

The attack requires local access to the system where a vulnerable glog-using application runs with elevated privileges. The attacker follows this exploitation flow:

  1. The attacker identifies an application using glog that runs with elevated privileges
  2. The attacker determines the predictable log file path by analyzing the application's logging configuration or default glog behavior
  3. Before the privileged process starts, the attacker creates a symbolic link at the expected log file path pointing to a sensitive target file (e.g., /etc/passwd)
  4. When the privileged application initializes and attempts to write logs, it follows the symlink and overwrites the target sensitive file
  5. The attacker achieves arbitrary file overwrite with the privileges of the target application

This attack pattern is documented in the OWASP Temporary File Vulnerability guide and represents a well-known class of vulnerabilities in applications that handle temporary or log files in shared directories.

Detection Methods for CVE-2024-45339

Indicators of Compromise

  • Unexpected symbolic links in log directories pointing to sensitive system files
  • Unexplained modifications to critical configuration files like /etc/passwd or /etc/shadow
  • Applications using glog terminating unexpectedly with exit code 2 (after patching)
  • Audit logs showing symlink creation in common log directories by unprivileged users

Detection Strategies

  • Monitor log directories for symlink creation events using file integrity monitoring tools
  • Implement auditd rules to track symbolic link creation in /tmp, /var/log, and other commonly used log directories
  • Review application startup failures for exit code 2, which may indicate the patched glog detecting a pre-existing file attack attempt
  • Scan for glog library versions in your application dependencies to identify vulnerable deployments

Monitoring Recommendations

  • Deploy file integrity monitoring (FIM) on sensitive system files that could be targeted for overwrite
  • Configure SentinelOne endpoint protection to detect and alert on suspicious symlink creation patterns
  • Enable detailed audit logging for privileged process activity and file operations in shared directories
  • Monitor for applications that unexpectedly crash or exit during logging initialization

How to Mitigate CVE-2024-45339

Immediate Actions Required

  • Update glog library to the patched version containing the security fix from GitHub Pull Request #74
  • Audit applications to identify those using glog and prioritize updates for privileged services
  • Review log directory permissions and restrict write access where possible
  • Configure applications to use dedicated log directories with restricted permissions rather than widely-writable locations

Patch Information

The vulnerability has been addressed in the glog library through a fix that causes the program to exit with status code 2 when it detects that the configured log file already exists. This defensive measure prevents the symlink attack from succeeding.

For detailed patch information, refer to:

  • GitHub Pull Request #74 - Main security fix
  • GitHub Pull Request Commit - Specific commit containing the fix
  • Go.dev Vulnerability Report GO-2025-3372 - Official Go vulnerability database entry
  • Debian LTS Security Announcement - Debian-specific patch information

Workarounds

  • Configure glog to write to a dedicated directory with restrictive permissions (e.g., mode 0750) owned by the application user
  • Mount log directories with the nosymfollow option where supported to prevent symlink following
  • Use systemd's ProtectSystem and PrivateTmp directives for services using glog to isolate log directories
  • Implement pre-execution checks in application startup scripts to verify log directory integrity before launching privileged processes
bash
# Configuration example - Secure log directory setup
# Create dedicated log directory with restrictive permissions
mkdir -p /var/log/myapp
chown myapp:myapp /var/log/myapp
chmod 0750 /var/log/myapp

# Verify no symlinks exist before starting application
find /var/log/myapp -type l -exec rm {} \;

# Start application with explicit log directory
./myapp --log_dir=/var/log/myapp

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechGlog

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • GitHub Pull Request #74

  • GitHub Pull Request Commit

  • GoLang Announce Update

  • OWASP Temporary File Vulnerability

  • Go.dev Vulnerability Report GO-2025-3372

  • Debian LTS Security Announcement
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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