CVSS 3.1
8.0 highCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HHigh (8.0) in postgresql postgresql. EPSS 1.2% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HExplain CVE-2024-0985 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-0985?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-0985?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-0985 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| postgresql:postgresql | from 12.0 before 12.18 |
| postgresql:postgresql | from 13.0 before 13.14 |
| postgresql:postgresql | from 14.0 before 14.11 |
| postgresql:postgresql | from 15.0 before 15.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | postgresql-11 | 11.22-0+deb10u2 | DLA-3764-1 |
| Debian | 11 | postgresql-13 | 13.14-0+deb11u1 | DSA-5622-1 |
| Debian | 12 | postgresql-15 | 15.6-0+deb12u1 | DEBIAN-CVE-2024-0985 DSA-5623-1 |
| Ubuntu | 20.04:LTS | postgresql-12 | 12.18-0ubuntu0.20.04.1 | UBUNTU-CVE-2024-0985 USN-6656-1 |
| Ubuntu | 22.04:LTS | postgresql-14 | 14.11-0ubuntu0.22.04.1 | UBUNTU-CVE-2024-0985 USN-6656-1 |
| Ubuntu | 24.04:LTS | postgresql-16 | 16.2-1 | UBUNTU-CVE-2024-0985 |
| Ubuntu | Pro:14.04:LTS | postgresql-9.3 | no fix listed | UBUNTU-CVE-2024-0985 |
| Ubuntu | Pro:16.04:LTS | postgresql-9.5 | 9.5.25-0ubuntu0.16.04.1+esm7 | UBUNTU-CVE-2024-0985 USN-6656-2 |
| Ubuntu | Pro:18.04:LTS | postgresql-10 | no fix listed | UBUNTU-CVE-2024-0985 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.6-3.module+el8.9.0+19330+c97ddbdf | RHSA-2024:0974 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.6-3.module+el8.9.0+20664+9c30cf7f | RHSA-2024:0975 |
| Red Hat | enterprise_linux:8::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.4.8-1.module+el8.9.0+19797+c4ce5969 | RHSA-2024:0973 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.4.0-7.module+el8.9.0+21289+7c796f9d | RHSA-2024:0974 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.5.0-1.module+el8.9.0+20664+9c30cf7f | RHSA-2024:0975 |
| Red Hat | enterprise_linux:8::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:1.7.0-1.module+el8.9.0+19797+c4ce5969 | RHSA-2024:0973 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:0.10.0-2.module+el8.9.0+19330+c97ddbdf | RHSA-2024:0974 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:0.10.0-2.module+el8.9.0+20664+9c30cf7f | RHSA-2024:0975 |
| Red Hat | enterprise_linux:8::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969 | RHSA-2024:0973 |
| Red Hat | enterprise_linux:8::appstream | postgresql, postgresql-docs, postgresql-test and 25 more | 0:15.6-1.module+el8.9.0+21287+d0eecfe6 | RHSA-2024:0973 |
| Red Hat | enterprise_linux:8::appstream | postgresql, postgresql-docs, postgresql-test and 22 more | 0:10.23-4.module+el8.9.0+21317+d2c6bf8a | RHSA-2024:0956 |
| Red Hat | enterprise_linux:8::appstream | postgresql, postgresql-docs, postgresql-test and 22 more | 0:12.18-1.module+el8.9.0+21289+7c796f9d | RHSA-2024:0974 |
| 51 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 13 more | postgresql16 | 16.2-150200.5.10.1 | SUSE-SU-2024:0550-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 12 more | postgresql14 | 14.11-150200.5.39.1 | SUSE-SU-2024:0552-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 8 more | postgresql13 | 13.14-150200.5.53.1 | SUSE-SU-2024:0522-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 more | postgresql12 | 12.18-150200.8.57.1 | SUSE-SU-2024:0523-1 |
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 more | postgresql15 | 15.6-150200.5.22.1 | SUSE-SU-2024:0551-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | postgresql12 | 12.18-3.52.1 | SUSE-SU-2024:0542-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | postgresql13 | 13.14-3.46.1 | SUSE-SU-2024:0541-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | postgresql14 | 14.11-3.36.1 | SUSE-SU-2024:0540-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | postgresql15 | 15.6-3.22.1 | SUSE-SU-2024:0520-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | postgresql16 | 16.2-3.10.1 | SUSE-SU-2024:0546-1 |
| openSUSE | Leap 15.5 | postgresql12 | 12.18-150200.8.57.1 | SUSE-SU-2024:0523-1 |
| openSUSE | Leap 15.5 | postgresql13 | 13.14-150200.5.53.1 | SUSE-SU-2024:0522-1 |
| openSUSE | Leap 15.5 | postgresql14 | 14.11-150200.5.39.1 | SUSE-SU-2024:0552-1 |
| openSUSE | Leap 15.5 | postgresql15 | 15.6-150200.5.22.1 | SUSE-SU-2024:0551-1 |
| openSUSE | Leap 15.5 | postgresql16, postgresql16-mini | 16.2-150200.5.10.1 | SUSE-SU-2024:0550-1 |
| openSUSE | Tumbleweed | postgresql12 | 12.18-1.1 | openSUSE-SU-2024:13668-1 |
| openSUSE | Tumbleweed | postgresql13 | 13.14-1.1 | openSUSE-SU-2024:13669-1 |
| openSUSE | Tumbleweed | postgresql14 | 14.11-1.1 | openSUSE-SU-2024:13670-1 |
| openSUSE | Tumbleweed | postgresql15 | 15.6-1.1 | openSUSE-SU-2024:13671-1 |
| openSUSE | Tumbleweed | postgresql16 | 16.2-1.1 | openSUSE-SU-2024:13672-1 |
| openSUSE | Tumbleweed | postgresql17 | 17.6-2.1 | openSUSE-SU-2025:15580-1 |
| openSUSE | Tumbleweed | postgresql18 | 18.7-1.1 | openSUSE-SU-2026:12654-1 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.6.0+2758+4f4474df | ALSA-2024:0974 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2024:0975 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.6.0+3094+eb237fb8 | ALSA-2024:0974 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.6.0+3095+ee60d910 | ALSA-2024:0975 |
| AlmaLinux | 8 | pg_repack | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2024:0974 |
| AlmaLinux | 8 | pg_repack | 1.4.8-1.module_el8.8.0+3487+43ec1b9f | ALSA-2024:0973 |
| AlmaLinux | 8 | pgaudit | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | pgaudit | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2024:0975 |
| AlmaLinux | 8 | pgaudit | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2024:0975 |
| AlmaLinux | 8 | pgaudit | 1.7.0-1.module_el8.8.0+3487+43ec1b9f | ALSA-2024:0973 |
| AlmaLinux | 8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2024:0974 |
| AlmaLinux | 8 | postgres-decoderbufs | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2024:0975 |
| 13 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.10.0+1862+29bef648 | RLSA-2024:0974 RLSA-2024:0975 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.9.0+1594+4a6adae9 | RLSA-2024:0974 RLSA-2024:0975 |
| Rocky Linux | 8 | pg_repack | 0:1.4.6-3.module+el8.9.0+1603+444d1b54 | RLSA-2024:0974 RLSA-2024:0975 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1622+bd25b19c | RLSA-2024:0973 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.10.0+1858+fcc46a79 | RLSA-2024:0973 |
| Rocky Linux | 8 | pg_repack | 0:1.4.8-1.module+el8.9.0+1525+fc91df60 | RLSA-2024:0973 |
| Rocky Linux | 8 | pgaudit | 0:1.4.0-7.module+el8.9.0+1735+a332307b | RLSA-2024:0974 |
| Rocky Linux | 8 | pgaudit | 0:1.5.0-1.module+el8.9.0+1594+4a6adae9 | RLSA-2024:0975 |
| Rocky Linux | 8 | pgaudit | 0:1.7.0-1.module+el8.9.0+1525+fc91df60 | RLSA-2024:0973 |
| Rocky Linux | 8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.10.0+1862+29bef648 | RLSA-2024:0974 RLSA-2024:0975 |
| Rocky Linux | 8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.9.0+1594+4a6adae9 | RLSA-2024:0974 RLSA-2024:0975 |
| Rocky Linux | 8 | postgres-decoderbufs | 0:0.10.0-2.module+el8.9.0+1603+444d1b54 | RLSA-2024:0974 RLSA-2024:0975 |
| 8 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.16, v3.17, v3.18 | postgresql12 | 12.18-r0 | ALPINE-CVE-2024-0985 |
| Alpine | v3.16, v3.17, v3.18 and 1 more | postgresql13 | 13.14-r0 | ALPINE-CVE-2024-0985 |
| Alpine | v3.16, v3.17, v3.18 and 2 more | postgresql14 | 14.11-r0 | ALPINE-CVE-2024-0985 |
| Alpine | v3.17, v3.18, v3.19 and 3 more | postgresql15 | 15.6-r0 | ALPINE-CVE-2024-0985 |
| Alpine | v3.19, v3.20, v3.21 and 3 more | postgresql16 | 16.2-r0 | ALPINE-CVE-2024-0985 |
| Azure Linux | 2 | postgresql | 14.11-1 | AZL-34279 |
| Azure Linux | 3 | postgresql | 16.3-1 | AZL-35111 |
| Alpaquita | 23 | postgresql15 | 15.6-r0 | BELL-CVE-2024-0985 |
| Alpaquita | stream | postgresql16 | 16.2-r0 | BELL-CVE-2024-0985 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.
Red Hat rates this Important.
This PostgreSQL vulnerability poses a significant risk due to its potential for unauthorized access and manipulation of data. Essentially, it allows attackers to execute arbitrary SQL functions using the REFRESH MATERIALIZED VIEW CONCURRENTLY command, especially when the victim is a superuser or holds a role within the attacker's control. By luring victims into running this command on a maliciously crafted materialized view, attackers can exploit the system. This could lead to serious consequences, such as data breaches or data corruption, compromising the integrity and confidentiality of the database.
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | postgresql:10-8090020240213200157.a75119d5 | Fixed 2024-02-26 | RHSA-2024:0956 |
| Red Hat Enterprise Linux 8 | postgresql:15-8090020240209124629.a75119d5 | Fixed 2024-02-26 | RHSA-2024:0973 |
| Red Hat Enterprise Linux 8 | postgresql:12-8090020240209130909.a75119d5 | Fixed 2024-02-26 | RHSA-2024:0974 |
| Red Hat Enterprise Linux 8 | postgresql:13-8090020240209125046.a75119d5 | Fixed 2024-02-26 | RHSA-2024:0975 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | postgresql:12-8020020240214021628.4cda2c84 | Fixed 2024-03-04 | RHSA-2024:1071 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | postgresql:10-8020020240229083218.4cda2c84 | Fixed 2024-03-19 | RHSA-2024:1422 |
| Red Hat Enterprise Linux 8.2 Telecommunications Update Service | postgresql:12-8020020240214021628.4cda2c84 | Fixed 2024-03-04 | RHSA-2024:1071 |
| Red Hat Enterprise Linux 8.2 Telecommunications Update Service | postgresql:10-8020020240229083218.4cda2c84 | Fixed 2024-03-19 | RHSA-2024:1422 |
| Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions | postgresql:12-8020020240214021628.4cda2c84 | Fixed 2024-03-04 | RHSA-2024:1071 |
| Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions | postgresql:10-8020020240229083218.4cda2c84 | Fixed 2024-03-19 | RHSA-2024:1422 |
| OpenShift Serverless | postgresql | Not affected | |
| Red Hat build of Apicurio Registry 2 | postgresql | Not affected | |
| Red Hat build of Debezium 2 | postgresql | Not affected | |
| Red Hat build of OptaPlanner 8 | postgresql | Not affected | |
| Red Hat Data Grid 8 | postgresql | Not affected | |
| Red Hat Enterprise Linux 6 | postgresql | Out of support scope | |
| Red Hat Enterprise Linux 7 | postgresql | Not affected | |
| Red Hat Enterprise Linux 8 | postgresql:16/postgresql | Not affected | |
| Red Hat Enterprise Linux 9 | postgresql:16/postgresql | Not affected | |
| Red Hat Fuse 7 | postgresql | Not affected | |
| 25 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-0985.
| Advisory | Title | Published | Sectors | Affected | Fixed |
|---|---|---|---|---|---|
| ICSA-26-120-06 | ABB Ability Symphony Plus Engineering | 2026-04-13 | Chemical, Critical Manufacturing, Energy, Water and Wastewater, Water and Wastewater | ABB Ability Symphony Plus S+ Engineering 2.2, ABB Ability Symphony Plus S+ Engineering 2.3, ABB Ability Symphony Plus S+ Engineering 2.3 RU1 and 5 more | ABB Ability Symphony Plus S+ Engineering 2.4 SP2 RU1 |
| ICSA-24-228-06 | Siemens SINEC NMS | 2024-08-13 | Multiple | SINEC NMS | none listed |
From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.