/

CVE-2026-114257

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in file-management-system-php

CVE-2026-114257

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database Manipulation and Potential Unauthorized Data Access

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A SQL injection vulnerability in the File Download functionality of file-management-system-php allows remote attackers to manipulate the ID parameter submitted to download.php.

When the parameter is incorporated into a database query without adequate protection, an attacker may access or alter database information and potentially affect file-download behavior.

A SQL injection vulnerability in the File Download functionality of file-management-system-php allows remote attackers to manipulate the ID parameter submitted to download.php.

When the parameter is incorporated into a database query without adequate protection, an attacker may access or alter database information and potentially affect file-download behavior.

Affected context

The vulnerability occurs in deployments of file-management-system-php that expose the File Download component and process the ID argument through download.php. Risk is present when externally supplied identifiers reach database queries without parameterization or equivalent safeguards. The practical impact depends on database permissions, application authorization controls, and the data handled by the system.

The vulnerability occurs in deployments of file-management-system-php that expose the File Download component and process the ID argument through download.php. Risk is present when externally supplied identifiers reach database queries without parameterization or equivalent safeguards. The practical impact depends on database permissions, application authorization controls, and the data handled by the system.

Exploit preconditions

  • Attack surface: Remote HTTP access to the File Download endpoint
  • Required access: The ability to submit requests containing a controllable ID argument; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the ID parameter by download.php
  • Why exploitation is possible: The parameter may be incorporated into a SQL statement without sufficient separation between data and query logic
  • Attack surface: Remote HTTP access to the File Download endpoint
  • Required access: The ability to submit requests containing a controllable ID argument; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the ID parameter by download.php
  • Why exploitation is possible: The parameter may be incorporated into a SQL statement without sufficient separation between data and query logic

Why this happens

The underlying issue is an injection flaw in which input supplied through a file-download request can influence SQL query structure. This behavior maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection), with CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component describing the broader injection pattern. The insecure design treats an externally controlled identifier as trusted query content instead of binding it strictly as a value.

The underlying issue is an injection flaw in which input supplied through a file-download request can influence SQL query structure. This behavior maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection), with CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component describing the broader injection pattern. The insecure design treats an externally controlled identifier as trusted query content instead of binding it strictly as a value.

Potential impact

  • An attacker may retrieve unauthorized database information
  • An attacker could modify or delete database records if the database account permits it
  • Application authorization checks may be bypassed in affected query paths
  • File metadata or download behavior may be altered
  • The application may experience errors, data corruption, or service disruption
  • An attacker may retrieve unauthorized database information
  • An attacker could modify or delete database records if the database account permits it
  • Application authorization checks may be bypassed in affected query paths
  • File metadata or download behavior may be altered
  • The application may experience errors, data corruption, or service disruption

General mitigation guidance

Mitigation generally focuses on separating user-controlled values from SQL syntax and reducing the trust placed in request parameters.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every database operation
  • Validate identifiers against expected types, ranges, and authorized records
  • Apply server-side authorization checks before selecting or serving files
  • Use database accounts with only the permissions required by the application
  • Avoid exposing detailed database errors to clients
  • Centralize query construction and enforce secure database-access policies
  • Treat downloaded-file references as opaque, server-controlled identifiers where practical

Mitigation generally focuses on separating user-controlled values from SQL syntax and reducing the trust placed in request parameters.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every database operation
  • Validate identifiers against expected types, ranges, and authorized records
  • Apply server-side authorization checks before selecting or serving files
  • Use database accounts with only the permissions required by the application
  • Avoid exposing detailed database errors to clients
  • Centralize query construction and enforce secure database-access policies
  • Treat downloaded-file references as opaque, server-controlled identifiers where practical

How teams detect issues like this

Detection can include static analysis for string concatenation or interpolation of request parameters into SQL statements, especially in download handlers and database helper functions. Code review should examine all paths from download.php and the ID argument to query execution, including validation and authorization sequencing.

Runtime monitoring can look for repeated malformed identifier requests, unusual query errors, unexpected database access patterns, and access to records outside a user's normal scope. Policy enforcement may require prepared statements, approved database-access libraries, and automated security checks in pull requests. Neutral automated code-review and SAST tools can help identify likely injection paths, but findings should be validated against actual data flow.

Detection can include static analysis for string concatenation or interpolation of request parameters into SQL statements, especially in download handlers and database helper functions. Code review should examine all paths from download.php and the ID argument to query execution, including validation and authorization sequencing.

Runtime monitoring can look for repeated malformed identifier requests, unusual query errors, unexpected database access patterns, and access to records outside a user's normal scope. Policy enforcement may require prepared statements, approved database-access libraries, and automated security checks in pull requests. Neutral automated code-review and SAST tools can help identify likely injection paths, but findings should be validated against actual data flow.

Sources

SourceLink
github.comgithub.com/oretnom23/file-management-system-php/
github.comgithub.com/oretnom23/file-management-system-php/issues/5
vuldb.comvuldb.com/cve/CVE-2026-114257
vuldb.comvuldb.com/submit/1018609
vuldb.comvuldb.com/vuln/424689
vuldb.comvuldb.com/vuln/424689/cti

Frequently asked

questions

Yes. The affected functionality is reachable through a remote file-download request, although successful exploitation depends on deployment exposure and application controls.

Not necessarily. The required access depends on whether the download endpoint is publicly available and how authentication and authorization are configured.

Use parameterized database queries, validate the identifier as a server-side value, and enforce authorization before retrieving or serving the associated file.

Apply secure database-access standards consistently, use least-privilege database accounts, review request-to-query data flows, and include SQL injection testing and static analysis in the development process.

Yes. The affected functionality is reachable through a remote file-download request, although successful exploitation depends on deployment exposure and application controls.

Not necessarily. The required access depends on whether the download endpoint is publicly available and how authentication and authorization are configured.

Use parameterized database queries, validate the identifier as a server-side value, and enforce authorization before retrieving or serving the associated file.

Apply secure database-access standards consistently, use least-privilege database accounts, review request-to-query data flows, and include SQL injection testing and static analysis in the development process.

Find out what's already
exploitable in your codebase.