Severity by source
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
Network-reachable API with low complexity needs only a low-privilege authenticated account (PR:L), and the SQLi-to-file-write yields full RCE, so C/I/A all High; scope unchanged as impact stays on the host.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
CentreStack before 17.4 contains a SQL injection vulnerability in GladDBFiles.SearchEx() and SearchExUnder() that allows authenticated attackers to execute arbitrary SQL statements by supplying a crafted x-glad-filter request header through the jsondir API endpoint. Attackers can exploit unsanitized interpolation of the Field parameter directly into SQL query strings to write arbitrary files to the server filesystem via PostgreSQL lo_from_bytea() and lo_export() functions, enabling remote code execution.
AnalysisAI
SQL injection leading to remote code execution in Gladinet CentreStack before 17.4 lets authenticated users inject arbitrary SQL through the x-glad-filter HTTP header handled by the jsondir API endpoint. Because the injected query runs on the PostgreSQL backend, attackers chain lo_from_bytea() and lo_export() to write arbitrary files onto the server filesystem, converting a database flaw into full code execution. Reported by VulnCheck; no public exploit identified at time of analysis, and it is not listed in CISA KEV.
Technical ContextAI
CentreStack is a Gladinet enterprise file-sharing and sync-and-share platform, backed here by a PostgreSQL database. The root cause is CWE-89 (SQL Injection): the GladDBFiles.SearchEx() and SearchExUnder() routines interpolate the attacker-controlled Field parameter - delivered via the x-glad-filter request header on the jsondir endpoint - directly into SQL query strings without parameterization or sanitization. Beyond data theft, the flaw is weaponized through PostgreSQL large-object functions lo_from_bytea() (loads bytes into a large object) and lo_export() (writes that object to a filesystem path), which together allow arbitrary file writes and therefore server-side code execution. The single affected package is identified by CPE cpe:2.3:a:gladinet:centrestack:*:*:*:*:*:*:*:*.
RemediationAI
Vendor-released patch: upgrade to CentreStack 17.4, which resolves the SQL injection in GladDBFiles.SearchEx() and SearchExUnder(); this is the primary and authoritative fix, referenced via the VulnCheck advisory (https://www.vulncheck.com/advisories/centrestack-sql-injection-via-x-glad-filter-header) and the Gladinet site (https://www.centrestack.com/). If immediate patching is not possible, apply compensating controls: filter or strip the x-glad-filter request header at a reverse proxy or WAF and block anomalous SQL/large-object syntax (lo_from_bytea, lo_export) in that header, accepting that legitimate filter/search functionality relying on that header may break; restrict network access to the jsondir API endpoint to trusted management networks or VPN, which limits usability for remote/mobile clients; and, because exploitation escalates through PostgreSQL large-object export, revoke unneeded filesystem-write and large-object privileges from the database role CentreStack uses and enforce least privilege on the PostgreSQL data/export directories, at the cost of disabling any features that legitimately rely on those functions. Because exploitation requires authentication, also rotate and tighten low-privilege account access and monitor authenticated sessions until patched.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-51104
GHSA-4cmj-5m56-fg8c