/

CVE-2026-114258

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in File Management System PHP

CVE-2026-114258

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise and 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-management-system-php application allows attacker-controlled values in the fid or id parameters to influence database queries. Because the affected functionality is remotely accessible, an unauthenticated or otherwise permitted attacker may be able to read, alter, or interfere with database-backed data, depending on deployment permissions.

A SQL injection vulnerability in the file-management-system-php application allows attacker-controlled values in the fid or id parameters to influence database queries. Because the affected functionality is remotely accessible, an unauthenticated or otherwise permitted attacker may be able to read, alter, or interfere with database-backed data, depending on deployment permissions.

Affected context

The issue occurs in the File Management functionality exposed through files.php, where request parameters such as fid or id may be incorporated into database operations without sufficient separation between data and SQL syntax. Risk is higher when the endpoint is reachable remotely and database credentials grant broad read or write privileges.

The issue occurs in the File Management functionality exposed through files.php, where request parameters such as fid or id may be incorporated into database operations without sufficient separation between data and SQL syntax. Risk is higher when the endpoint is reachable remotely and database credentials grant broad read or write privileges.

Exploit preconditions

  • Attack surface: The remotely accessible File Management endpoint in files.php
  • Required access: Network access to the endpoint; authentication requirements depend on the deployment
  • Trigger point: Processing of the fid or id request parameters
  • Why exploitation is possible: User-controlled input can influence database query construction without adequate parameterization or equivalent query isolation
  • Attack surface: The remotely accessible File Management endpoint in files.php
  • Required access: Network access to the endpoint; authentication requirements depend on the deployment
  • Trigger point: Processing of the fid or id request parameters
  • Why exploitation is possible: User-controlled input can influence database query construction without adequate parameterization or equivalent query isolation

Why this happens

The underlying bug is an injection flaw in which externally supplied values are treated as part of a database command rather than strictly as data. If query construction concatenates or otherwise embeds the fid or id values without robust parameter binding and validation, database syntax can be altered by crafted input. This maps primarily to CWE-89, SQL Injection; the broader CWE-74 classification covers improper neutralization of special elements in command-like languages.

The underlying bug is an injection flaw in which externally supplied values are treated as part of a database command rather than strictly as data. If query construction concatenates or otherwise embeds the fid or id values without robust parameter binding and validation, database syntax can be altered by crafted input. This maps primarily to CWE-89, SQL Injection; the broader CWE-74 classification covers improper neutralization of special elements in command-like languages.

Potential impact

  • An attacker may retrieve unauthorized database records
  • Database contents could be modified or deleted
  • Application authentication or authorization data could be exposed
  • The application may experience service disruption
  • Database compromise could enable further access to connected systems
  • An attacker may retrieve unauthorized database records
  • Database contents could be modified or deleted
  • Application authentication or authorization data could be exposed
  • The application may experience service disruption
  • Database compromise could enable further access to connected systems

General mitigation guidance

Mitigation generally focuses on ensuring that request data cannot become

executable SQL syntax.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every database operation
  • Apply allowlisted type and format validation to identifier parameters
  • Avoid dynamically concatenating request values into SQL statements
  • Use database accounts with only the minimum required permissions
  • Centralize data-access routines and enforce consistent query-safety policies
  • Reduce trust in client-supplied identifiers by resolving access through server-side authorization checks
  • Return generic database errors and avoid exposing query details to clients

Mitigation generally focuses on ensuring that request data cannot become

executable SQL syntax.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every database operation
  • Apply allowlisted type and format validation to identifier parameters
  • Avoid dynamically concatenating request values into SQL statements
  • Use database accounts with only the minimum required permissions
  • Centralize data-access routines and enforce consistent query-safety policies
  • Reduce trust in client-supplied identifiers by resolving access through server-side authorization checks
  • Return generic database errors and avoid exposing query details to clients

How teams detect issues like this

Organizations commonly detect this class of issue through:

  • Static analysis rules identifying SQL string concatenation with request parameters
  • Code review checks for unparameterized queries in files.php and related data-access code
  • Dynamic application testing that uses benign injection-detection probes against identifier parameters
  • Database monitoring for anomalous query patterns, unexpected errors, or unusual access volumes
  • Policy enforcement requiring prepared statements and approved database-access abstractions
  • Automated security review tools that flag data flowing from HTTP parameters into query construction

Organizations commonly detect this class of issue through:

  • Static analysis rules identifying SQL string concatenation with request parameters
  • Code review checks for unparameterized queries in files.php and related data-access code
  • Dynamic application testing that uses benign injection-detection probes against identifier parameters
  • Database monitoring for anomalous query patterns, unexpected errors, or unusual access volumes
  • Policy enforcement requiring prepared statements and approved database-access abstractions
  • Automated security review tools that flag data flowing from HTTP parameters into query construction

Sources

SourceLink
github.comgithub.com/oretnom23/file-management-system-php/
github.comgithub.com/oretnom23/file-management-system-php/issues/6
vuldb.comvuldb.com/cve/CVE-2026-114258
vuldb.comvuldb.com/submit/1018610
vuldb.comvuldb.com/vuln/424690
vuldb.comvuldb.com/vuln/424690/cti

Frequently asked

questions

Yes. The affected functionality is exposed through a remotely reachable file

management endpoint, although network access controls and any authentication

requirements can limit who can reach it.

The attacker needs access to the relevant files.php functionality and the

ability to supply request parameters. Whether authentication is required

depends on the application's deployment and endpoint protections.

Use parameterized queries or prepared statements, validate identifier values

against expected types and ranges, and enforce authorization independently

of input validation.

Standardize safe database-access libraries, prohibit query construction from

raw request data, apply least-privilege database accounts, and combine code

review with static and dynamic security testing.

Yes. The affected functionality is exposed through a remotely reachable file

management endpoint, although network access controls and any authentication

requirements can limit who can reach it.

The attacker needs access to the relevant files.php functionality and the

ability to supply request parameters. Whether authentication is required

depends on the application's deployment and endpoint protections.

Use parameterized queries or prepared statements, validate identifier values

against expected types and ranges, and enforce authorization independently

of input validation.

Standardize safe database-access libraries, prohibit query construction from

raw request data, apply least-privilege database accounts, and combine code

review with static and dynamic security testing.

Find out what's already
exploitable in your codebase.