GHSA-r7p3-79xh-j7pg
Record from GitHub Advisory Database · 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.
Risk scores
Timeline
- Jun 9, 2023 CVE Published
- May 1, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln GHSA-r7p3-79xh-j7pg
vulnetix vdb fixes GHSA-r7p3-79xh-j7pg
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/GHSA-r7p3-79xh-j7pg/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart