CVE-2024-0985 in Postgresql
Late privilege drop in REFRESH MATERIALIZED VIEW CONCURRENTLY in PostgreSQL allows an object creator to execute arbitrary SQL functions as the command issuer. The command intends to run SQL functions as the owner of the materialized view, enabling safe refresh of untrusted materialized views. The victim is a superuser or member of one of the attacker's roles. The attack requires luring the victim into running REFRESH MATERIALIZED VIEW CONCURRENTLY on the attacker's materialized view. Versions before PostgreSQL 16.2, 15.6, 14.11, 13.14, and 12.18 are affected.
Affects 1 product from 2 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, low privileges required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Postgresql | Postgresql | ≥ 12.0, < 12.18 ≥ 13.0, < 13.14 ≥ 14.0, < 14.11 ≥ 15.0, < 15.6 |
| Siemens | — | — |
| Abb | S Engineering | 2.2 2.3 2.4 |
| Siemens | Sinec-Nms | < 3.0 |
| Siemens | Sinec Nms | < 3.0 |
Fix and vendor advisory
- SINEC NMS: Update to V3.0 or later version
Source: ICSA-24-228-06
- 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 advises all customers to review their installations to determine if they are using an impacted product as listed above, no further analysis or tools are needed to make this determination. The recommended immediate actions per product are listed below: - Systems using S+ Engineering 2.2 through 2.4 SP2 should upgrade to S+ Engineering 2.4 SP2 RU1 (re-leased in December 2024) or later. - End users who are unable to install one of these updates should immediately look to implement the Mitigation and Workarounds listed below as this will restrict or prevent an attacker’s ability to com-promise the system. ABB recommends that customers apply the update at the earliest convenience.
Source: ICSA-26-120-06
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2024-0985 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-052232-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| Published | 2024-02-08 |
| Last modified | 2024-12-20 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict access controls and least privilege principles for database users. Monitor and log all REFRESH MATERIALIZED VIEW CONCURRENTLY commands to detect and respond to suspicious activity.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-12-20.