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-2022-31514

CVE-2022-31514: Fan Platform Path Traversal Vulnerability

CVE-2022-31514 is a path traversal vulnerability in Fan Platform caused by unsafe use of Flask send_file function. This security flaw allows absolute path traversal attacks. This article covers technical details, impact, and mitigation.

Published: February 17, 2026

CVE-2022-31514 Overview

CVE-2022-31514 is a critical path traversal vulnerability affecting the Caoyongqi912/Fan_Platform repository. The vulnerability exists due to unsafe usage of the Flask send_file function, which allows attackers to perform absolute path traversal attacks. This flaw enables remote, unauthenticated attackers to read arbitrary files from the server's file system by manipulating file path parameters.

Critical Impact

Remote attackers can exploit this vulnerability to read sensitive files from the server without authentication, potentially exposing configuration files, credentials, source code, and other confidential data.

Affected Products

  • Fan_platform_project Fan Platform (through 2021-04-20)

Discovery Timeline

  • 2022-07-11 - CVE CVE-2022-31514 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-31514

Vulnerability Analysis

This path traversal vulnerability (CWE-22) stems from improper handling of user-supplied file paths in the Flask web application. The send_file function, when used without proper input validation, allows attackers to break out of the intended directory structure and access files anywhere on the file system that the web server process has permission to read.

The vulnerability is particularly dangerous because it can be exploited remotely over the network without requiring any authentication or user interaction. An attacker with network access to the vulnerable application can craft malicious requests containing directory traversal sequences to navigate outside the web root and retrieve sensitive system files.

Root Cause

The root cause of this vulnerability is the unsafe use of Flask's send_file function without proper validation or sanitization of user-controlled input. When file path parameters are passed directly to send_file without checking for traversal sequences (such as ../ or absolute paths), the application will serve any file the server process can access. Flask's send_file function does not inherently restrict file access to a specific directory, making proper input validation critical for secure implementation.

Attack Vector

The attack vector is network-based, requiring no authentication or privileges. An attacker can exploit this vulnerability by sending HTTP requests with manipulated file path parameters containing absolute paths or directory traversal sequences. For example, an attacker might craft a request that includes /../../../etc/passwd to escape the intended directory and access the system's password file.

The vulnerability allows attackers to:

  • Read sensitive configuration files containing database credentials or API keys
  • Access application source code to discover additional vulnerabilities
  • Retrieve system files to enumerate the server environment
  • Potentially access private keys or certificates stored on the file system

For technical details on this vulnerability class, see the GitHub Security Lab discussion.

Detection Methods for CVE-2022-31514

Indicators of Compromise

  • HTTP request logs containing path traversal sequences such as ../, ..%2f, or %2e%2e/ in file-related parameters
  • Requests attempting to access sensitive system files like /etc/passwd, /etc/shadow, or Windows system files
  • Unusual access patterns to the Flask application's file download endpoints
  • Server responses returning content from outside the expected web directory

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal patterns in request parameters
  • Deploy intrusion detection systems (IDS) with signatures for directory traversal attacks
  • Monitor application logs for requests containing encoded or decoded traversal sequences
  • Use runtime application self-protection (RASP) solutions to detect file access outside expected directories

Monitoring Recommendations

  • Enable verbose logging for all file access operations in the Flask application
  • Set up alerts for access attempts to sensitive file paths from web application processes
  • Monitor for anomalous file read operations by the web server user account
  • Implement file integrity monitoring on critical system and configuration files

How to Mitigate CVE-2022-31514

Immediate Actions Required

  • Update the Fan_Platform application to a version that properly validates file paths if a patched version is available
  • Implement network-level access controls to restrict access to the vulnerable application
  • Deploy a web application firewall with rules to block path traversal attempts
  • Review and restrict file system permissions for the web server process

Patch Information

As of the last available information, no official patch has been released for this vulnerability. The affected repository (Caoyongqi912/Fan_Platform through 2021-04-20 on GitHub) should be reviewed for any updates. Organizations using this software should consider implementing manual code fixes or migrating to alternative solutions.

For additional context, refer to the GitHub Security Lab discussion.

Workarounds

  • Use Flask's safe_join function from werkzeug.utils to safely construct file paths before passing to send_file
  • Implement strict input validation to reject any paths containing traversal sequences or absolute paths
  • Configure the application to serve files only from a designated directory using send_from_directory instead of send_file
  • Apply the principle of least privilege to the web server process to minimize the impact of successful exploitation
python
# Secure file serving example using Flask
from flask import Flask, abort
from werkzeug.utils import safe_join, send_from_directory
import os

app = Flask(__name__)
UPLOAD_FOLDER = '/var/www/app/uploads'

@app.route('/download/<filename>')
def secure_download(filename):
    # Use safe_join to prevent path traversal
    safe_path = safe_join(UPLOAD_FOLDER, filename)
    if safe_path is None or not os.path.isfile(safe_path):
        abort(404)
    return send_from_directory(UPLOAD_FOLDER, filename)

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechFan Platform

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.43%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Lab Comment
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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