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-2019-25647

CVE-2019-25647: PhreeBooks ERP RCE Vulnerability

CVE-2019-25647 is a remote code execution vulnerability in PhreeBooks ERP 5.2.3 that allows authenticated attackers to upload and execute malicious PHP files. This article covers technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2019-25647 Overview

PhreeBooks ERP 5.2.3 contains a remote code execution vulnerability in the image manager component that allows authenticated attackers to upload and execute arbitrary PHP files by bypassing file extension controls. This vulnerability enables attackers to upload malicious PHP files through the image manager endpoint and execute them to establish reverse shell connections and execute system commands on the underlying server.

Critical Impact

Authenticated attackers can achieve remote code execution by uploading malicious PHP files through the image manager, potentially leading to complete server compromise, data exfiltration, and lateral movement within the network.

Affected Products

  • PhreeSoft PhreeBooks ERP version 5.2.3
  • PhreeSoft PhreeBooks ERP deployments with image manager functionality enabled
  • Web servers hosting vulnerable PhreeBooks ERP installations

Discovery Timeline

  • 2026-03-24 - CVE CVE-2019-25647 published to NVD
  • 2026-03-25 - Last updated in NVD database

Technical Details for CVE-2019-25647

Vulnerability Analysis

This vulnerability is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type). The image manager component in PhreeBooks ERP 5.2.3 fails to properly validate and restrict file uploads, allowing authenticated users to bypass file extension controls. This insufficient validation enables attackers to upload files with executable PHP extensions rather than being limited to safe image formats.

Once a malicious PHP file is uploaded to the web server, an attacker can directly access the uploaded file through its web-accessible path to trigger code execution. This can result in the execution of arbitrary system commands, establishment of reverse shell connections, access to sensitive configuration files and database credentials, and complete compromise of the underlying server infrastructure.

Root Cause

The root cause of this vulnerability lies in inadequate server-side validation of uploaded files within the image manager functionality. The application relies on insufficient file extension filtering that can be bypassed, failing to implement proper content-type validation, file header verification, or secure file storage practices that would prevent execution of uploaded content.

Attack Vector

The attack is network-based and requires authentication to the PhreeBooks ERP application. An attacker with valid credentials can exploit the image manager upload functionality by crafting a malicious PHP file designed to appear as an image file or by manipulating the request to bypass extension filters. The malicious file is then uploaded to a web-accessible directory, and the attacker can trigger execution by accessing the uploaded file's URL directly.

The exploitation process involves preparing a PHP payload containing malicious code (such as a web shell or reverse shell connector), uploading this payload through the image manager interface while bypassing file extension restrictions, and then accessing the uploaded file via HTTP to execute the embedded PHP code. Successful exploitation grants the attacker the ability to execute arbitrary commands with the privileges of the web server process.

Detection Methods for CVE-2019-25647

Indicators of Compromise

  • Unexpected PHP files appearing in image upload directories or web-accessible storage paths
  • Web server access logs showing requests to unusual PHP files in image/upload directories
  • Outbound network connections from the web server to unknown external IP addresses
  • Unusual process execution patterns from the web server process (e.g., www-data or apache spawning shell commands)

Detection Strategies

  • Monitor file creation events in PhreeBooks ERP upload directories for files with executable extensions (.php, .phtml, .phar)
  • Implement web application firewall (WAF) rules to detect and block file upload attempts containing PHP code patterns
  • Review web server access logs for requests to PHP files in unexpected directories, particularly image or upload paths
  • Deploy endpoint detection and response (EDR) solutions to identify post-exploitation behavior such as reverse shell establishment

Monitoring Recommendations

  • Enable detailed logging for the image manager component and file upload functionality within PhreeBooks ERP
  • Configure file integrity monitoring (FIM) on web application directories to alert on unauthorized file creation
  • Monitor network traffic for suspicious outbound connections originating from the web server
  • Implement regular scanning of upload directories to identify potentially malicious files

How to Mitigate CVE-2019-25647

Immediate Actions Required

  • Upgrade PhreeBooks ERP to a patched version that addresses this vulnerability if available
  • Restrict access to the image manager functionality to only trusted administrative users
  • Implement web server configuration to prevent execution of PHP files in upload directories
  • Review recent file uploads and remove any suspicious or unauthorized files from the server

Patch Information

Organizations should consult the PhreeSoft Official Website and the SourceForge Project Page for information regarding security updates and patched versions. Additional technical details regarding this vulnerability can be found in the VulnCheck PhreeBooks RCE Advisory and Exploit-DB #46645.

Workarounds

  • Configure the web server to disable PHP execution in upload directories using .htaccess rules or equivalent server configuration
  • Implement additional file upload validation at the server or application level to verify file content matches expected image formats
  • Use network segmentation to limit the blast radius if the web server is compromised
  • Consider placing the PhreeBooks ERP application behind a reverse proxy with strict upload filtering capabilities
bash
# Apache configuration to disable PHP execution in upload directories
<Directory "/path/to/phreebooks/uploads">
    php_admin_flag engine off
    <FilesMatch "\.php$">
        Require all denied
    </FilesMatch>
</Directory>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPhreesoft Phreebookserp

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • SourceForge Project Page

  • Exploit-DB #46645

  • PhreeSoft Official Website

  • VulnCheck PhreeBooks RCE Advisory
  • Related CVEs
  • CVE-2019-25630: Phreesoft PhreeBooks ERP 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