/

CVE-2026-117127

Severity:

HIGH RISK

(7.5)

Directory Traversal (CWE-22) in GleezCMS media.php

CVE-2026-117127

Deferred

Vulnerability type

Category:

Directory Traversal

CWE:

CWE-22

Impact:

Sensitive Information Disclosure

Severity:

HIGH RISK

(7.5)

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 directory traversal vulnerability in GleezCMS v1.2.0 affects the action_serve function in media.php. A remote attacker may be able to access sensitive files if requests can reach the function and paths are not properly restricted.

Affected context

The reported issue occurs in GleezCMS v1.2.0, in the media-serving path handled by action_serve in media.php. It becomes a risk where remote requests can invoke this function and the application does not adequately constrain file paths to the intended media directory.

Exploit preconditions

  • Attack surface: The remotely accessible media-serving functionality in media.php
  • Required access: Network access to the relevant application endpoint; authentication requirements are not specified
  • Trigger point: A request handled by action_serve that supplies a path
  • Why exploitation is possible: Insufficient path validation or containment may allow a requested file path to resolve outside the intended directory

Why this happens

Directory traversal occurs when application code uses externally influenced path information without reliably ensuring that the resolved file remains within an approved directory. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). The available description identifies the affected function but does not specify the exact implementation flaw.

Potential impact

  • An attacker may read sensitive files accessible to the application process.
  • Exposed files could contain configuration data, credentials, or other confidential information.
  • Disclosed information could support further attacks against the application or its environment.

General mitigation guidance

Common defensive patterns include:

  • Resolve requested paths against a fixed, trusted base directory and verify the final canonical path remains within it.
  • Prefer mapping opaque file identifiers to approved files rather than accepting arbitrary paths.
  • Validate inputs using a strict allowlist and reject unexpected path components.
  • Limit the application process's filesystem permissions to the files it needs to serve.
  • Avoid revealing filesystem paths or unnecessary details in error responses.

How teams detect issues like this

Review file-serving code for externally influenced values passed to filesystem APIs, especially where path normalization or containment checks are absent or occur after file access. Static analysis can flag user-controlled paths reaching file operations. Consider tests and security policies that verify path resolution stays within approved directories and that the application runs with minimal filesystem access.

Sources

SourceLink
gist.github.comgist.github.com/hackerx-sk/ac89e49b001402db362414946985ee05
github.comgithub.com/gleez/cms
github.comgithub.com/gleez/cms/blob/master/modules/gleez/classes/controller/media.php
gleezcms.orggleezcms.org

Frequently asked

questions

The description identifies a remote attack surface in action_serve; exploitation would depend on the endpoint being reachable and accepting a path that is not adequately restricted.

The available information does not specify authentication requirements. Access to the relevant media-serving endpoint is the stated prerequisite.

Resolve paths against a trusted base directory and verify that the canonical result remains within that directory before accessing a file.

Use allowlisted file identifiers or strict path validation, test filesystem boundary conditions, and restrict the application's filesystem permissions.

Find out what's already
exploitable in your codebase.