Case · DiggingBeagle record

gh-aw compilation reused predictable temporary paths without resetting permissions

A local actor able to prepare a compiler temporary path could affect its destination or retained permissions. The advisory lists a patch, but its package metadata and investigated source state should not be flattened into an invented affected range.

Public disclosure: Nov 5, 2026

Scope

Vulnerability reported in a controlled research or disclosure setting. Exact prerequisites, versions and absence of documented exploitation must be preserved.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

The cited first-party advisory or research establishes the stated mechanism only within its documented conditions. No unrelated production compromise, extended victim scope, financial harm or universal mitigation is inferred.

Assessed Nov 9, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    A local adversary or previous workflow can prepare a same-named temporary file in a directory the workflow will later use.

  2. 02

    The MCP compiler opens that existing path in truncate mode, inheriting its permissions and path resolution.

  3. 03

    The compiler writes progress information to the pre-existing object before renaming it.

Claims & evidence

CLM-GHAW-TMP-PERMISSIONSThe gh-aw advisory reports that os.WriteFile did not reset permissions on existing .tmp paths despite a nominal 0600 mode argument and could follow a preplanted file.supported

Basis: reported finding

Link to claim

Implications

Predictable temporary-file reuse can violate confidentiality or integrity across workflows sharing a filesystem.

Controls and mitigations

  • Use secure exclusive temporary creation in a private directory, reject symlinks and verify file owner/permissions before materializing workflow artifacts.

Unknowns and contradictions

  • Needs local pathname control; no confirmed multi-tenant exploitation and affected version information differs across gh-aw components; use only the advisory for the exact fix range.

Sources and citation

Material revision history

  1. Nov 9, 2026 · Published version · first publication · revision 233