# VNX-GH-006: Release workflow restores a cache writable by untrusted runs

A workflow that publishes releases restores dependency caches that other workflows on the default branch can write.

Caches are shared across workflows in the same branch scope. A compromised or injectable workflow on the default branch can save a poisoned cache entry that a release workflow later restores and ships inside a published artifact.

| | |
|---|---|
| Severity | High |
| Confidence | medium |
| CWE | [CWE-349](https://cwe.mitre.org/data/definitions/349.html), [CWE-494](https://cwe.mitre.org/data/definitions/494.html) |
| Command | `vulnetix gha workflows`, `vulnetix gha audit` |
| Mappings | T1195.002 |

## Remediation

Disable caching in workflows that publish releases or sign artifacts (remove cache: / actions/cache), or use a cache key namespace no other workflow writes.

## Run only this rule

```sh
vulnetix gha workflows --rule VNX-GH-006
```

## Scoring

CWSS vector at the rule's default severity: `CWSS:1.0/TI:H/AP:A/AL:A/IC:N/FC:LT/RP:N/RL:A/AV:I/AS:N/IN:A/SC:A/BI:C/DI:H/EX:M/EC:N/P:W`. A finding whose severity the repository's settings moved is scored at its adjusted severity.

All rules: [GitHub rules](/cli/github-rules/overview.md).
