/

CVE-2026-117512

Severity:

HIGH RISK

(7.3)

Unrestricted File Upload (CWE-434) in PHP Travel Agency

CVE-2026-117512

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

A vulnerability in the employee photo upload workflow of php-travel-agency-system may allow remote attackers to upload files without adequate type, content, or execution controls. Depending on server configuration and upload handling, an attacker could place executable or otherwise harmful files in a reachable location.

A vulnerability in the employee photo upload workflow of php-travel-agency-system may allow remote attackers to upload files without adequate type, content, or execution controls. Depending on server configuration and upload handling, an attacker could place executable or otherwise harmful files in a reachable location.

Affected context

The issue affects deployments that expose the employee creation functionality in

admin/employee_insert.php and process the employee photo parameter without

sufficiently restricting uploaded content. Risk is greater when uploaded files

are stored in web-accessible directories, retain attacker-controlled names or

extensions, or can be interpreted by the server as executable content.

The issue affects deployments that expose the employee creation functionality in

admin/employee_insert.php and process the employee photo parameter without

sufficiently restricting uploaded content. Risk is greater when uploaded files

are stored in web-accessible directories, retain attacker-controlled names or

extensions, or can be interpreted by the server as executable content.

Exploit preconditions

  • Attack surface: The remotely accessible employee insertion and photo upload workflow
  • Required access: Access sufficient to reach the affected administrative or application endpoint; the exact authentication requirement depends on deployment controls
  • Trigger point: Processing and storage of the employee photo upload argument
  • Why exploitation is possible: The upload path may accept attacker-controlled files without enforcing robust content validation, safe storage, and execution restrictions
  • Attack surface: The remotely accessible employee insertion and photo upload workflow
  • Required access: Access sufficient to reach the affected administrative or application endpoint; the exact authentication requirement depends on deployment controls
  • Trigger point: Processing and storage of the employee photo upload argument
  • Why exploitation is possible: The upload path may accept attacker-controlled files without enforcing robust content validation, safe storage, and execution restrictions

Why this happens

The underlying issue is inadequate authorization and upload handling around a file

upload parameter. When an application trusts client-controlled filenames, MIME types,

extensions, or file contents, an attacker may submit content outside the intended

image format. This maps primarily to CWE-434: Unrestricted Upload of File with Dangerous Type, with CWE-284: Improper Access Control relevant when endpoint

authorization or permission checks are insufficient.

The underlying issue is inadequate authorization and upload handling around a file

upload parameter. When an application trusts client-controlled filenames, MIME types,

extensions, or file contents, an attacker may submit content outside the intended

image format. This maps primarily to CWE-434: Unrestricted Upload of File with Dangerous Type, with CWE-284: Improper Access Control relevant when endpoint

authorization or permission checks are insufficient.

Potential impact

  • An attacker may upload arbitrary files to the application server
  • Uploaded content could be served to users or used for phishing
  • Server-side execution could occur if the upload location permits script execution
  • Application data or administrative functions could be compromised
  • The vulnerability could enable persistence or further attacks against connected systems
  • An attacker may upload arbitrary files to the application server
  • Uploaded content could be served to users or used for phishing
  • Server-side execution could occur if the upload location permits script execution
  • Application data or administrative functions could be compromised
  • The vulnerability could enable persistence or further attacks against connected systems

General mitigation guidance

Mitigation generally focuses on reducing trust in upload requests and separating

uploaded content from executable application resources.

Common defensive patterns include:

  • Allowing only narrowly defined image formats based on verified file content
  • Re-encoding accepted images rather than preserving attacker-supplied content
  • Generating server-side filenames and ignoring user-controlled extensions
  • Storing uploads outside web-accessible and executable directories where feasible
  • Applying authorization checks and least-privilege filesystem permissions
  • Enforcing request size limits and rejecting unexpected archive or script content
  • Configuring the web server to disable script execution in upload locations

Mitigation generally focuses on reducing trust in upload requests and separating

uploaded content from executable application resources.

Common defensive patterns include:

  • Allowing only narrowly defined image formats based on verified file content
  • Re-encoding accepted images rather than preserving attacker-supplied content
  • Generating server-side filenames and ignoring user-controlled extensions
  • Storing uploads outside web-accessible and executable directories where feasible
  • Applying authorization checks and least-privilege filesystem permissions
  • Enforcing request size limits and rejecting unexpected archive or script content
  • Configuring the web server to disable script execution in upload locations

How teams detect issues like this

Detection approaches can include:

  • Static analysis for upload handlers that trust client-supplied MIME types, names, or extensions
  • Code review checks for missing authorization and weak content validation around file inputs
  • Runtime monitoring of newly created files in upload directories, especially executable files
  • Web-server policy checks confirming that upload directories cannot execute scripts
  • Alerting on unusual upload volume, file types, filenames, or access patterns
  • Automated security review tools that identify unrestricted upload and access-control weaknesses

Detection approaches can include:

  • Static analysis for upload handlers that trust client-supplied MIME types, names, or extensions
  • Code review checks for missing authorization and weak content validation around file inputs
  • Runtime monitoring of newly created files in upload directories, especially executable files
  • Web-server policy checks confirming that upload directories cannot execute scripts
  • Alerting on unusual upload volume, file types, filenames, or access patterns
  • Automated security review tools that identify unrestricted upload and access-control weaknesses

Sources

SourceLink
github.comgithub.com/oretnom23/php-travel-agency-system/
github.comgithub.com/oretnom23/php-travel-agency-system/issues/6
vuldb.comvuldb.com/cve/CVE-2026-117512
vuldb.comvuldb.com/submit/1024620
vuldb.comvuldb.com/vuln/427078
vuldb.comvuldb.com/vuln/427078/cti

Frequently asked

questions

Yes. The reported attack surface is remotely reachable, although successful exploitation

depends on endpoint exposure and the authorization controls configured by the deployment.

Not necessarily. The required access depends on how the employee insertion endpoint is

protected; any account or role able to reach the upload workflow may be relevant.

Accept only verified image content, re-encode uploads, generate safe server-side names,

store files outside executable web paths, and enforce authorization and filesystem

restrictions.

Treat all uploaded data as untrusted, apply defense-in-depth validation, disable execution

in upload locations, monitor file activity, and include upload-handler checks in code

review and automated security testing.

Yes. The reported attack surface is remotely reachable, although successful exploitation

depends on endpoint exposure and the authorization controls configured by the deployment.

Not necessarily. The required access depends on how the employee insertion endpoint is

protected; any account or role able to reach the upload workflow may be relevant.

Accept only verified image content, re-encode uploads, generate safe server-side names,

store files outside executable web paths, and enforce authorization and filesystem

restrictions.

Treat all uploaded data as untrusted, apply defense-in-depth validation, disable execution

in upload locations, monitor file activity, and include upload-handler checks in code

review and automated security testing.

Find out what's already
exploitable in your codebase.