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

CVE-2025-48157: Formality Plugin LFI Vulnerability

CVE-2025-48157 is a PHP local file inclusion flaw in the Formality plugin by Michele Giorgi that allows attackers to include malicious files. This article covers technical details, affected versions up to 1.5.9, and mitigation.

Published: May 4, 2026

CVE-2025-48157 Overview

CVE-2025-48157 is a Local File Inclusion (LFI) vulnerability affecting the Michele Giorgi Formality plugin for WordPress. The flaw stems from improper control of filename arguments passed to PHP include or require statements [CWE-98]. Attackers can leverage the issue to load arbitrary local PHP files within the web server context, potentially exposing sensitive configuration data or executing attacker-controlled code paths. The vulnerability affects all Formality versions from initial release through 1.5.9. Although the attack is network-reachable and requires no authentication, exploitation complexity is rated high, indicating that specific conditions must be met for successful inclusion.

Critical Impact

Unauthenticated attackers can include local PHP files, leading to information disclosure and potential remote code execution when chained with file upload primitives.

Affected Products

  • Michele Giorgi Formality WordPress plugin versions through 1.5.9
  • WordPress installations running the Formality form builder
  • Sites with the plugin active and exposed to network traffic

Discovery Timeline

  • 2025-08-20 - CVE-2025-48157 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2025-48157

Vulnerability Analysis

The vulnerability resides in how the Formality plugin handles filename input passed to PHP file inclusion functions such as include, include_once, require, or require_once. User-controlled input reaches these statements without sufficient sanitization or allowlist validation. As a result, an attacker can manipulate the filename parameter to reference unintended files on the local filesystem.

When exploited, the PHP interpreter loads and executes the targeted file in the context of the web server process. This allows disclosure of sensitive WordPress files such as wp-config.php contents through error states, log poisoning, or session-based inclusion chains. The flaw is classified under [CWE-98], the standard weakness category for PHP File Inclusion.

Root Cause

The root cause is missing or insufficient validation of filename input before it is concatenated into a PHP inclusion call. The plugin trusts request-supplied parameters when constructing the path used in include or require operations, violating the principle that inclusion targets must be drawn from a strict allowlist.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker sends a crafted HTTP request to a vulnerable Formality endpoint, supplying a filename parameter that resolves to a local PHP file. Successful exploitation depends on environmental conditions such as PHP configuration directives (allow_url_include, open_basedir) and the availability of includable files containing attacker-influenced content.

The vulnerability is described in the Patchstack WordPress Vulnerability Advisory.

Detection Methods for CVE-2025-48157

Indicators of Compromise

  • HTTP requests to Formality plugin endpoints containing path traversal sequences such as ../ or encoded variants like %2e%2e%2f
  • Web server access logs showing unusual filename parameters referencing system paths like /etc/passwd, wp-config.php, or PHP session files
  • PHP error logs reporting failed include or require calls originating from Formality plugin files

Detection Strategies

  • Inspect WordPress request logs for requests targeting Formality endpoints with suspicious file path parameters
  • Deploy web application firewall (WAF) rules that flag LFI patterns including null byte injection and double URL-encoded traversal sequences
  • Correlate plugin parameter values with PHP include warnings to identify exploitation attempts in real time

Monitoring Recommendations

  • Enable verbose PHP error logging and forward logs to a centralized SIEM for analysis
  • Monitor for anomalous reads of sensitive files such as wp-config.php, log files, and session storage directories
  • Track outbound connections from the WordPress host that may indicate post-exploitation activity following successful inclusion

How to Mitigate CVE-2025-48157

Immediate Actions Required

  • Identify all WordPress installations running the Formality plugin and inventory versions in use
  • Disable or remove the Formality plugin on sites where an updated version is not yet available
  • Restrict access to WordPress administration and form submission endpoints behind a WAF until patching is complete

Patch Information

No fixed version is identified in the available advisory data. Site operators should consult the Patchstack WordPress Vulnerability Advisory for the latest remediation guidance and apply any vendor-released update above version 1.5.9 once published.

Workarounds

  • Set the PHP directive allow_url_include=Off and configure open_basedir to confine file access to the WordPress directory tree
  • Apply WAF signatures that block path traversal patterns and known LFI payloads targeting WordPress plugins
  • Run the PHP-FPM worker under a least-privilege account that cannot read sensitive system files outside the web root
bash
# Example php.ini hardening
allow_url_include = Off
allow_url_fopen = Off
open_basedir = "/var/www/html:/tmp"
disable_functions = "exec,passthru,shell_exec,system,proc_open,popen"

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechFormality

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-98
  • Technical References
  • Patchstack WordPress Vulnerability Advisory
  • Related CVEs
  • CVE-2025-24690: Formality Plugin LFI 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