# CVE-2026-19756: Dromara lamp-cloud path traversal in code generator

Source: https://junglewise.ai/threats/cve-2026-19756-dromara-lamp-cloud-path-traversal-in-code-generator  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-13. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-19756 · Severity: medium · CVSS 6.3 · Published 2026-08-13

Dromara lamp-cloud is a microservices development platform that includes a code generation tool. An authenticated attacker can exploit a path traversal vulnerability in the code generator endpoint to write files to arbitrary locations on the server, potentially overwriting configuration files or application code and achieving remote code execution.

Technologies: [Dromara Lamp-Cloud](https://junglewise.ai/threats/technologies/lamp-cloud). Vendors: [Dromara](https://junglewise.ai/threats/vendors/dromara).

## Quick answers

**Is CVE-2026-19756 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-19756 being exploited in the wild.

**How severe is CVE-2026-19756?** Medium severity, with a CVSS score of 6.3, published 13 August 2026.

**Which products and versions are affected?** Dromara Lamp-Cloud up to 5.10.0.

**Is there a fix for CVE-2026-19756?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-19756 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-19756?** Check whether you run Dromara Lamp-Cloud at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a CWE-22 path traversal in the DefGenProjectController.java code generation endpoint. The POST /defGenProject/generator endpoint accepts a ProjectGeneratorVO request body containing outputDir, projectPrefix, and parent fields that are concatenated directly into file paths without canonicalization or confinement to a base directory. An authenticated attacker can supply traversal sequences (../) or absolute paths in these fields to write generated template output to arbitrary filesystem locations. The attack requires a valid authentication token but no elevated privileges. Depending on deployment, writing to classpath or configuration directories could enable RCE.

## Affected products

- Dromara lamp-cloud up to 5.10.0

## Timeline

- 2026-06-25: disclosed: Issue #411 opened on GitHub
- 2026-08-13: advisory: CVE-2026-19756 published

## References

- [https://github.com/dromara/lamp-cloud/](https://github.com/dromara/lamp-cloud/)
- [https://github.com/dromara/lamp-cloud/issues/411](https://github.com/dromara/lamp-cloud/issues/411)

## Related threats

- [lamp-cloud insecure direct object reference in file attachment endpoint](https://junglewise.ai/threats/cve-2026-109168-lamp-cloud-through-5-10-1-contains-an-insecure-direct-object)
- [lamp-cloud broken object level authorization in /anyone/visible/resource](https://junglewise.ai/threats/cve-2026-94536-lamp-cloud-through-5-10-0-fails-to-validate-the-employeeid)
- [lamp-cloud authorization bypass in deleteMyNotice](https://junglewise.ai/threats/cve-2026-94535-lamp-cloud-through-5-10-0-contains-an-authorization-bypass)
- [lamp-cloud authorization bypass in FileAnyoneController](https://junglewise.ai/threats/cve-2026-94533-lamp-cloud-through-5-10-0-contains-an-authorization-bypass)
- [lamp-cloud authorization bypass in getUserInfoById endpoint](https://junglewise.ai/threats/cve-2026-94532-lamp-cloud-through-5-10-0-contains-an-authorization-bypass)
