/

CVE-2026-130867

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in GreaterWMS Static Routes

CVE-2026-130867

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Sensitive Information Disclosure and Potential Account Impersonation

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

GreaterWMS contains a path traversal vulnerability in several static-resource routes that use raw request paths without normalization. An unauthenticated attacker may be able to access files such as the SQLite database, potentially obtaining user OpenID tokens that could be used to impersonate accounts.

Affected context

The issue occurs in the css, js, statics, and fonts routes in greaterwms/views.py. It becomes risky when these routes are reachable and concatenate request path values into file paths without safely normalizing and constraining the result. The impact depends on which files the application process can access.

Exploit preconditions

  • Attack surface: Network-accessible static-resource routes
  • Required access: No authentication is described as necessary
  • Trigger point: A request to an affected route containing URL-encoded traversal sequences
  • Why exploitation is possible: Raw request path data is used to form file paths without adequate normalization or containment checks

Why this happens

The application constructs file paths from untrusted request path data without ensuring the resolved path remains within the intended static-resource directory. This is a path traversal flaw mapped to CWE-22: Improper Limitation of a Pathname to a Restricted Directory. URL encoding does not make path data trustworthy; it must be decoded and safely resolved under a restricted base directory before use.

Potential impact

  • Attackers may read files accessible to the application process, potentially including db.sqlite3.
  • Exposed database contents may reveal sensitive user or application information.
  • Stolen OpenID tokens could enable account impersonation if they remain valid and are accepted by the application.
  • Additional accessible files may disclose configuration or other operational details.

General mitigation guidance

Common defensive patterns focus on preventing user-controlled paths from escaping their intended directory:

  • Prefer mapping approved resource identifiers to known files rather than accepting arbitrary path fragments.
  • Decode and canonicalize paths consistently, then verify the resolved path remains within the designated resource directory.
  • Reject traversal patterns and use strict allowlists for file names or extensions where appropriate.
  • Keep sensitive files outside directories served by static-resource handlers.
  • Run the application with least-privilege filesystem access so a path-handling failure exposes as little as possible.

How teams detect issues like this

Detection approaches may include:

  • Static analysis for request-derived values concatenated into filesystem paths without canonicalization and containment checks.
  • Code review of static-file handlers, path joins, URL decoding, and validation order.
  • Tests and security checks that verify traversal attempts cannot resolve outside approved directories.
  • Logging and monitoring for suspicious encoded path segments and unexpected file-access errors.
  • Policy enforcement requiring filesystem access to remain constrained to explicitly approved directories.

Sources

SourceLink
github.comgithub.com/GreaterWMS/GreaterWMS/blob/V2.1.54/greaterwms/urls.py#L49-L52
github.comgithub.com/GreaterWMS/GreaterWMS/blob/V2.1.54/greaterwms/views.py#L21-L47
github.comgithub.com/GreaterWMS/GreaterWMS/issues/415
vulncheck.comvulncheck.com/advisories/greaterwms-through-2.1.54-unauthenticated-path-traversal-via-static-asset-routes

Frequently asked

questions

The affected routes are described as unauthenticated and network-accessible, so a reachable deployment may be exposed to remote requests.

No account is described as necessary. The attacker must be able to send requests to an affected route, and the application process must be able to read the targeted file.

Avoid using arbitrary request paths to select files. Resolve any permitted path against a fixed base directory and verify that the result remains within that directory.

Use allowlisted resource mappings, test path containment across encoded and normalized inputs, keep sensitive files outside served directories, and limit application filesystem permissions.

Find out what's already
exploitable in your codebase.