Vulnerability DatabaseGHSA-9q5v-84p5-m3p2

GHSA-9q5v-84p5-m3p2: 
Rust vulnerability analysis and mitigation

Impact

To open a command's patterns into the names they match, the gate reads the disk on a budget: 20,000 directory entries or 150 ms. The budget was one for a whole segment of the line, and a pattern still unread when it ran out was judged as written. One word could spend it for every word after it, and a guarded name spelled through a pattern after that word, such as .clau[d]e/settings.json, .ter[m]axa/policy.yaml or .en[v], stayed as written: a name no path rule has. With the starter policy, from v0.22.0 to v0.25.1, echo /*/*/*/* > .ter[m]axa/policy.yaml and cat payload /*/*/*/*/none > .clau[d]e/settings.json are allowed by echo * and cat *, through termaxa check and through the hook, on a machine where /*/*/*/* reads past the budget. bash then overwrites the policy or the hook config; zsh overwrites them with the first line, and with the second where nonomatch is set. Without the first pattern each line is refused by the path rule that guards the file. Measured on each release's own binary from v0.21.10 to v0.25.1 in a Linux container where /*/*/*/* matches 48,743 names. v0.21.10 also allows the plain spelling, which GHSA-x6qc-h3gm-5fj2 fixed in v0.22.0. The time a check takes also grew with the line, up to 150 ms for each segment's patterns: on v0.25.1 the hook took 16.3 s over 430 segments of ls /*/*/*/* and 37.4 s over 1,000. A harness that hears nothing from its hook in time may run the command: termaxa init gives Codex's hook 15 seconds, and Codex's documentation says a PreToolUse hook blocks only on an explicit denial; Claude Code's documentation says a PreToolUse hook that times out does not block the call unless it sets onFailure: "block", which termaxa init does not set. termaxa init wires Hermes Agent and Copilot CLI to fail closed.

Patches

Fixed in v0.25.2. Each word reads on a budget of its own, 100,000 entries or a second, counting the names looked up after a pattern, and a word the walk cannot finish is refused in every mode, as a word that opens into more than 100,000 words already was. The opening of all of a line's words ends four seconds after its judging begins; a word not read by then is refused. Both lines above are refused, and the hook answers a line of 1,000 segments in about four seconds.

Workarounds

Upgrade. Until then, set the harness to block the call when its hook fails or times out, where it has such a setting: "onFailure": "block" on Claude Code's termaxa hook entries (Claude Code 2.1.295 or later). A path rule does not stand in for the fix: the guarded name is never opened.


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-9q5v-84p5-m3p2HIGH7.1
  • Rust logoRust
  • termaxa
NoYesNov 26, 2026
GHSA-hwjc-hcp6-3fhxHIGHN/A
  • Rust logoRust
  • napi
NoYesNov 26, 2026
GHSA-7qh9-r57w-m46cHIGHN/A
  • Rust logoRust
  • napi
NoYesNov 26, 2026
GHSA-94v8-9f79-j8qfLOWN/A
  • Rust logoRust
  • frink-core
NoYesNov 25, 2026
GHSA-xj2w-fm6g-f5pjLOWN/A
  • Rust logoRust
  • frink-core
NoYesNov 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management