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-2026-114257 Overview
CVE-2026-114257 is a SQL injection vulnerability in the oretnom23 file-management-system-php project, affecting commits up to 2e3c1ebe60f121e8df4fb3f544f0e9591d9a01e4. The flaw resides in the readfile function within download.php, part of the File Download component. Attackers can manipulate the ID argument to inject arbitrary SQL statements remotely without authentication. The exploit has been publicly disclosed. Because the project uses a rolling release model, no fixed version identifier is published. The maintainer was notified through an issue report but has not responded. The vulnerability is classified under CWE-74 (Improper Neutralization of Special Elements in Output).
Critical Impact
Remote, unauthenticated attackers can inject SQL through the ID parameter of download.php, exposing stored data and potentially altering database contents.
Affected Products
- oretnom23 file-management-system-php up to commit 2e3c1ebe60f121e8df4fb3f544f0e9591d9a01e4
- Component: File Download (download.php)
- Function: readfile
Discovery Timeline
- 2026-10-21 - CVE-2026-114257 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-114257
Vulnerability Analysis
The vulnerability affects the file download workflow in file-management-system-php. When a user requests a download, download.php invokes the readfile function and uses the ID request parameter to construct a SQL query against the file metadata table. The parameter is concatenated into the query without parameterization or input sanitization. An attacker can supply crafted SQL fragments through the ID argument to alter query logic, extract data from other tables, or enumerate the underlying database schema. Because the endpoint is reachable over the network and requires no authentication, exploitation can be fully automated. The project uses a rolling release model, so no version boundary separates vulnerable from fixed states.
Root Cause
The root cause is improper neutralization of user-supplied input used in SQL statement construction, classified as CWE-74. The ID parameter flows directly from the HTTP request into a database query without the use of prepared statements, bound parameters, or type casting.
Attack Vector
The attack vector is network-based. An attacker sends an HTTP request to download.php with a malicious ID query string value. No prior authentication, session, or user interaction is required. Successful exploitation can disclose metadata about stored files, user records, and other application tables. See the VulDB entry for CVE-2026-114257 and the public issue thread for additional context.
No verified proof-of-concept code is included here. Technical details are available in the referenced advisories.
Detection Methods for CVE-2026-114257
Indicators of Compromise
- HTTP requests to download.php with SQL meta-characters in the ID parameter, such as single quotes, UNION, SELECT, SLEEP(, or comment sequences like -- and /*.
- Web server access logs showing unusually long or URL-encoded ID values targeting the download endpoint.
- Database error entries referencing download.php queries or malformed SQL.
- Spikes in outbound responses from download.php that return non-file content (HTML errors, raw query output).
Detection Strategies
- Deploy web application firewall signatures to flag SQL injection payloads targeting the ID parameter of download.php.
- Correlate web request logs with database query logs to identify queries containing unexpected clauses tied to the download workflow.
- Baseline normal ID parameter patterns (typically numeric) and alert on any non-numeric or oversized values.
Monitoring Recommendations
- Enable verbose logging on the PHP application and the backing database to capture query text and request parameters.
- Monitor authentication-free endpoints for repeated requests from a single source address targeting download.php.
- Forward web and database logs to a centralized analytics platform and build detections for the SQL injection patterns described above.
How to Mitigate CVE-2026-114257
Immediate Actions Required
- Restrict public exposure of download.php using network controls, authentication, or IP allowlisting until a code fix is available.
- Apply a WAF rule that blocks requests to download.php where the ID parameter contains non-numeric characters.
- Review web and database logs for prior exploitation attempts and rotate any credentials or secrets that may have been exposed.
- Track the status of the public issue report for upstream remediation.
Patch Information
At the time of publication, the maintainer has not responded to the disclosure. No official patch or fixed commit is available. Operators should maintain compensating controls and monitor the project repository for updates.
Workarounds
- Modify download.php locally to use prepared statements with bound parameters (for example, PDO with prepare() and execute()), replacing any string concatenation of the ID value.
- Cast the ID parameter to an integer with (int)$_GET['ID'] before use in any query as an interim hardening step.
- Place the application behind a reverse proxy or WAF that enforces strict input validation on the ID parameter.
- Disable the file download feature entirely if it is not essential to operations.
# Configuration example: nginx rule to reject non-numeric ID values
location = /download.php {
if ($arg_ID !~ "^[0-9]+$") {
return 400;
}
}
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

