CVE-2026-138389
Agent Zero can lose authentication when its stored login setting disappears
agent0ai · agent-zero
First documented disclosure · Review checkpoint
Summary
A previously protected Agent Zero deployment can restart without authentication after losing AUTH_LOGIN.
Severity and exploitation evidence
Medium · 6.9/10 · CVSS 4.0. Severity source.
Exploitation not established: The reviewed public report and any maintainer confirmation describe research or a correction, not malicious exploitation or identified victims. No payload, model, package or proof of concept was executed in this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
The HTTP and WebSocket guards treat a missing credential hash as authentication disabled. The settings file is rewritten non-atomically, and credential absence does not preserve a prior enabled state.
Conditions required
The instance uses credentials from usr/.env, that configuration loses its login line before restart, and an unauthenticated caller can reach the service. Credentials injected independently through the container environment do not follow the reported file-loss path.
Potential impact
Unauthenticated use of the agent’s APIs and tools with application privileges after the configuration fault.
Affected versions and configurations
CNA lists 2.0 through 2.16. The original report verifies v2.15 at ba9b67df0f54ac78106ae85c552ef5d2458f7c9a.
Fix and mitigation status
PR2079 remains open. It proposes atomic settings writes and requiring authentication if either credential field remains. No merged fix or corrected package verified.
Practical next steps
Protect and validate the authentication configuration before restart, restrict network reachability, and retain a separate authentication boundary until a fix is verified.
Operating lesson
Authentication state must not silently disappear when its backing configuration is damaged.
Evidence and limits
The proposal protects partial credential loss but is not proof that a wholly missing file preserves an independent authentication-enabled state. A deployment intentionally configured without authentication is a separate posture. Issuing CNA publication was 2026-11-30, separate from the original public disclosure. Severity is VulDB CNA CVSS 4.0 Medium 6.9. CNA also supplies CVSS 3.1 High 7.3. Static review only; upstream tests were not repeated.
Sources
- Original public report
Primary source ·
- Open partial-credential and atomic-write proposal
Primary source ·
- Issuing CNA record
Primary source ·