Vulnerability GHSA-hf59-7rwq-785m

Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
2 years ago
October 23, 2024 at 05:22 PM UTC
In AshPostgres, empty, atomic, non-bulk actions, policy bypass for side-effects vulnerability.
2.0.0 - 2.4.9
2.0.0 - 2.4.9

Summary

In AshPostgres, empty, atomic, non-bulk actions, policy bypass for side-effects vulnerability.

Details

Impact

What kind of vulnerability is it? Who is impacted?

In certain very specific situations, it was possible for the policies of an update action to be skipped. This occurred only on "empty" update actions (no changing fields), and would allow their hooks (side effects) to be performed when they should not have been. Note that this does not allow reading new data that the user should not have had access to, only triggering a side effect a user should not have been able to trigger.

You must have an update action that:

  • Is on a resource with no attributes containing an "update default" (updated_at timestamp, for example)
  • can be performed atomically.
  • Does not have require_atomic? false
  • Has at least one authorizer (typically Ash.Policy.Authorizer)
  • Has at least one change (on the resource's changes block or in the action itself) This is where the side-effects would be performed when they should not have been.

Impacted packages

Timeline

Published
2 years ago
October 23, 2024 at 05:22 PM UTC
Fixed (2.4.10)
2 years ago
October 23, 2024 at 02:19 AM UTC
Last Modified
11 months ago
December 10, 2025 at 12:40 AM UTC