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-64157

CVE-2025-64157: Fortinet FortiOS RCE Vulnerability

CVE-2025-64157 is a remote code execution flaw in Fortinet FortiOS that allows authenticated admins to execute unauthorized code via crafted configurations. This article covers technical details, affected versions, and mitigations.

Published: February 13, 2026

CVE-2025-64157 Overview

CVE-2025-64157 is a use of externally-controlled format string vulnerability affecting Fortinet FortiOS across multiple versions. This vulnerability allows an authenticated administrator to execute unauthorized code or commands through specifically crafted configuration inputs. Format string vulnerabilities occur when user-controlled input is passed directly to formatting functions without proper sanitization, enabling attackers to read or write arbitrary memory locations.

Critical Impact

Authenticated administrators can leverage malicious configuration inputs to achieve arbitrary code execution on affected FortiOS devices, potentially compromising network security infrastructure.

Affected Products

  • Fortinet FortiOS 7.6.0 through 7.6.4
  • Fortinet FortiOS 7.4.0 through 7.4.9
  • Fortinet FortiOS 7.2.0 through 7.2.11
  • Fortinet FortiOS 7.0 all versions

Discovery Timeline

  • 2026-02-10 - CVE-2025-64157 published to NVD
  • 2026-02-12 - Last updated in NVD database

Technical Details for CVE-2025-64157

Vulnerability Analysis

This vulnerability stems from improper handling of format string specifiers in configuration input processing. When an authenticated administrator submits specially crafted configuration data, the system passes user-controlled strings directly to formatting functions (such as printf() family functions) without proper validation. This enables an attacker with administrative privileges to inject format specifiers like %n, %x, or %s that can manipulate program execution flow, read sensitive memory contents, or write to arbitrary memory locations.

The attack requires administrative credentials to access the configuration interface, limiting the initial attack surface. However, in scenarios involving compromised administrator accounts, insider threats, or privilege escalation chains, this vulnerability provides a pathway to execute arbitrary code on the underlying FortiOS system.

Root Cause

The root cause is classified as CWE-134 (Use of Externally-Controlled Format String). The vulnerable code path accepts configuration input from authenticated administrators and processes it through formatting functions without sanitizing or escaping format specifiers. This design flaw allows the format string specifiers embedded in user input to be interpreted as formatting instructions rather than literal string data.

Attack Vector

The attack vector is network-based, requiring the attacker to have authenticated administrator-level access to the FortiOS management interface. The attacker crafts malicious configuration parameters containing format string specifiers and submits them through the administrative interface. The vulnerability does not require user interaction beyond the attacker's own administrative session.

The exploitation chain involves injecting format specifiers into configuration fields that are subsequently processed by vulnerable formatting functions. Using specifiers like %n to write to memory or %x to leak stack contents, an attacker can manipulate program state to achieve code execution. For detailed technical analysis, refer to the Fortinet PSIRT Advisory FG-IR-25-795.

Detection Methods for CVE-2025-64157

Indicators of Compromise

  • Unusual configuration changes containing format string specifiers (%n, %x, %s, %p) in configuration fields
  • Unexpected administrative session activity or configuration modifications from unknown IP addresses
  • System crashes or unexpected behavior following configuration changes
  • Log entries showing malformed configuration attempts or memory access violations

Detection Strategies

  • Monitor administrative configuration changes for patterns containing format string characters and specifiers
  • Implement behavioral analysis on FortiOS management interfaces to detect anomalous configuration submissions
  • Review authentication logs for signs of compromised administrator accounts or unusual access patterns
  • Deploy network traffic analysis to identify exploitation attempts targeting management interfaces

Monitoring Recommendations

  • Enable comprehensive logging for all administrative actions and configuration changes on FortiOS devices
  • Configure alerts for configuration modifications containing suspicious character sequences
  • Monitor system stability metrics that may indicate memory corruption from exploitation attempts
  • Implement session monitoring to track administrative access duration and activity patterns

How to Mitigate CVE-2025-64157

Immediate Actions Required

  • Upgrade FortiOS to a patched version as specified in the Fortinet security advisory
  • Audit and restrict administrative account access to trusted personnel only
  • Review recent configuration changes for signs of exploitation attempts
  • Isolate management interfaces from untrusted network segments

Patch Information

Fortinet has released security updates to address this vulnerability. Administrators should consult the Fortinet PSIRT Advisory FG-IR-25-795 for specific patched versions and upgrade instructions. Prioritize patching based on the network criticality of affected FortiOS devices.

Workarounds

  • Restrict administrative interface access to trusted IP addresses using access control lists
  • Implement multi-factor authentication for all administrative accounts
  • Segment management networks to limit exposure of administrative interfaces
  • Conduct regular audits of administrator account permissions and remove unnecessary access
bash
# Example: Restrict admin access to trusted management network
config system admin
    edit "admin"
        set trusthost1 10.10.10.0 255.255.255.0
    next
end

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFortinet Fortios

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-134
  • Vendor Resources
  • Fortinet PSIRT Advisory FG-IR-25-795
  • Related CVEs
  • CVE-2023-40721: Fortinet FortiOS RCE Vulnerability

  • CVE-2024-23113: Fortinet FortiProxy RCE Vulnerability

  • CVE-2022-42475: Fortinet FortiOS SSL-VPN RCE Vulnerability

  • CVE-2021-42757: Fortinet FortiADC 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