/

CVE-2026-105037

Severity:

CRITICAL RISK

(9.9)

External File Path Control (CWE-73) in station-middleware

CVE-2026-105037

Deferred

Vulnerability type

Category:

Path Traversal and Arbitrary File Read

CWE:

CWE-73

Impact:

Sensitive Information Exposure

Severity:

CRITICAL RISK

(9.9)

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

EnergizeLab station-middleware contains an external file path control vulnerability that allows any registered low-privilege account to read arbitrary files from the server. Successful exploitation may expose application source files, configuration data, credentials, and other server secrets when attacker-controlled paths are accepted without adequate restriction.

EnergizeLab station-middleware contains an external file path control vulnerability that allows any registered low-privilege account to read arbitrary files from the server. Successful exploitation may expose application source files, configuration data, credentials, and other server secrets when attacker-controlled paths are accepted without adequate restriction.

Affected context

The vulnerability occurs in station-middleware Docker deployments where an authenticated, low-privilege user can influence a file path processed by the NestJS application. It becomes risky when the application resolves or reads that path without sufficiently restricting the target location, validating the requested resource, or enforcing an approved file-access scope.

The vulnerability occurs in station-middleware Docker deployments where an authenticated, low-privilege user can influence a file path processed by the NestJS application. It becomes risky when the application resolves or reads that path without sufficiently restricting the target location, validating the requested resource, or enforcing an approved file-access scope.

Exploit preconditions

  • Attack surface: A station-middleware file-reading functionality exposed through the application
  • Required access: Any registered account with low privileges
  • Trigger point: A request or operation that accepts an attacker-controlled file path
  • Why exploitation is possible: The supplied path can cause the server to access files outside the intended application-controlled directory
  • Attack surface: A station-middleware file-reading functionality exposed through the application
  • Required access: Any registered account with low privileges
  • Trigger point: A request or operation that accepts an attacker-controlled file path
  • Why exploitation is possible: The supplied path can cause the server to access files outside the intended application-controlled directory

Why this happens

The underlying issue is insufficient control over externally supplied file names or paths. When user-controlled path values are passed to filesystem operations without canonicalization, allowlisting, containment checks, and authorization enforcement, the application may retrieve unintended files. This behavior maps to CWE-73: External Control of File Name or Path.

The underlying issue is insufficient control over externally supplied file names or paths. When user-controlled path values are passed to filesystem operations without canonicalization, allowlisting, containment checks, and authorization enforcement, the application may retrieve unintended files. This behavior maps to CWE-73: External Control of File Name or Path.

Potential impact

  • An attacker may read middleware source files and internal configuration
  • Database credentials, API keys, tokens, or other server secrets could be exposed
  • Disclosure of filesystem structure may enable follow-on attacks
  • Application and operational data could be used to expand access to connected systems
  • The confidentiality of the server environment could be compromised
  • An attacker may read middleware source files and internal configuration
  • Database credentials, API keys, tokens, or other server secrets could be exposed
  • Disclosure of filesystem structure may enable follow-on attacks
  • Application and operational data could be used to expand access to connected systems
  • The confidentiality of the server environment could be compromised

General mitigation guidance

Mitigation generally focuses on reducing trust in file path input and limiting filesystem access to explicitly approved resources.

Common defensive patterns include:

  • Replacing user-supplied paths with opaque identifiers mapped to server-side resources
  • Applying strict allowlists for permitted files and directories
  • Canonicalizing paths and verifying that resolved locations remain within an intended base directory
  • Separating file retrieval authorization from general account authentication
  • Running the service with least-privilege filesystem permissions
  • Keeping secrets outside web-accessible or application-readable directories where practical
  • Returning generic errors that do not disclose filesystem details

Mitigation generally focuses on reducing trust in file path input and limiting filesystem access to explicitly approved resources.

Common defensive patterns include:

  • Replacing user-supplied paths with opaque identifiers mapped to server-side resources
  • Applying strict allowlists for permitted files and directories
  • Canonicalizing paths and verifying that resolved locations remain within an intended base directory
  • Separating file retrieval authorization from general account authentication
  • Running the service with least-privilege filesystem permissions
  • Keeping secrets outside web-accessible or application-readable directories where practical
  • Returning generic errors that do not disclose filesystem details

How teams detect issues like this

Organizations can identify this class of issue through:

  • Static analysis rules for filesystem APIs receiving request parameters
  • Code review checks for path concatenation, normalization, and containment validation
  • Tests covering unauthorized files, alternate path representations, and boundary-directory access
  • Runtime monitoring for unusual file-read requests and access to configuration or secret locations
  • Policy enforcement requiring allowlisted resource identifiers instead of raw filesystem paths
  • Automated security review tools that flag externally controlled file names and paths

Organizations can identify this class of issue through:

  • Static analysis rules for filesystem APIs receiving request parameters
  • Code review checks for path concatenation, normalization, and containment validation
  • Tests covering unauthorized files, alternate path representations, and boundary-directory access
  • Runtime monitoring for unusual file-read requests and access to configuration or secret locations
  • Policy enforcement requiring allowlisted resource identifiers instead of raw filesystem paths
  • Automated security review tools that flag externally controlled file names and paths

Sources

SourceLink
github.comgithub.com/xn0tsa/your-secrets-are-safe-with-me
takeonme.orgtakeonme.org/gcves/GCVE-1337-2026-00000000000000110111111111111111110000000000000000000011111100011111111110000000000000000000011111111111111000000000000000000010001/
theverge.comtheverge.com/tech/1010727/eiliko-robot-hack-energize-lab

Frequently asked

questions

It may be exploitable through the station-middleware application interface when the relevant file-reading functionality is reachable by an authenticated user.

The described condition requires a registered account, but only low privileges are needed. The important security boundary is whether that account can influence the file path processed by the server.

Avoid accepting raw filesystem paths from clients. Use server-side resource identifiers, strict allowlists, canonicalization, directory-containment checks, and authorization tied to each requested resource.

Apply least-privilege filesystem permissions, keep sensitive files outside reachable directories, review all filesystem operations that use external input, and test path-boundary and authorization behavior in automated security checks.

It may be exploitable through the station-middleware application interface when the relevant file-reading functionality is reachable by an authenticated user.

The described condition requires a registered account, but only low privileges are needed. The important security boundary is whether that account can influence the file path processed by the server.

Avoid accepting raw filesystem paths from clients. Use server-side resource identifiers, strict allowlists, canonicalization, directory-containment checks, and authorization tied to each requested resource.

Apply least-privilege filesystem permissions, keep sensitive files outside reachable directories, review all filesystem operations that use external input, and test path-boundary and authorization behavior in automated security checks.

Find out what's already
exploitable in your codebase.