CVE-2023-2455
Reported by redhat · Published June 9, 2023
Row security policies disregard user ID changes after inlining; PostgreSQL could permit incorrect policies to be applied in certain cases where role-specific policies are used and a given query is planned under one role and then executed under other roles. This scenario can happen under security definer functions or when a common user and query is planned initially and then re-used across multiple SET ROLEs. Applying an incorrect policy may permit a user to complete otherwise-forbidden reads and modifications. This affects only databases that have used CREATE POLICY to define a row security policy.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postgresql-pltcl | Amazon Linux | 9.2.24-8.amzn2.0.2 |
| postgresql15-test-rpm-macros | Amazon Linux | 15.4-1.amzn2023.0.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | postgresql | PostgreSQL 15.3, PostgreSQL 14.8, PostgreSQL 13.11, PostgreSQL 12.15, PostgreSQL 11.20 |
| amazon:2 | postgresql-pltcl | 0 |
| amazon:2023 | postgresql15-test-rpm-macros | 0 |
| n/a | postgresql | PostgreSQL 15.3, PostgreSQL 14.8, PostgreSQL 13.11, PostgreSQL 12.15, PostgreSQL 11.20 |
| amazon:2023 | postgresql15-pltcl | 0 |
| amazon:2023 | postgresql15-upgrade-devel | 0 |
| amazon:2 | postgresql-server | 0 |
| amazon:2023 | postgresql15 | 0 |
| amazon:2023 | postgresql15-plperl | 0 |
| amazon:2023 | postgresql15-server-devel | 0 |
| alpine | postgresql12 | 0 |
| amazon:2 | postgresql-plpython | 0 |
| alpine | postgresql | 0 |
| amazon:2023 | postgresql15-upgrade | 0 |
| amazon:2023 | postgresql15-plpython3 | 0 |
| amazon:2 | postgresql-docs | 0 |
| amazon:2 | postgresql-devel | 0 |
| amazon:2 | postgresql-contrib | 0 |
| alpine | postgresql15 | 0 |
| amazon:2 | postgresql-plperl | 0 |
…and 15 more
Timeline
- May 11, 2023 CVE Published
- Jun 10, 2023 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (21 in total, the first dated here)
- Nov 21, 2026 Distribution Patch (17 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-2455
vulnetix vdb fixes CVE-2023-2455
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-2455/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart