# CVE-2026-40503: HKUDS OpenHarness path traversal in /memory show command

Source: https://junglewise.ai/threats/cve-2026-40503-hkuds-openharness-path-traversal-in-memory-show-command  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-16. Updated: 2026-07-14  
License: CC BY 4.0 with a link back

CVE-2026-40503 · Severity: medium · CVSS 6.5 · Published 2026-04-16

OpenHarness, an open-source AI development framework, contains a security flaw in its chat-based command system. A remote user with chat access can use a specific command to bypass security restrictions and read sensitive files from the server hosting the application. This could lead to the exposure of private configuration files, system data, or other sensitive information stored on the host machine.

Technologies: [HKUDS OpenHarness](https://junglewise.ai/threats/technologies/openharness). Vendors: [HKUDS](https://junglewise.ai/threats/vendors/hkuds).

## Quick answers

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

**How severe is CVE-2026-40503?** Medium severity, with a CVSS score of 6.5, published 16 April 2026.

**Which products and versions are affected?** HKUDS OpenHarness Prior to commit dd1d235450dd987b20bff01b7bfb02fe8620a0af.

**Is there a fix for CVE-2026-40503?** A patch was published on 2026-04-13: Fix merged into main branch in commit dd1d235 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-40503 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-40503?** Check whether you run HKUDS OpenHarness 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

A path traversal vulnerability exists in OpenHarness due to insufficient input validation in the '/memory show' slash command. The application joins attacker-controlled path parameters with the project memory directory without verifying that the resulting path remains within the intended directory boundaries. A remote attacker with chat access can provide traversal sequences (e.g., ../../) to escape the project memory directory and read arbitrary files accessible to the OpenHarness process. The issue was addressed in commit dd1d235 by enforcing filesystem containment and hardening the gateway's slash command security model.

## Affected products

- HKUDS OpenHarness Prior to commit dd1d235450dd987b20bff01b7bfb02fe8620a0af

## Timeline

- 2026-04-12: disclosed: Initial pull request submitted by researcher
- 2026-04-13: patched: Fix merged into main branch in commit dd1d235
- 2026-04-16: advisory: CVE published to NVD

## References

- [https://github.com/HKUDS/OpenHarness/commit/dd1d235450dd987b20bff01b7bfb02fe8620a0af](https://github.com/HKUDS/OpenHarness/commit/dd1d235450dd987b20bff01b7bfb02fe8620a0af)
- [https://github.com/HKUDS/OpenHarness/pull/127](https://github.com/HKUDS/OpenHarness/pull/127)
- [https://www.vulncheck.com/advisories/openharness-path-traversal-information-disclosure-via-memory-show](https://www.vulncheck.com/advisories/openharness-path-traversal-information-disclosure-via-memory-show)

## Related threats

- [HKUDS OpenHarness prompt injection via slash commands](https://junglewise.ai/threats/cve-2026-56696-hkuds-openharness-prompt-injection-via-slash-commands)
- [HKUDS OpenHarness missing authorization in ohmo gateway slash commands](https://junglewise.ai/threats/cve-2026-56695-hkuds-openharness-missing-authorization-in-ohmo-gateway-slash)
- [HKUDS OpenHarness contains a remote code execution vulnerability in the /bridge slash command that allows remote…](https://junglewise.ai/threats/cve-2026-7551-hkuds-openharness-contains-a-remote-code-execution-vulnerability)
- [HKUDS OpenHarness prior to PR #147 remediation contains an insecure default configuration vulnerability where remote…](https://junglewise.ai/threats/cve-2026-6823-hkuds-openharness-prior-to-pr-147-remediation-contains-an-insecure)
- [HKUDS OpenHarness prior to PR #156 remediation exposes plugin lifecycle commands including /plugin install, /plugin…](https://junglewise.ai/threats/cve-2026-6819-hkuds-openharness-prior-to-pr-156-remediation-exposes-plugin)
