CVE-2023-39418: Postgresql: merge fails to enforce update or select row security policies
Vulnerability summary
CVE-2023-39418 is a medium (CVSS 4.3) vulnerability in debian debian_linux. EPSS estimates a 1.09% chance of exploitation in the next 30 days, higher than 66.4% of scored vulnerabilities.
Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 3Timeline
- 11-08-2023PublishedVulnerability first disclosed.
- 27-11-2026Last modifiedVulnerability information updated.
Description
A vulnerability was found in PostgreSQL with the use of the MERGE command, which fails to test new rows against row security policies defined for UPDATE and SELECT. If UPDATE and SELECT policies forbid some rows that INSERT policies do not forbid, a user could store such rows.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA3.1LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
1.09%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.09% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine5 products
- postgresql≥ 15.0, < 13.12-r0 | < 13.12-r0
- postgresql12< 12.16-r0
- postgresql13< 13.12-r0
- postgresql14< 14.9-r0
- postgresql15< 15.4-r0
Debian2 products
- postgresql-15< 15.5-0+deb12u1
- debian_linux12.0
Postgresql1 product
- postgresql≥ 15.0, < 15.4
Redhat1 product
- enterprise_linux8.0 | 9.0
4 vendors · 9 products
References
12 links- bugzilla.redhat.com/show_bug.cgi?id=2228112Issue TrackingX Refsource REDHATPatchThird Party Advisory
- www.postgresql.org/support/security/CVE-2023-39418/Vendor Advisory
- security.netapp.com/advisory/ntap-20230915-0002/X Transferred
- www.debian.org/security/2023/dsa-5553X Transferred