/

CVE-2026-114259

Severity:

HIGH RISK

(7.3)

Unrestricted Upload (CWE-434) in File Management PHP

CVE-2026-114259

Deferred

Vulnerability type

Category:

Unrestricted File Upload

CWE:

CWE-284, CWE-434

Impact:

Potential Remote Code Execution and Server Compromise

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 remotely reachable flaw in the file-management-system-php application allows the file upload functionality to accept files without sufficient restriction.

If an attacker can reach the affected upload operation, they may upload unauthorized content, potentially enabling code execution or other server-side impact depending on storage and execution controls.

A remotely reachable flaw in the file-management-system-php application allows the file upload functionality to accept files without sufficient restriction.

If an attacker can reach the affected upload operation, they may upload unauthorized content, potentially enabling code execution or other server-side impact depending on storage and execution controls.

Affected context

The issue occurs in the save_files function of admin_class.php when handling the Upload input. It may affect deployments where the upload endpoint is remotely accessible and uploaded content is not constrained by robust type, name, size, storage, and execution policies. The practical impact depends on authentication requirements, web-server behavior, and filesystem permissions.

The issue occurs in the save_files function of admin_class.php when handling the Upload input. It may affect deployments where the upload endpoint is remotely accessible and uploaded content is not constrained by robust type, name, size, storage, and execution policies. The practical impact depends on authentication requirements, web-server behavior, and filesystem permissions.

Exploit preconditions

  • Attack surface: The remotely accessible file-upload functionality
  • Required access: Network access to the affected application; authentication requirements are deployment-dependent
  • Trigger point: Processing of the Upload argument by the save_files function
  • Why exploitation is possible: Inadequate restrictions may allow attacker-controlled files to be accepted and stored without sufficiently enforcing permitted content types or safe storage behavior
  • Attack surface: The remotely accessible file-upload functionality
  • Required access: Network access to the affected application; authentication requirements are deployment-dependent
  • Trigger point: Processing of the Upload argument by the save_files function
  • Why exploitation is possible: Inadequate restrictions may allow attacker-controlled files to be accepted and stored without sufficiently enforcing permitted content types or safe storage behavior

Why this happens

The underlying bug is an unrestricted file-upload condition mapped to CWE-434: Unrestricted Upload of File with Dangerous Type. The upload handler does not adequately constrain attacker-controlled file content, type, naming, or destination before accepting it. This insecure pattern can allow files outside the application's intended upload policy to enter the server environment.

The underlying bug is an unrestricted file-upload condition mapped to CWE-434: Unrestricted Upload of File with Dangerous Type. The upload handler does not adequately constrain attacker-controlled file content, type, naming, or destination before accepting it. This insecure pattern can allow files outside the application's intended upload policy to enter the server environment.

Potential impact

  • An attacker may place unauthorized files on the server
  • Uploaded content could be served to users or interpreted by the web server
  • The application may experience stored content injection or defacement
  • Server-side code execution could occur if executable uploads are accepted in an executable location
  • Compromise could expand according to the application's filesystem and process privileges
  • An attacker may place unauthorized files on the server
  • Uploaded content could be served to users or interpreted by the web server
  • The application may experience stored content injection or defacement
  • Server-side code execution could occur if executable uploads are accepted in an executable location
  • Compromise could expand according to the application's filesystem and process privileges

General mitigation guidance

Mitigation generally focuses on treating every uploaded file as untrusted and enforcing a narrowly defined upload policy.

Common defensive patterns include:

  • Allowing only required file types using content-aware validation rather than filename checks alone
  • Restricting file names, extensions, sizes, and archive behavior
  • Storing uploads outside executable or publicly served directories where feasible
  • Serving uploaded content with non-executable handling and restrictive content types
  • Using generated server-side names and isolating uploaded files from application code
  • Applying least-privilege permissions to the application process and upload directories
  • Requiring appropriate authorization and applying request-size and rate controls

Mitigation generally focuses on treating every uploaded file as untrusted and enforcing a narrowly defined upload policy.

Common defensive patterns include:

  • Allowing only required file types using content-aware validation rather than filename checks alone
  • Restricting file names, extensions, sizes, and archive behavior
  • Storing uploads outside executable or publicly served directories where feasible
  • Serving uploaded content with non-executable handling and restrictive content types
  • Using generated server-side names and isolating uploaded files from application code
  • Applying least-privilege permissions to the application process and upload directories
  • Requiring appropriate authorization and applying request-size and rate controls

How teams detect issues like this

Detection can combine source review, runtime monitoring, and policy enforcement:

  • Use static analysis to identify upload handlers that trust user-controlled names, extensions, MIME types, or destinations
  • Review code paths involving move_uploaded_file, filesystem writes, multipart request parsing, and dynamic path construction
  • Check whether upload directories are executable, publicly exposed, or writable by overly privileged processes
  • Monitor web and filesystem events for unexpected extensions, executable content, path traversal indicators, and anomalous upload volume
  • Enforce repository and CI policies requiring allowlisted upload types and non-executable storage
  • Automated code-review tools may help identify missing validation and unsafe upload-to-web-root patterns

Detection can combine source review, runtime monitoring, and policy enforcement:

  • Use static analysis to identify upload handlers that trust user-controlled names, extensions, MIME types, or destinations
  • Review code paths involving move_uploaded_file, filesystem writes, multipart request parsing, and dynamic path construction
  • Check whether upload directories are executable, publicly exposed, or writable by overly privileged processes
  • Monitor web and filesystem events for unexpected extensions, executable content, path traversal indicators, and anomalous upload volume
  • Enforce repository and CI policies requiring allowlisted upload types and non-executable storage
  • Automated code-review tools may help identify missing validation and unsafe upload-to-web-root patterns

Sources

SourceLink
github.comgithub.com/oretnom23/file-management-system-php/
github.comgithub.com/oretnom23/file-management-system-php/issues/7
vuldb.comvuldb.com/cve/CVE-2026-114259
vuldb.comvuldb.com/submit/1018611
vuldb.comvuldb.com/vuln/424691
vuldb.comvuldb.com/vuln/424691/cti

Frequently asked

questions

Yes, the reported flaw is reachable remotely through the affected upload functionality, although network exposure and any authentication requirements depend on deployment configuration.

The available description does not establish whether authentication is required. The decisive requirement is access to the upload operation and permission to submit the relevant request.

Accept only narrowly allowlisted content, validate file content server-side, generate safe names, and store uploads outside executable or publicly served locations.

Combine secure upload design with least-privilege filesystem permissions, non-executable upload directories, request monitoring, code review, and automated checks for unsafe file-handling patterns.

Yes, the reported flaw is reachable remotely through the affected upload functionality, although network exposure and any authentication requirements depend on deployment configuration.

The available description does not establish whether authentication is required. The decisive requirement is access to the upload operation and permission to submit the relevant request.

Accept only narrowly allowlisted content, validate file content server-side, generate safe names, and store uploads outside executable or publicly served locations.

Combine secure upload design with least-privilege filesystem permissions, non-executable upload directories, request monitoring, code review, and automated checks for unsafe file-handling patterns.

Find out what's already
exploitable in your codebase.