CVE-2024-49756: AshPostgres empty, atomic, non-bulk actions, policy bypass for side-effects vulnerability.
ash-project · ash_postgres
Vendor fix available · Affected: ash-project ash_postgres · Exploitation: unlikely (under 1%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 44% of scored CVEs
DescriptionCVE.org
AshPostgres is the PostgreSQL data layer for Ash Framework. Starting in version 2.0.0 and prior to version 2.4.10, 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. To be vulnerable, an affected user 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`); and 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. This problem has been patched in `2.4.10` of `ash_postgres`. Several workarounds are available. Potentially affected users may determine that none of their actions are vulnerable using a script the maintainers provide in the GitHub Security Advisory, add `require_atomic? false` to any potentially affected update action, replace any usage of `Ash.update` with `Ash.bulk_update` for an affected action, and/or add an update timestamp to their action.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- ash-project · ash_postgres>= 2.0.0, < 2.4.10
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Unlikely (under 1%). EPSS under 1%, or no score yet.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- ash-project
- Published
- October 2024
CoverageNo articles yet
No CyberSIXT article names CVE-2024-49756 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-552cwe.mitre.org
- github.com/ash-project/ash_postgres/security/advisories/GHSA-hf5github.com
- github.com/ash-project/ash_postgres/commit/1228fcd851f29a68609e2github.com
- elixirforum.com/t/empty-update-action-with-policies/66954elixirforum.com
- gist.github.com/zachdaniel/e49166b765978c48dfaf998d06df436egist.github.com