Ash.Reactor change step fails open, skipping a change when its where guard raises
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.32.2 and 6d2eb86ea8d2ba5ffac89c1b8b9bf46e331feabc.
Not Failing Securely (Failing Open) vulnerability in ash-project ash skips an Ash.Reactor change when the guard controlling it raises, so a change meant to run does not. An Ash.Reactor change step can be gated by where validations that decide whether the change runs. Ash.Reactor.ChangeStep (lib/ash/reactor/steps/change_step.ex) evaluated those guards in apply_where_clauses/3, and apply_validation rescued any exception into {:error, error}. The reduce treated that identically to a guard whose condition was simply not met and bypassed the change. So when a guard raises (for example on attacker-influenced input), a change that enforces a security-relevant modification is skipped rather than failing the step. The fix distinguishes a raised exception (now {:raised, error}) and halts the step with an error, failing closed. This issue affects ash: from 3.0.0-rc.17 before 3.32.2.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| ash-project | >=3.0.0-rc.17 <3.32.2, >=321f43bd05ad9544e693cbf797243693e51a6be4 <6d2eb86ea8d2ba5ffac89c1b8b9bf46e331feabc | 3.32.2, 6d2eb86ea8d2ba5ffac89c1b8b9bf46e331feabc |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket