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
    • 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-45160

CVE-2025-45160: Cacti File Upload XSS Vulnerability

CVE-2025-45160 is an XSS vulnerability in Cacti file upload that allows attackers to inject HTML elements via unsanitized filenames. This post explains its impact, affected versions, and mitigation steps.

Published: January 29, 2026

CVE-2025-45160 Overview

CVE-2025-45160 is an HTML injection vulnerability affecting the file upload functionality in Cacti versions 1.2.29 and earlier. When a file with an invalid format is uploaded, the application reflects the submitted filename back into an error popup without proper sanitization. This allows attackers to inject arbitrary HTML elements such as <h1>, <b>, and <svg> tags into the rendered page, potentially leading to phishing attacks, user interface manipulation, or further exploitation through malicious content injection.

Critical Impact

Authenticated attackers can inject arbitrary HTML content into Cacti's web interface, potentially enabling phishing attacks, UI defacement, or escalation to more severe client-side attacks.

Affected Products

  • Cacti <= 1.2.29

Discovery Timeline

  • 2026-01-29 - CVE CVE-2025-45160 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2025-45160

Vulnerability Analysis

This vulnerability is classified under CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page). The core issue lies in the application's failure to sanitize user-controlled input—specifically, the filename parameter—before rendering it within an error message popup. When a user attempts to upload a file with an invalid format, the application generates an error response that directly includes the uploaded filename without encoding or escaping HTML special characters.

The vulnerability requires network access and low-privileged authentication to exploit. While no public exploits have been confirmed as actively used in the wild, a proof-of-concept demonstrating the injection technique is available through external references.

Root Cause

The root cause stems from improper input validation and output encoding in Cacti's file upload error handling mechanism. When the upload validation fails due to an invalid file format, the error message generator concatenates the user-supplied filename directly into the HTML response without applying proper sanitization functions such as htmlspecialchars() or equivalent encoding routines. This allows HTML metacharacters to be interpreted by the browser as markup rather than being displayed as literal text.

Attack Vector

The attack vector is network-based and requires a low-privileged authenticated user to access the file upload functionality. An attacker crafts a malicious filename containing HTML elements (e.g., malicious<svg onload=alert(1)>.txt) and submits it through the upload form. When the server rejects the file due to format validation failure, it reflects the unescaped filename into the error popup, causing the injected HTML to render in the victim's browser context.

The vulnerability does not directly enable cross-site scripting (XSS) execution of JavaScript in all cases, but SVG elements with event handlers or other HTML-based attack payloads could potentially be leveraged depending on the browser's content security policies and the specific injection context. For detailed technical analysis and proof-of-concept examples, refer to the GitHub Gist PoC.

Detection Methods for CVE-2025-45160

Indicators of Compromise

  • Unusual file upload requests containing HTML tags in the filename parameter
  • Error logs showing filenames with encoded HTML characters or suspicious patterns like <svg>, <script>, <iframe>, or <img> tags
  • Web server access logs showing repeated upload attempts with varying malformed filenames

Detection Strategies

  • Implement web application firewall (WAF) rules to detect HTML metacharacters in filename parameters during upload requests
  • Monitor application logs for file upload failures containing suspicious patterns in filename fields
  • Deploy intrusion detection signatures that flag HTTP requests with URL-encoded or raw HTML tags in upload-related parameters

Monitoring Recommendations

  • Enable verbose logging for file upload operations in Cacti and regularly review for anomalous filename patterns
  • Configure alerting on WAF or IDS rules that detect HTML injection attempts in POST request parameters
  • Audit user activity logs for authenticated users performing repeated file upload failures, which may indicate injection testing

How to Mitigate CVE-2025-45160

Immediate Actions Required

  • Upgrade Cacti to a patched version when available from the official Cacti repository
  • Implement input validation on the server side to reject filenames containing HTML special characters
  • Apply output encoding using functions like htmlspecialchars() with appropriate flags when reflecting any user input in error messages

Patch Information

As of the last update on 2026-01-29, organizations should monitor the Cacti GitHub repository for official security patches addressing this vulnerability. Ensure you are running the latest stable release and review release notes for security-related fixes.

Workarounds

  • Implement a web application firewall (WAF) rule to block or sanitize file upload requests containing HTML metacharacters in filename fields
  • Restrict file upload functionality to only trusted administrative users until a patch is applied
  • Apply custom input sanitization at the web server or reverse proxy level to strip HTML tags from incoming filename parameters
bash
# Example Apache mod_security rule to block HTML in filename parameters
SecRule ARGS:filename "@rx <[^>]+>" "id:1001,phase:2,deny,status:403,msg:'HTML injection attempt in filename blocked'"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCacti

  • SeverityMEDIUM

  • CVSS Score5.4

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-80
  • Technical References
  • GitHub Gist PoC

  • GitHub Cacti Repository
  • Related CVEs
  • CVE-2024-34340: Cacti Authentication Bypass Vulnerability

  • CVE-2024-25641: Cacti Package Import RCE Vulnerability

  • CVE-2025-24367: Cacti Graph Template RCE Vulnerability

  • CVE-2025-22604: Cacti SNMP Parser RCE 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