Credential disclosure in SurrealDB CLI help output
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
SurrealDB from 1.0.0 before 4.0.0 prints the values of the SURREAL_PASS and SURREAL_TOKEN environment variables in clear text in the help output of CLI commands such as surreal start, sql, import, export, and mcp. The arguments do not set clap's hide_env_values, which exposes secrets. Anyone who later views that output, such as in shell logs, CI logs, or screen shares, can obtain root database credentials.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Description from the CNA
SurrealDB 1.0.0 before 4.0.0 prints SURREAL_PASS and SURREAL_TOKEN environment variable values in clear text in the --help and -h output of CLI commands such as surreal start, sql, import, export, and mcp, because the arguments do not set clap's hide_env_values. Anyone who later sees that terminal output, for example in shell logs, CI logs, or screen shares, can obtain root database credentials.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade SurrealDB to version 4.0.0, which is the first fixed version.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
- Fix · CNA surrealdb (surrealdb) Fixed in 4.0.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
surrealdb 4.0.0
16 records Highest priority Priority HIGH 1 HIGH, 9 MEDIUM, 6 LOW
Other records, highest priority first
- TI-2026-96302 SurrealDB Memory Exhaustion via GraphQL WebSocket UpgradePriority HIGH 77
- TI-2026-96305 Decimal overflow in SurrealDB math functions crashes the serverPriority MEDIUM 64
- TI-2026-96295 Information disclosure in SurrealDB via ON DELETE REJECT errorsPriority MEDIUM 64
Timeline
- 2026-11-21 Threatist record created from CVE-2026-134289
- 2026-11-21 Alias added: GHSA-77xq-pgc2-9j9g
- 2026-11-24 CISA SSVC decision points changed
References
More surrealdb vulnerabilities
- TI-2026-96302 SurrealDB Memory Exhaustion via GraphQL WebSocket Upgrade CVSS 4.0HIGH 8.7
- TI-2026-84301 MCP session hijack in SurrealDB via BoundSubject collision CVSS 4.0HIGH 8.6
- TI-2026-96306 Out-of-bounds read in SurrealKV InternalKeyRef decoder CVSS 4.0HIGH 8.3
- TI-2026-96310 Authorization bypass in SurrealDB via COMPUTED field permissions CVSS 4.0HIGH 7.1
- TI-2026-96305 Decimal overflow in SurrealDB math functions crashes the server CVSS 4.0HIGH 7.1
- TI-2026-96295 Information disclosure in SurrealDB via ON DELETE REJECT errors CVSS 4.0HIGH 7.1
Sources
- CVE-2026-134289 · CVE Program
- CVE-2026-134289 · NVD
- FIRST EPSS
- GHSA-77xq-pgc2-9j9g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences