/

CVE-2026-114256

Severity:

HIGH RISK

(7.3)

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

CVE-2026-114256

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized database access and data manipulation

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 Folder Management functions of oretnom23 file-management-system-php allows remotely supplied input to influence database queries. An attacker who can reach the affected functionality may be able to read, alter, or interfere with application data, depending on database permissions and query construction.

A SQL injection vulnerability in the Folder Management functions of oretnom23 file-management-system-php allows remotely supplied input to influence database queries. An attacker who can reach the affected functionality may be able to read, alter, or interfere with application data, depending on database permissions and query construction.

Affected context

The weakness occurs in the Folder Management implementation of file-management-system-php, particularly the save_folder, delete_folder, delete_file, file_rename, and save_files functions in admin_class.php. It becomes risky when values such as name, parent_id, id, type, folder_id, or description are incorporated into database queries without reliable parameterization or equivalent query-safety controls. The product uses a rolling release model, so affected deployment states may not correspond to conventional version numbers.

The weakness occurs in the Folder Management implementation of file-management-system-php, particularly the save_folder, delete_folder, delete_file, file_rename, and save_files functions in admin_class.php. It becomes risky when values such as name, parent_id, id, type, folder_id, or description are incorporated into database queries without reliable parameterization or equivalent query-safety controls. The product uses a rolling release model, so affected deployment states may not correspond to conventional version numbers.

Exploit preconditions

  • Attack surface: Remotely reachable Folder Management functionality
  • Required access: Access sufficient to submit requests to the affected application endpoints; authentication requirements depend on deployment configuration
  • Trigger point: Processing of folder or file-management parameters by the affected functions
  • Why exploitation is possible: User-controlled values may influence SQL statement structure instead of being treated strictly as data
  • Attack surface: Remotely reachable Folder Management functionality
  • Required access: Access sufficient to submit requests to the affected application endpoints; authentication requirements depend on deployment configuration
  • Trigger point: Processing of folder or file-management parameters by the affected functions
  • Why exploitation is possible: User-controlled values may influence SQL statement structure instead of being treated strictly as data

Why this happens

The underlying bug is insufficient separation between application data and SQL command structure. When request-controlled values are concatenated into database queries or otherwise handled without safe parameter binding, SQL metacharacters can change the query's intended meaning. This maps primarily to CWE-89, SQL Injection; CWE-74 broadly describes the failure to neutralize special elements within an interpreted command or data language.

The underlying bug is insufficient separation between application data and SQL command structure. When request-controlled values are concatenated into database queries or otherwise handled without safe parameter binding, SQL metacharacters can change the query's intended meaning. This maps primarily to CWE-89, SQL Injection; CWE-74 broadly describes the failure to neutralize special elements within an interpreted command or data language.

Potential impact

  • An attacker may read unauthorized database records.
  • An attacker could modify or delete application data.
  • Database integrity and file-management metadata may be compromised.
  • The application may experience unauthorized administrative actions or denial of service.
  • Sensitive information could be exposed, depending on database privileges and application design.
  • An attacker may read unauthorized database records.
  • An attacker could modify or delete application data.
  • Database integrity and file-management metadata may be compromised.
  • The application may experience unauthorized administrative actions or denial of service.
  • Sensitive information could be exposed, depending on database privileges and application design.

General mitigation guidance

Mitigation generally focuses on ensuring that all database operations use

parameterized queries, prepared statements, or a well-designed data-access

layer that separates values from SQL syntax.

Defensive patterns include:

  • Treating every request parameter as untrusted, including values used for identifiers and descriptions.
  • Applying allowlist validation and appropriate type constraints before database access.
  • Avoiding dynamic SQL where a fixed query or controlled query builder is sufficient.
  • Restricting the database account to the minimum permissions required by the application.
  • Separating administrative functions from broadly reachable application routes.
  • Using secure-by-default error handling that does not disclose query details.
  • Retaining database backups and integrity monitoring appropriate to the application's data.

Mitigation generally focuses on ensuring that all database operations use

parameterized queries, prepared statements, or a well-designed data-access

layer that separates values from SQL syntax.

Defensive patterns include:

  • Treating every request parameter as untrusted, including values used for identifiers and descriptions.
  • Applying allowlist validation and appropriate type constraints before database access.
  • Avoiding dynamic SQL where a fixed query or controlled query builder is sufficient.
  • Restricting the database account to the minimum permissions required by the application.
  • Separating administrative functions from broadly reachable application routes.
  • Using secure-by-default error handling that does not disclose query details.
  • Retaining database backups and integrity monitoring appropriate to the application's data.

How teams detect issues like this

Detection approaches may include:

  • Static analysis for string concatenation, interpolation, or formatting of request values into SQL statements.
  • Code review of all Folder Management handlers and shared database helper functions.
  • Dynamic testing with benign input variations to identify unexpected query behavior, without using destructive payloads.
  • Web application firewall or API policy rules covering anomalous database-oriented input patterns.
  • Database monitoring for unusual query shapes, privilege use, bulk access, or unexpected data changes.
  • CI policy checks requiring prepared statements or approved data-access abstractions.

Automated code review and software composition tools may help identify recurring SQL construction patterns, but should be combined with manual review.

Detection approaches may include:

  • Static analysis for string concatenation, interpolation, or formatting of request values into SQL statements.
  • Code review of all Folder Management handlers and shared database helper functions.
  • Dynamic testing with benign input variations to identify unexpected query behavior, without using destructive payloads.
  • Web application firewall or API policy rules covering anomalous database-oriented input patterns.
  • Database monitoring for unusual query shapes, privilege use, bulk access, or unexpected data changes.
  • CI policy checks requiring prepared statements or approved data-access abstractions.

Automated code review and software composition tools may help identify recurring SQL construction patterns, but should be combined with manual review.

Sources

SourceLink
github.comgithub.com/oretnom23/file-management-system-php/
github.comgithub.com/oretnom23/file-management-system-php/issues/4
vuldb.comvuldb.com/cve/CVE-2026-114256
vuldb.comvuldb.com/submit/1018608
vuldb.comvuldb.com/vuln/424688
vuldb.comvuldb.com/vuln/424688/cti

Frequently asked

questions

Yes. The reported attack surface is remotely reachable, although practical

exploitability depends on network exposure, authentication, authorization,

and which Folder Management functions are available to the requester.

Not necessarily. The required access depends on the application's route

protections and deployment configuration. Any account or role permitted to

reach an affected function may provide the necessary access if input is not

safely handled.

Use parameterized queries or prepared statements for every database

operation, validate values according to their expected types and formats,

and avoid constructing SQL from request strings.

Combine secure data-access abstractions, least-privilege database accounts,

focused code review, automated static checks, endpoint authorization review,

and monitoring for anomalous database activity.

Yes. The reported attack surface is remotely reachable, although practical

exploitability depends on network exposure, authentication, authorization,

and which Folder Management functions are available to the requester.

Not necessarily. The required access depends on the application's route

protections and deployment configuration. Any account or role permitted to

reach an affected function may provide the necessary access if input is not

safely handled.

Use parameterized queries or prepared statements for every database

operation, validate values according to their expected types and formats,

and avoid constructing SQL from request strings.

Combine secure data-access abstractions, least-privilege database accounts,

focused code review, automated static checks, endpoint authorization review,

and monitoring for anomalous database activity.

Find out what's already
exploitable in your codebase.