CVE-2026-2361 in Postgresql products
PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a temporary view based on a function containing malicious code. When the anon.get_tablesample_ratio function is then called, the malicious code is executed with superuser privileges. This privilege elevation ca...
Affects 0 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, high privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Postgresql | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a temporary view based on a function containing malicious code. When the anon.get_tablesample_ratio function is then called, the malicious code is executed with superuser privileges. This privilege elevation can be exploited by users having the CREATE privilege in PostgreSQL 15 and later. The risk is higher with PostgreSQL 14 or with instances upgraded from PostgreSQL 14 or a prior version because the creation permission on the public schema is granted by default. The problem is resolved in PostgreSQL Anonymizer 3.0.1 and further versions
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-2361 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-275767-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| Published | 2026-02-11 |
| Last modified | 2026-04-15 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-427: CWE-427
Related attack patterns (CAPEC)
CAPEC-38 Leveraging/Manipulating Configuration File Search Paths via CWE-427
CAPEC-471 Search Order Hijacking via CWE-427
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a temporary view with malicious code, which is executed when the anon.get_tablesample_ratio function is called.
The vulnerability is exploited by creating a temporary view based on a function containing malicious code. When the anon.get_tablesample_ratio function is invoked, the malicious code executes with superuser privileges. This can be done by any user with the CREATE privilege in PostgreSQL 15 and later.
Questions
What is CVE-2026-2361?
PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a temporary view with malicious code, which is executed when the anon.get_tablesample_ratio function is called.
What is the CVSS score for CVE-2026-2361?
CVE-2026-2361 has CVSS 8.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.5%.
Is CVE-2026-2361 actively exploited?
No confirmed active exploitation of CVE-2026-2361 as of 2026-05-30.
How do I remediate CVE-2026-2361?
Priority: IMMEDIATE.
What systems are affected by CVE-2026-2361?
CVE-2026-2361 affects Postgresql.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Postgresql","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.