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
    • 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-2025-25185

CVE-2025-25185: GPT Academic Information Disclosure Flaw

CVE-2025-25185 is an information disclosure vulnerability in GPT Academic that exploits soft link handling to allow attackers to read arbitrary server files. This article covers technical details, affected versions, and mitigation.

Published: April 29, 2026

CVE-2025-25185 Overview

CVE-2025-25185 is a Symlink Attack vulnerability affecting GPT Academic, an interactive interface platform for large language models. In versions 3.91 and earlier, GPT Academic does not properly account for soft links (symbolic links) when handling uploaded archive files. An attacker can craft a malicious file as a soft link pointing to a target file on the server, package this soft link into a tar.gz archive, and upload it. When the server decompresses and accesses the file, the soft link resolves to the target file on the victim server, enabling unauthorized file access.

Critical Impact

This vulnerability allows unauthenticated remote attackers to read arbitrary files on the server, potentially exposing sensitive configuration files, credentials, and application data through symlink traversal in uploaded archives.

Affected Products

  • binary-husky GPT Academic version 3.91 and earlier
  • All installations accepting user-uploaded archive files
  • Self-hosted GPT Academic deployments with file upload functionality enabled

Discovery Timeline

  • 2025-03-03 - CVE-2025-25185 published to NVD
  • 2025-03-07 - Last updated in NVD database

Technical Details for CVE-2025-25185

Vulnerability Analysis

This vulnerability falls under CWE-59 (Improper Link Resolution Before File Access), commonly known as a symlink attack. The root issue lies in how GPT Academic processes uploaded archive files without validating whether contained files are symbolic links pointing outside the intended extraction directory.

When a user uploads a tar.gz or similar archive, the application extracts its contents without checking if any files are symlinks. An attacker can exploit this by creating a symlink pointing to a sensitive file such as /etc/passwd, /etc/shadow, or application configuration files containing database credentials or API keys. Once extracted, accessing the uploaded file through the web interface causes the server to follow the symlink and return the contents of the target file.

The vulnerability is exploitable over the network without authentication, and while it does not allow file modification or denial of service, it provides complete read access to files accessible by the application's process user.

Root Cause

The vulnerability stems from insufficient input validation in the archive extraction functionality within shared_utils/handle_upload.py. The original implementation extracted archive contents directly without:

  1. Checking if file entries are symbolic links
  2. Validating that extracted paths remain within the intended destination directory
  3. Sanitizing path traversal sequences in filenames

Attack Vector

An attacker exploits this vulnerability through the following attack chain:

  1. Create a symbolic link on a local machine pointing to a target file (e.g., ln -s /etc/passwd malicious_link)
  2. Package the symlink into a tar.gz archive that preserves symlink metadata
  3. Upload the malicious archive to the GPT Academic instance
  4. Access the decompressed file through the application interface
  5. The server follows the symlink and returns the target file's contents

The security patch introduced in commit 5dffe8627f681d7006cebcba27def038bb691949 adds proper validation:

python
def safe_extract_rar(file_path, dest_dir):
    import rarfile
    import posixpath
    with rarfile.RarFile(file_path) as rf:
        os.makedirs(dest_dir, exist_ok=True)
        base_path = os.path.abspath(dest_dir)
        for file_info in rf.infolist():
            orig_filename = file_info.filename
            filename = posixpath.normpath(orig_filename).lstrip('/')
            # Path traversal protection
            if '..' in filename or filename.startswith('../'):
                raise Exception(f"Attempted Path Traversal in {orig_filename}")
            # Symlink protection
            if hasattr(file_info, 'is_symlink') and file_info.is_symlink():
                raise Exception(f"Attempted Symlink in {orig_filename}")
            # Construct full target path
            target_path = os.path.join(base_path, filename)
            final_path = os.path.normpath(target_path)
            # Final path validation
            if not final_path.startswith(base_path):
                raise Exception(f"Attempted Path Traversal in {orig_filename}")
        rf.extractall(dest_dir)

Source: GitHub Commit Update

Detection Methods for CVE-2025-25185

Indicators of Compromise

  • Uploaded archive files containing symbolic links in web server upload directories
  • Access logs showing requests for files that resolve to sensitive system paths like /etc/passwd or /etc/shadow
  • Unusual file read patterns from the GPT Academic process accessing files outside the application directory
  • Archive extraction errors or exceptions related to symlink handling in application logs

Detection Strategies

  • Monitor file system access patterns for the GPT Academic process reading files outside its designated directories
  • Implement archive inspection rules to flag uploaded tar.gz, tar, or rar files containing symbolic links
  • Configure web application firewalls to detect and block archive uploads with suspicious symlink entries
  • Review application logs for extraction attempts involving path traversal sequences (../) or symlink resolution

Monitoring Recommendations

  • Enable detailed logging for file upload and extraction operations in GPT Academic
  • Set up alerts for access to sensitive files like /etc/passwd, application configuration files, or credential stores from the web application process
  • Monitor for anomalous data exfiltration patterns where large amounts of system file data are returned in HTTP responses
  • Implement file integrity monitoring on critical system files to detect unauthorized access attempts

How to Mitigate CVE-2025-25185

Immediate Actions Required

  • Update GPT Academic to a version newer than 3.91 that includes the security patch
  • Temporarily disable file upload functionality if immediate patching is not possible
  • Review server logs for any evidence of exploitation attempts involving archive uploads
  • Audit recently uploaded archive files for suspicious symlink entries

Patch Information

The vulnerability has been addressed in commit 5dffe8627f681d7006cebcba27def038bb691949. Organizations should update their GPT Academic installations by pulling the latest code from the official repository. The patch adds explicit symlink detection and path traversal validation to the archive extraction routines. For detailed information, refer to the GitHub Security Advisory.

Workarounds

  • Restrict file upload functionality to authenticated and trusted users only
  • Implement external archive scanning that rejects uploads containing symbolic links before they reach the application
  • Deploy the application in a containerized environment with minimal file system exposure
  • Use operating system-level controls to restrict the GPT Academic process from accessing sensitive system files
bash
# Configuration example - Restrict process file access with AppArmor
# Create /etc/apparmor.d/gpt_academic profile
# Deny access to sensitive system files
deny /etc/shadow r,
deny /etc/passwd r,
deny /root/** r,

# Allow only necessary application paths
/path/to/gpt_academic/** r,
/path/to/upload_dir/** rw,

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechBinary Husky

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.59%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-59
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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