Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2019-25778 Overview
CVE-2019-25778 is an unauthenticated SQL injection vulnerability in SeaCMS through version 8.7. The flaw resides in the /comment/api/index.php endpoint, where the rlist[] array parameter is passed into database queries without proper sanitization. Remote attackers can send crafted GET requests containing backtick-quoted variables and the extractvalue function to trigger error-based SQL injection. The vulnerability maps to CWE-89 and requires no authentication or user interaction. The Shadowserver Foundation first observed exploitation evidence on 2023-10-14, indicating in-the-wild interest in this attack surface.
Critical Impact
Unauthenticated remote attackers can extract arbitrary database contents, including user credentials and administrative data, from vulnerable SeaCMS installations.
Affected Products
- SeaCMS through version 8.7
- /comment/api/index.php endpoint on affected installations
- Deployments exposing the comment API to untrusted networks
Discovery Timeline
- 2023-10-14 - Exploitation evidence first observed by the Shadowserver Foundation
- 2026-10-22 - CVE CVE-2019-25778 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2019-25778
Vulnerability Analysis
The vulnerability is an error-based SQL injection in the SeaCMS comment API. The rlist[] parameter accepts array values that are concatenated into a backend SQL query without parameterization or input validation. Attackers exploit this by supplying backtick-quoted variable identifiers combined with MySQL's extractvalue() XPath function. When the crafted XPath expression fails, MySQL returns the evaluated subquery result inside the error message, exposing database contents to the attacker. Because the endpoint requires no authentication, exploitation is reachable by any party that can issue HTTP GET requests to the server.
Root Cause
The root cause is improper neutralization of special elements used in an SQL command [CWE-89]. SeaCMS fails to validate or escape array members of the rlist[] parameter before interpolating them into the comment-related query. The use of unparameterized string concatenation allows attacker-controlled fragments to alter query syntax and introduce subqueries wrapped in extractvalue() calls.
Attack Vector
Attackers exploit the vulnerability remotely over HTTP by issuing GET requests to /comment/api/index.php with malicious rlist[] values. The payload leverages MySQL's extractvalue() function, where the second argument contains a concat() subquery that returns sensitive data such as database(), user(), or results from information_schema queries. The deliberately invalid XPath expression causes MySQL to raise an error containing the leaked data, which is reflected in the HTTP response. Public detection logic for this pattern is published in the Nuclei template for SeaCMS SQLi and documented in the VulnCheck advisory.
Detection Methods for CVE-2019-25778
Indicators of Compromise
- GET requests to /comment/api/index.php containing rlist[] parameters with backtick characters or the extractvalue string
- HTTP responses from the comment API containing MySQL error strings such as XPATH syntax error
- Repeated requests from a single source iterating through information_schema tables or probing database() and user() functions
- Outbound anomalies from the web server process following successful SQL extraction
Detection Strategies
- Deploy the public Nuclei template against externally reachable SeaCMS instances to validate exposure
- Author web application firewall rules that flag rlist[] values containing backticks, extractvalue, concat, or select keywords
- Correlate web access logs with database audit logs to identify anomalous query patterns originating from the comment API
Monitoring Recommendations
- Monitor web server logs for sustained request bursts targeting /comment/api/
- Alert on MySQL error log entries referencing XPATH evaluation failures tied to the SeaCMS database user
- Track egress traffic from the SeaCMS host for unexpected data flows that may indicate post-exploitation activity
How to Mitigate CVE-2019-25778
Immediate Actions Required
- Restrict access to /comment/api/index.php using network ACLs or reverse-proxy rules until a vendor fix is applied
- Deploy WAF signatures that block rlist[] payloads containing SQL metacharacters, backticks, or extractvalue
- Rotate database credentials and audit the SeaCMS database for signs of unauthorized reads
- Review historical web and database logs for exploitation attempts dating back to October 2023
Patch Information
No vendor patch is referenced in the available advisories. Operators should monitor the SeaCMS official website and the VulnCheck advisory for update guidance. Where feasible, migrate off SeaCMS 8.7 or apply a maintained fork that parameterizes rlist[] handling in the comment API.
Workarounds
- Block external access to the comment API endpoint at the perimeter if the feature is not required
- Apply reverse-proxy filters that reject requests where rlist[] values contain non-numeric or non-alphanumeric characters
- Enforce least-privilege database accounts so the SeaCMS user cannot read information_schema beyond its own schema
- Enable query logging on the backend MySQL instance to retain forensic evidence of exploitation attempts
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

