/

CVE-2026-19757

Severity:

HIGH RISK

(7.3)

Path Traversal (CWE-22) in Lamp-Cloud File Upload Controller

CVE-2026-19757

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized File Access or 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 high-severity path traversal vulnerability in Dromara lamp-cloud's File-Upload Controller allows remotely supplied bucket or bizType values to influence filesystem path handling.

When the affected upload workflow does not safely constrain these values, an attacker may access or manipulate files outside the intended storage location. Public exploit information increases the likelihood of active exploitation.

Affected context

The vulnerability occurs in the file-upload functionality associated with FileAnyoneController.java in Dromara lamp-cloud deployments up to the affected release range. It becomes risky when request-controlled bucket or bizType values are incorporated into filesystem paths without canonicalization, containment checks, or strict validation.

Exploit preconditions

  • Attack surface: Remotely reachable file-upload controller
  • Required access: The ability to reach the relevant upload endpoint; authentication requirements depend on deployment configuration
  • Trigger point: Processing of attacker-influenced bucket or bizType parameters
  • Why exploitation is possible: Insufficient path validation may allow user-controlled values to resolve outside the intended upload directory

Why this happens

The underlying bug is improper neutralization of path elements supplied through request parameters. When application logic uses untrusted bucket or bizType values to construct filesystem paths without enforcing a trusted base directory, traversal sequences or equivalent path representations may escape the intended storage boundary.

This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly called path traversal.

Potential impact

  • An attacker may access files outside the intended upload location
  • An attacker could overwrite or delete files if the affected operation permits those actions
  • Application configuration or stored data may be exposed
  • Server integrity could be affected through manipulation of sensitive files
  • The vulnerability can increase the impact of other weaknesses in the hosting environment

General mitigation guidance

Mitigation generally focuses on reducing trust in path-related request parameters and enforcing filesystem containment.

Common defensive patterns include:

  • Restricting bucket and bizType to allowlisted identifiers rather than accepting arbitrary path fragments
  • Canonicalizing candidate paths and verifying that they remain beneath a trusted storage root
  • Keeping upload storage separate from application code, configuration, and sensitive system paths
  • Generating server-side storage names instead of deriving paths directly from client input
  • Applying least-privilege permissions to the service account and storage directories
  • Separating upload, download, and administrative file operations with explicit authorization controls

How teams detect issues like this

Detection approaches commonly include:

  • Static analysis rules for filesystem APIs that receive request parameters or concatenated path strings
  • Code review checks for missing canonicalization, allowlists, and trusted-root containment validation
  • Runtime logging of normalized upload paths, rejected traversal indicators, and unusual directory targets
  • Web application firewall or gateway policies that flag suspicious path encoding and traversal patterns
  • Automated security testing that verifies upload paths cannot escape the configured storage directory

Sources

SourceLink
github.comgithub.com/dromara/lamp-cloud/
github.comgithub.com/dromara/lamp-cloud/issues/412
vuldb.comvuldb.com/cve/CVE-2026-19757
vuldb.comvuldb.com/submit/868961
vuldb.comvuldb.com/vuln/389602
vuldb.comvuldb.com/vuln/389602/cti

Frequently asked

questions

Yes. The affected component is a remotely reachable file-upload controller, although actual exploitability depends on endpoint exposure and any authentication or authorization controls.

An attacker generally needs the ability to submit requests to the relevant upload workflow and influence the bucket or bizType parameters. Whether authentication is required depends on the application's deployment and access policies.

Treat path-related parameters as identifiers, not filesystem paths. Use allowlists, server-side path generation, canonicalization, and containment checks against a trusted storage root.

Combine secure path-handling utilities with least-privilege storage permissions, isolated upload directories, authorization checks, and automated tests for traversal and encoded path variants.

Find out what's already
exploitable in your codebase.