Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-58450

CVE-2025-58450: pREST PostgreSQL REST SQLi Vulnerability

CVE-2025-58450 is a SQL injection flaw in pREST PostgreSQL REST API that allows attackers to execute malicious database queries. This article covers the technical details, affected versions, and mitigation steps.

Published: April 1, 2026

CVE-2025-58450 Overview

CVE-2025-58450 is a critical SQL Injection vulnerability affecting pREST (PostgreSQL REST), an API that delivers an application on top of a PostgreSQL database. The vulnerability exists in versions prior to 2.0.0-rc3 where input validation mechanisms fail to provide adequate protection against SQL injection attempts. This flaw allows unauthenticated remote attackers to inject malicious SQL commands through the API, potentially leading to unauthorized data access, data manipulation, or complete database compromise.

Critical Impact

Unauthenticated attackers can exploit inadequate input validation to execute arbitrary SQL commands against the underlying PostgreSQL database, potentially resulting in complete data breach, data manipulation, or database destruction.

Affected Products

  • pREST (PostgreSQL REST) versions prior to 2.0.0-rc3

Discovery Timeline

  • 2025-09-08 - CVE-2025-58450 published to NVD
  • 2025-09-09 - Last updated in NVD database

Technical Details for CVE-2025-58450

Vulnerability Analysis

This vulnerability is classified as CWE-89 (SQL Injection), a prevalent and dangerous web application vulnerability. The pREST API, designed to provide RESTful access to PostgreSQL databases, contains flawed input validation logic that fails to properly sanitize user-supplied input before incorporating it into SQL queries.

The core issue lies in the validation routines implemented in versions before 2.0.0-rc3. While some form of input validation exists, it does not adequately protect against crafted injection payloads. Attackers can bypass these insufficient controls by submitting specially crafted requests containing SQL metacharacters or injection sequences that the validation fails to detect or neutralize.

Since pREST operates as a direct interface to PostgreSQL databases, successful exploitation grants attackers the ability to execute arbitrary SQL commands with the privileges of the database user configured for the pREST application. This can lead to extraction of sensitive data, modification or deletion of database records, and potentially execution of database administrative functions.

Root Cause

The root cause of CVE-2025-58450 is inadequate input validation in the pREST API layer. The validation mechanisms present in affected versions fail to properly sanitize or parameterize user input before constructing SQL queries. This oversight allows SQL metacharacters and injection payloads to pass through validation checks and reach the database query execution layer, where they are interpreted as executable SQL commands rather than data values.

Attack Vector

The vulnerability is exploitable over the network without authentication or user interaction. An attacker can craft malicious HTTP requests to pREST API endpoints, embedding SQL injection payloads within request parameters, headers, or body content. The insufficient validation allows these payloads to be incorporated into database queries, enabling the attacker to:

  • Extract sensitive data from the database through UNION-based or blind SQL injection techniques
  • Modify or delete existing database records
  • Create new administrative accounts or escalate privileges within the database
  • Potentially execute operating system commands if the database is configured with extended stored procedures

The attack can be performed remotely from any network location that can reach the pREST API endpoint, making internet-facing deployments particularly vulnerable.

Detection Methods for CVE-2025-58450

Indicators of Compromise

  • Unusual or malformed API requests containing SQL keywords such as UNION, SELECT, INSERT, UPDATE, DELETE, or DROP in unexpected parameters
  • Database query logs showing suspicious queries with injection patterns or unexpected SQL syntax
  • Unexpected data extraction or exfiltration from the PostgreSQL database
  • Anomalous database errors or timeout events that may indicate blind SQL injection attempts

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block common SQL injection patterns in incoming requests to pREST endpoints
  • Enable and monitor PostgreSQL query logging to identify suspicious or malformed queries that may indicate injection attempts
  • Deploy intrusion detection systems (IDS) with signatures for SQL injection attack patterns targeting REST APIs
  • Implement anomaly detection for API request patterns, flagging requests with unusual characters or SQL-like syntax

Monitoring Recommendations

  • Monitor pREST API access logs for requests containing SQL metacharacters or injection keywords
  • Configure database auditing to track all queries executed against sensitive tables
  • Set up alerts for failed authentication attempts or privilege escalation events in PostgreSQL
  • Implement real-time monitoring of database query execution times to detect blind injection attempts

How to Mitigate CVE-2025-58450

Immediate Actions Required

  • Upgrade pREST to version 2.0.0-rc3 or later immediately to apply the security patch
  • Conduct a security audit of database logs to identify any potential exploitation attempts
  • Review and restrict network access to pREST API endpoints using firewall rules or network segmentation
  • Rotate database credentials if exploitation is suspected

Patch Information

The pREST development team has released version 2.0.0-rc3 which contains a patch addressing this SQL injection vulnerability. The fix improves input validation to properly sanitize user input before SQL query construction. Organizations should upgrade to this patched version as soon as possible.

The patch commit is available for review at the GitHub Commit Update. Additional details about the vulnerability and remediation can be found in the GitHub Security Advisory GHSA-p46v-f2x8-qp98.

Workarounds

  • Deploy a web application firewall (WAF) in front of pREST to filter SQL injection payloads until the upgrade can be completed
  • Restrict database user privileges for the pREST application to the minimum required operations, limiting potential damage from successful exploitation
  • Implement network-level access controls to limit which systems can reach pREST API endpoints
  • Consider temporarily disabling the pREST service for internet-facing deployments until the patch is applied
bash
# Example: Update pREST to patched version
# Using Go modules to update to the patched version
go get github.com/prest/prest@v2.0.0-rc3
go mod tidy

# Restart the pREST service after upgrade
systemctl restart prest

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechPrest

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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-89
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-p46v-f2x8-qp98
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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