# CVE-2024-49756: AshPostgres empty, atomic, non-bulk actions, policy bypass for side-effects vulnerability.

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2024-10-23T17:04:50.037Z
- Modified: 2026-06-17T08:00:23.380Z
- Also known as: GHSA-hf59-7rwq-785m
- Weaknesses: CWE-552
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ash-project ash_postgres: >= 2.0.0, < 2.4.10
- ash_framework ashpostgres: up to 2.0.0; before 2.4.10
- ash_postgres (Hex): from 2.0.0 before 2.4.10

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/ash-project/ash_postgres/security/advisories/GHSA-hf59-7rwq-785m> (web)
- <https://github.com/ash-project/ash_postgres/commit/1228fcd851f29a68609e236f7d6a2622a4b5c4ba> (web)
- <https://elixirforum.com/t/empty-update-action-with-policies/66954> (web)
- <https://gist.github.com/zachdaniel/e49166b765978c48dfaf998d06df436e> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-49756> (advisory)
- <https://github.com/ash-project/ash_postgres> (package)

## Sources

- CVE List: [CVE-2024-49756](https://www.cve.org/CVERecord?id=CVE-2024-49756), CVE Terms of Use, modified 2024-10-24
- GitHub Advisory Database: [GHSA-hf59-7rwq-785m](https://github.com/advisories/GHSA-hf59-7rwq-785m), CC-BY-4.0, modified 2025-12-10
- NVD: [CVE-2024-49756](https://nvd.nist.gov/vuln/detail/CVE-2024-49756), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-49756 · Whole record: https://cve.day/CVE-2024-49756.json · Rebuilt by cve.day 2026-11-25T22:58:47.199Z
