PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions
- State
- Published
- Severity
- 3.1 Low
- Published
- Nov 12, 2026
- Updated
- Nov 12, 2026
- Reserved
- Oct 26, 2026
Description
Missing authorization in PostgreSQL type conversion allows a database user to invoke a cast function despite lacking EXECUTE privilege on that function, via foreign keys, to_json(), and others. A successful attack requires the attacker to search each database for access-restricted cast functions and identify confidentiality impact specific to each function implementation found. There are few or no practical examples of an access-restricted cast function or of a cast function having confidentiality impact. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
| Product | Versions |
|---|---|
| PostgreSQL n/a | 18 to before 18.7 Affected17 to before 17.12 Affected16 to before 16.16 Affected15 to before 15.20 Affectedbefore 14.25 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 3.1 Low | PostgreSQL |
Weaknesses
- CWE-862 Missing Authorization
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.