VDB
ALPINE-CVE-2024-0985
ALPINE-CVE-2024-0985
PUBLISHED
CVSS 8 HIGH
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.
Risk Scores
CVSS 3.1
8
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.16 | postgresql14 | 14.8-r0, 14.10-r0, 14.1-r6 |
| Alpine:v3.19 | postgresql16 | 16.0-r0, 16.0-r0, 16.0-r1 |
| Alpine:v3.19 | postgresql15 | 15.3-r1, 15.3-r0, 15.2-r4 |
| Alpine:v3.20 | postgresql15 | 15.3-r1, 15.3-r0, 15.3-r1 |
| Alpine:v3.22 | postgresql16 | 0, 16.0-r0, 16.0-r1 |
| Alpine:v3.17 | postgresql14 | 8.3.7-r2, 11.4-r1, 0 |
| Alpine:v3.16 | postgresql13 | 13.11-r0, 13.12-r0, 13.13-r0 |
| Alpine:v3.17 | postgresql15 | 15.5-r0, 15.4-r0, 15.3-r0 |
| Alpine:v3.18 | postgresql15 | 15.1-r1, 15.2-r4, 15.2-r3 |
| Alpine:v3.20 | postgresql16 | 16.0-r2, 16.0-r0, 16.0-r1 |
| Alpine:v3.21 | postgresql16 | 16.1-r0, 0, 16.0-r2 |
| Alpine:v3.18 | postgresql14 | 9.3.3-r0, 9.3.2-r0, 9.3.1-r0 |
Exploit Intelligence
- cve_rules.hpp (github-poc)
- nvd_db.cpp (github-poc)
- cve_db.json (github-poc)
- GenerationConfig.java (github-poc)
- SelfAdaptationGenerationConfig.java (github-poc)
Timeline
- Feb 8, 2024 CVE Published
- Nov 19, 2025 CVE Updated
- Apr 30, 2026 Distribution Patch