# CVE-2026-112138: Diem path traversal in code editor

Source: https://junglewise.ai/threats/cve-2026-112138-a-flaw-has-been-found-in-diem-project-diem-up-to-5-1-3-the  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-19. Updated: 2026-10-19  
License: CC BY 4.0 with a link back

CVE-2026-112138 · Severity: medium · CVSS 4.7 · Published 2026-10-19

Diem is a content management framework for PHP-based websites. The code editor feature in Diem allows authenticated users with code editor privileges to read and write files on the server. A path traversal flaw allows these users to access files outside the intended project directory, potentially reading sensitive configuration files or overwriting application files to compromise the server.

Technologies: [Diem-Project Diem](https://junglewise.ai/threats/technologies/diem). Vendors: [Diem-Project](https://junglewise.ai/threats/vendors/diem-project).

## Quick answers

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

**How severe is CVE-2026-112138?** Medium severity, with a CVSS score of 4.7, published 19 October 2026.

**Which products and versions are affected?** Diem-Project Diem up to 5.1.3.

**Is there a fix for CVE-2026-112138?** 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-112138 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-112138?** Check whether you run Diem-Project Diem 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 exists in dmCodeEditor's actions.class.php, where user-supplied file paths are concatenated with the project root but the boundary check uses the uncanonicalized string before filesystem operations. An attacker with the code_editor credential can inject ../ sequences that are resolved by the OS after the string-prefix validation, bypassing the isInProject() check. Both file read and file write operations are affected, allowing disclosure and modification of files readable/writable by the PHP process.

## Affected products

- diem-project Diem up to 5.1.3

## Timeline

- 2026-09-01: disclosed
- 2026-10-19: advisory

## References

- [https://github.com/diem-project/diem/](https://github.com/diem-project/diem/)
- [https://github.com/diem-project/diem/issues/451](https://github.com/diem-project/diem/issues/451)

## Related threats

- [Diem CMF open redirect in sign-in authentication](https://junglewise.ai/threats/cve-2026-112040-a-vulnerability-was-determined-in-diem-project-diem-up-to)
- [Diem CMF cross-site request forgery in admin console](https://junglewise.ai/threats/cve-2026-86182-diem-cmf-cross-site-request-forgery-in-admin-console)
- [Diem CMF unrestricted file upload in widget editor](https://junglewise.ai/threats/cve-2026-82679-diem-cmf-unrestricted-file-upload-in-widget-editor)
- [diem-project Diem OS command injection in Administrative Console](https://junglewise.ai/threats/cve-2026-82678-diem-project-diem-os-command-injection-in-administrative-console)
