/

CVE-2026-112149

Severity:

HIGH RISK

(7.3)

Unrestricted Upload (CWE-434) in Criminal-Management-System

CVE-2026-112149

Deferred

Vulnerability type

Category:

Unrestricted File Upload

CWE:

CWE-284, CWE-434

Impact:

Unauthorized File Upload and Potential Remote Code Execution

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

Criminal-Management-System contains an unrestricted file upload vulnerability in the move_uploaded_file handling of home.php. An attacker who can reach the upload functionality may submit a file through the my_img parameter, potentially enabling unauthorized files to be stored and, depending on server configuration, executed.

Criminal-Management-System contains an unrestricted file upload vulnerability in the move_uploaded_file handling of home.php. An attacker who can reach the upload functionality may submit a file through the my_img parameter, potentially enabling unauthorized files to be stored and, depending on server configuration, executed.

Affected context

The issue affects deployments of vraj404 Criminal-Management-System through the identified rolling-release state when home.php processes the my_img upload parameter without sufficiently restricting file type, name, destination, or execution behavior. Risk depends on exposure of the upload endpoint, the application's access controls, and whether uploaded content can be interpreted as executable code by the hosting environment.

The issue affects deployments of vraj404 Criminal-Management-System through the identified rolling-release state when home.php processes the my_img upload parameter without sufficiently restricting file type, name, destination, or execution behavior. Risk depends on exposure of the upload endpoint, the application's access controls, and whether uploaded content can be interpreted as executable code by the hosting environment.

Exploit preconditions

  • Attack surface: The file-upload functionality exposed by home.php
  • Required access: Ability to reach and submit requests to the upload endpoint; authentication requirements depend on the deployment
  • Trigger point: Processing of the my_img parameter by move_uploaded_file
  • Why exploitation is possible: Insufficient restrictions may allow attacker-controlled files to be stored in a location or format that is unsafe for the application and web server
  • Attack surface: The file-upload functionality exposed by home.php
  • Required access: Ability to reach and submit requests to the upload endpoint; authentication requirements depend on the deployment
  • Trigger point: Processing of the my_img parameter by move_uploaded_file
  • Why exploitation is possible: Insufficient restrictions may allow attacker-controlled files to be stored in a location or format that is unsafe for the application and web server

Why this happens

The vulnerability results from treating an uploaded file as trusted content without enforcing robust server-side restrictions on its type, destination, filename, and subsequent handling. This maps primarily to CWE-434: Unrestricted Upload of File with Dangerous Type. The related CWE-284: Improper Access Control reflects the possibility that upload authorization or access boundaries may not adequately limit who can invoke the functionality.

The vulnerability results from treating an uploaded file as trusted content without enforcing robust server-side restrictions on its type, destination, filename, and subsequent handling. This maps primarily to CWE-434: Unrestricted Upload of File with Dangerous Type. The related CWE-284: Improper Access Control reflects the possibility that upload authorization or access boundaries may not adequately limit who can invoke the functionality.

Potential impact

  • An attacker may upload unauthorized or malicious files
  • Uploaded content could be used to alter application behavior
  • The web server may execute an uploaded script if execution is permitted in the destination
  • Sensitive application data could be exposed or modified
  • The application host could be compromised, depending on runtime permissions and server configuration
  • An attacker may upload unauthorized or malicious files
  • Uploaded content could be used to alter application behavior
  • The web server may execute an uploaded script if execution is permitted in the destination
  • Sensitive application data could be exposed or modified
  • The application host could be compromised, depending on runtime permissions and server configuration

General mitigation guidance

Mitigation generally focuses on making uploads narrowly scoped and non-executable.

Common defensive patterns include:

  • Allowing only required file types using server-side content inspection and strict allowlists
  • Storing uploaded files outside executable web roots or serving them through a controlled download path
  • Generating server-side filenames rather than trusting client-provided names
  • Enforcing size, extension, MIME, and content validation independently
  • Applying authorization checks and request protections to the upload endpoint
  • Running the application with least-privilege filesystem and process permissions
  • Disabling script execution in upload directories and applying restrictive filesystem policies

Mitigation generally focuses on making uploads narrowly scoped and non-executable.

Common defensive patterns include:

  • Allowing only required file types using server-side content inspection and strict allowlists
  • Storing uploaded files outside executable web roots or serving them through a controlled download path
  • Generating server-side filenames rather than trusting client-provided names
  • Enforcing size, extension, MIME, and content validation independently
  • Applying authorization checks and request protections to the upload endpoint
  • Running the application with least-privilege filesystem and process permissions
  • Disabling script execution in upload directories and applying restrictive filesystem policies

How teams detect issues like this

Organizations can identify similar risks through:

  • Static analysis searches for upload APIs used without type, destination, or authorization checks
  • Code review of move_uploaded_file call sites and handling of parameters such as my_img
  • Tests that submit unexpected extensions, content types, filenames, and archive formats
  • Web-server monitoring for executable files, unusual upload destinations, and anomalous upload activity
  • Policy enforcement requiring uploads to use non-executable storage and approved validation libraries
  • Automated security review tools that flag unrestricted file-upload patterns

Organizations can identify similar risks through:

  • Static analysis searches for upload APIs used without type, destination, or authorization checks
  • Code review of move_uploaded_file call sites and handling of parameters such as my_img
  • Tests that submit unexpected extensions, content types, filenames, and archive formats
  • Web-server monitoring for executable files, unusual upload destinations, and anomalous upload activity
  • Policy enforcement requiring uploads to use non-executable storage and approved validation libraries
  • Automated security review tools that flag unrestricted file-upload patterns

Sources

SourceLink
github.comgithub.com/vraj404/Criminal-Management-System/
github.comgithub.com/vraj404/Criminal-Management-System/issues/1
vuldb.comvuldb.com/cve/CVE-2026-112149
vuldb.comvuldb.com/submit/1014014
vuldb.comvuldb.com/vuln/422256
vuldb.comvuldb.com/vuln/422256/cti

Frequently asked

questions

Yes, the reported issue describes remote exploitation through the upload functionality. Practical impact depends on endpoint exposure, authorization controls, and server configuration.

Not necessarily. The required access depends on how home.php is exposed and whether the application protects the upload operation with authentication and authorization.

Restrict uploads to necessary, validated content and store them outside executable web-accessible directories. Server-side validation and non-executable storage should not depend on client-provided extensions or MIME types.

Use allowlists, generated filenames, least-privilege permissions, upload-size limits, authorization checks, and automated tests that verify uploaded content cannot be executed.

Yes, the reported issue describes remote exploitation through the upload functionality. Practical impact depends on endpoint exposure, authorization controls, and server configuration.

Not necessarily. The required access depends on how home.php is exposed and whether the application protects the upload operation with authentication and authorization.

Restrict uploads to necessary, validated content and store them outside executable web-accessible directories. Server-side validation and non-executable storage should not depend on client-provided extensions or MIME types.

Use allowlists, generated filenames, least-privilege permissions, upload-size limits, authorization checks, and automated tests that verify uploaded content cannot be executed.

Find out what's already
exploitable in your codebase.