# CVE-2024-10976: PostgreSQL row security below e.g. subqueries disregards user ID changes

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-11-14 · Modified: 2025-11-03
- Aliases: ALPINE-CVE-2024-10976, UBUNTU-CVE-2024-10976, DEBIAN-CVE-2024-10976, CGA-37h6-2cxj-hqp9, CGA-44hr-xhxj-pqx2, CGA-4p74-3gw5-53qw, CGA-68m5-w3fm-7v6q, CGA-6x2j-q345-88hg, CGA-7cvm-39q7-fhwp, CGA-8c5r-pxp6-v6x4, CGA-fwxc-r9mw-579x, CGA-g7v8-h59h-fhx7, CGA-m93r-w3h4-7969, CGA-mh8p-hfm9-34qh, CGA-p9qw-8p69-6r23, CGA-qc84-595g-cjc6, CGA-v3p8-xfpw-q8gv, CGA-wq3j-v3p2-474x
- Record: https://cvemate.com/vulnerability/CVE-2024-10976 · JSON: https://cvemate.com/vulnerability/CVE-2024-10976/json

## Description

```text
Incomplete tracking in PostgreSQL of tables with row security allows a reused query to view or change different rows from those intended.  CVE-2023-2455 and CVE-2016-2193 fixed most interaction between row security and user ID changes.  They missed cases where a subquery, WITH query, security invoker view, or SQL-language function references a table with a row-level security policy.  This has the same consequences as the two earlier CVEs.  That is to say, it leads to potentially incorrect policies being applied in cases where role-specific policies are used and a given query is planned under one role and then executed under other roles.  This scenario can happen under security definer functions or when a common user and query is planned initially and then re-used across multiple SET ROLEs.  Applying an incorrect policy may permit a user to complete otherwise-forbidden reads and modifications.  This affects only databases that have used CREATE POLICY to define a row security policy.  An attacker must tailor an attack to a particular application's pattern of query plan reuse, user ID changes, and role-specific row security policies.  Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.
```

## Signals

- CVSS: 5.4 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.769%, percentile 56.967%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 30)

- alpine postgresql13 (Alpine Linux): \< 13.17-r0
- alpine postgresql14 (Alpine Linux): \< 14.14-r0
- alpine postgresql15 (Alpine Linux): \< 15.9-r0
- alpine postgresql16 (Alpine Linux): \< 16.5-r0
- alpine postgresql17 (Alpine Linux): \< 17.1-r0
- chainguard postgresql-12 (Chainguard): \< 12.21-r0
- chainguard postgresql-13 (Chainguard): \< 13.17-r0
- chainguard postgresql-14 (Chainguard): \< 14.14-r0
- chainguard postgresql-14-client (Chainguard): \< 14.24-r2
- chainguard postgresql-15 (Chainguard): \< 15.9-r0
- chainguard postgresql-15-client (Chainguard): All versions (No fix recorded) \| \< 15.19-r2
- chainguard postgresql-16 (Chainguard): \< 16.5-r0
- chainguard postgresql-17 (Chainguard): \< 17.1-r0
- wolfi postgresql-12 (Wolfi): \< 12.21-r0
- wolfi postgresql-13 (Wolfi): \< 13.17-r0
- wolfi postgresql-14 (Wolfi): \< 14.14-r0
- wolfi postgresql-14-client (Wolfi): \< 14.24-r2
- wolfi postgresql-15 (Wolfi): \< 15.9-r0
- wolfi postgresql-15-client (Wolfi): All versions (No fix recorded) \| \< 15.19-r2
- wolfi postgresql-16 (Wolfi): \< 16.5-r0

## References

- <https://www.postgresql.org/support/security/CVE-2024-10976/>
- <https://security.netapp.com/advisory/ntap-20250509-0010/>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html>
- <https://security.alpinelinux.org/vuln/CVE-2024-10976>
- <https://ubuntu.com/security/CVE-2024-10976>
- <https://www.cve.org/CVERecord?id=CVE-2024-10976>
- <https://ubuntu.com/security/notices/USN-7132-1>
- <https://ubuntu.com/security/notices/USN-7358-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-10976>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-10976>

---

Data as of 2026-12-05T04:22:45.160Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
