/

CVE-2026-55494

Severity:

CRITICAL RISK

(9.8)

Broken Access Control (CWE-284) in Tugtainer Agent API

CVE-2026-55494

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-284

Impact:

Unauthenticated Docker management and potential container or host compromise

Severity:

CRITICAL RISK

(9.8)

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

Tugtainer Agent can expose Docker management APIs without authentication when the AGENT_SECRET configuration value is empty. An unauthenticated attacker who can reach the Agent service may control protected operations, potentially affecting containers and the host environment.

Affected context

The issue occurs in Tugtainer Agent deployments that rely on request signatures to protect Agent API routes but do not configure AGENT_SECRET. In that state, signature verification treats the empty secret as valid and protected endpoints may be reachable without establishing the intended authentication boundary.

Exploit preconditions

  • Attack surface: Tugtainer Agent HTTP API routes
  • Required access: Network reachability to the Agent service; valid credentials may not be required
  • Configuration condition: AGENT_SECRET is unset or empty
  • Trigger point: A request reaches an API route protected by signature verification
  • Why exploitation is possible: The verification function returns success when no secret is configured, bypassing the expected authentication control

Why this happens

The underlying bug is a fail-open authentication design. Signature verification accepts an empty secret as a successful verification result instead of rejecting the request or treating the missing configuration as an invalid deployment state. This maps to CWE-284, Improper Access Control, because the application fails to enforce authorization before allowing access to protected Docker management operations.

Potential impact

  • An unauthenticated attacker could invoke protected Agent API operations.
  • An attacker could start, stop, remove, or otherwise modify managed containers.
  • Container workloads could be disrupted, replaced, or used to access sensitive resources.
  • The Docker host or connected environments could be exposed to further compromise, depending on privileges.
  • Confidentiality, integrity, and availability of managed services could be affected.

General mitigation guidance

Mitigation generally focuses on making authentication fail closed and treating

missing security configuration as an unsafe deployment state.

Common defensive patterns include:

  • Require a strong, non-empty secret before starting the Agent.
  • Reject all protected requests when authentication configuration is absent or invalid.
  • Keep Docker management APIs on restricted networks and avoid unnecessary public exposure.
  • Apply least privilege to the Agent and its Docker access, limiting available management scope where possible.
  • Use layered controls such as network policy, TLS, administrative authentication, and audit logging.
  • Protect secrets through dedicated secret-management controls rather than mutable application configuration.

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis and code review checks for authentication branches that accept empty, null, default, or missing credentials.
  • Tests that verify protected endpoints reject requests when secrets are unset, malformed, or unavailable.
  • Configuration policy checks requiring non-empty secrets for deployed Agents.
  • Network exposure reviews for Docker management services and Agent API listeners.
  • Runtime monitoring for unauthenticated requests, unusual container-management actions, and configuration changes.
  • Automated security review tools that flag fail-open authorization logic and default authentication bypasses.

Sources

SourceLink
github.comgithub.com/Quenary/tugtainer/commit/0052a5544e187a4d12f771838a8a23ca4afb61cd
github.comgithub.com/Quenary/tugtainer/releases/tag/v1.30.4
github.comgithub.com/Quenary/tugtainer/security/advisories/GHSA-wgw2-c96g-p7h7

Frequently asked

questions

It may be remotely exploitable when the Tugtainer Agent API is network-reachable and

AGENT_SECRET is empty. Exploitability depends on network exposure and applicable

perimeter controls.

No application account may be required when the affected Agent is reachable and the

empty-secret condition causes signature verification to succeed.

Require a non-empty secret and make authentication fail closed whenever the secret is

missing or invalid. Restrict network access to the Agent as an additional control.

Add negative authentication tests for missing and malformed credentials, enforce secure

configuration policies in deployment pipelines, and monitor protected APIs for

unauthenticated or anomalous management activity.

Find out what's already
exploitable in your codebase.