{"format": 1, "mode": "release", "from_release": null, "to_release": {"date": "2024-11-21", "build": "12.22", "major": "12", "minor": 22, "manual": "12", "status": "stable", "doc_git": "", "version": "12.22", "eol_date": "2024-11-21", "date_text": "2024-11-21", "supported": false, "manual_url": "/docs/12/release-12-22.html", "source_url": "/docs/release/12.22/", "entry_count": 1, "placeholder": false, "content_hash": "b81d121261ff7a087bc12f90ef9646a09bafff457bbf947e1013db5b8295add1", "manual_build": "12.22", "source_as_of": "", "changes_count": 1, "doc_loaded_at": "2026-09-25T02:22:44.760693", "migration_html": "<p>A dump/restore is not required for those running 12.X.</p>\n<p>However, if you are upgrading from a version earlier than 12.18, see <a href=\"/docs/12/release-12-18.html\" title=\"E.5. Release 12.18\">Section E.5</a>.</p>", "compatibility_count": 0, "label": "12.22", "status_label": "Historical", "eol": "2024-11-21", "age_days": 677, "support_days": -677}, "groups": [{"date": "2024-11-21", "build": "12.22", "major": "12", "minor": 22, "manual": "12", "status": "stable", "doc_git": "", "version": "12.22", "eol_date": "2024-11-21", "date_text": "2024-11-21", "supported": false, "manual_url": "/docs/12/release-12-22.html", "source_url": "/docs/release/12.22/", "entry_count": 1, "placeholder": false, "content_hash": "b81d121261ff7a087bc12f90ef9646a09bafff457bbf947e1013db5b8295add1", "manual_build": "12.22", "source_as_of": "", "changes_count": 1, "doc_loaded_at": "2026-09-25T02:22:44.760693", "migration_html": "<p>A dump/restore is not required for those running 12.X.</p>\n<p>However, if you are upgrading from a version earlier than 12.18, see <a href=\"/docs/12/release-12-18.html\" title=\"E.5. Release 12.18\">Section E.5</a>.</p>", "compatibility_count": 0, "label": "12.22", "status_label": "Historical", "eol": "2024-11-21", "age_days": 677, "support_days": -677, "entries": [{"id": "12.22-87cfe420bf12aef8", "cves": ["CVE-2024-10978"], "html": "<p>Restore functionality of <code>ALTER {ROLE|DATABASE} SET role</code> (Tom Lane, Noah Misch) <a href=\"https://postgr.es/c/c46333865\">§</a></p>\n<p>The fix for CVE-2024-10978 accidentally caused settings for <code>role</code> to not be applied if they come from non-interactive sources, including previous <code>ALTER {ROLE|DATABASE}</code> commands and the <code>PGOPTIONS</code> environment variable.</p>", "text": "Restore functionality of ALTER {ROLE|DATABASE} SET role (Tom Lane, Noah Misch) § The fix for CVE-2024-10978 accidentally caused settings for role to not be applied if they come from non-interactive sources, including previous ALTER {ROLE|DATABASE} commands and the PGOPTIONS environment variable.", "title": "Restore functionality of ALTER {ROLE|DATABASE} SET role", "commits": ["c46333865"], "section": "Changes", "category": "security", "source_url": "/docs/release/12.22/#id-1.11.6.6.6", "source_hash": "f333b019598a72e4708c0fef667c6974763365901f8345669cbd777285105224", "section_path": ["Changes"], "commit_groups": [["07c6e0f61", "1c05004a8", "7b88529f4", "b0918c128", "be062bfa5", "c46333865", "edf80895f"]], "identity_text": "Restore functionality of ALTER {ROLE|DATABASE} SET role (Tom Lane, Noah Misch) The fix for CVE-2024-10978 accidentally caused settings for role to not be applied if they come from non-interactive sources, including previous ALTER {ROLE|DATABASE} commands and the PGOPTIONS environment variable.", "commit_aliases": ["07c6e0f61", "1c05004a8", "7b88529f4", "b0918c128", "be062bfa5", "c46333865", "edf80895f"], "source_commits": ["c46333865"], "source_entry_id": "12.22/changes/001", "db_id": "acf7b13b266fc0c0b48132f58dda40a4", "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1", "relations": [{"rule": 2, "type": "equivalent", "target": "2738c31dbd265aa929daa4b4aa4a67ba", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}}, {"rule": 2, "type": "equivalent", "target": "5b38c75ca60bfc75793b4821795e8ef6", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}}, {"rule": 2, "type": "equivalent", "target": "bbc5cf6b20273068c4d6c9dd65da0b05", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}}, {"rule": 2, "type": "equivalent", "target": "e4a3a55b29e3e45132a44ee9d76a8b7a", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}}, {"rule": 2, "type": "equivalent", "target": "f20342f7ad93514b4af50956c971c3b8", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}}], "version": "12.22", "category_label": "Security", "also_in": [], "variants": [], "related_changes": [{"db_id": "f20342f7ad93514b4af50956c971c3b8", "kind": "equivalent", "version": "17.2", "label": "17.2", "title": "Restore functionality of ALTER {ROLE|DATABASE} SET role", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}, "url": "/docs/compare/?release=17.2#17.2-d77293a82e3a14e5", "source_url": "/docs/release/17.2/#RELEASE-17-2-CHANGES"}, {"db_id": "bbc5cf6b20273068c4d6c9dd65da0b05", "kind": "equivalent", "version": "16.6", "label": "16.6", "title": "Restore functionality of ALTER {ROLE|DATABASE} SET role", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}, "url": "/docs/compare/?release=16.6#16.6-59096cd01766b695", "source_url": "/docs/release/16.6/#RELEASE-16-6-CHANGES"}, {"db_id": "5b38c75ca60bfc75793b4821795e8ef6", "kind": "equivalent", "version": "15.10", "label": "15.10", "title": "Restore functionality of ALTER {ROLE|DATABASE} SET role", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}, "url": "/docs/compare/?release=15.10#15.10-d3c8a67fc12652c8", "source_url": "/docs/release/15.10/#id-1.11.6.15.5"}, {"db_id": "e4a3a55b29e3e45132a44ee9d76a8b7a", "kind": "equivalent", "version": "14.15", "label": "14.15", "title": "Restore functionality of ALTER {ROLE|DATABASE} SET role", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}, "url": "/docs/compare/?release=14.15#14.15-422cf39c7394aada", "source_url": "/docs/release/14.15/#id-1.11.6.15.5"}, {"db_id": "2738c31dbd265aa929daa4b4aa4a67ba", "kind": "equivalent", "version": "13.18", "label": "13.18", "title": "Restore functionality of ALTER {ROLE|DATABASE} SET role", "evidence": {"same_day": true, "patch_ids": ["919a51e9d5f17a763b934dd71ff20f74"], "statement_hash": "58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"}, "url": "/docs/compare/?release=13.18#13.18-2dcb90b343e7bf55", "source_url": "/docs/release/13.18/#id-1.11.6.11.5"}]}]}], "stats": [{"key": "all", "label": "All changes", "count": 1}, {"key": "feature", "label": "Features", "count": 0}, {"key": "bugfix", "label": "Bug fixes", "count": 0}, {"key": "security", "label": "Security", "count": 1}, {"key": "performance", "label": "Performance", "count": 0}, {"key": "compatibility", "label": "Compatibility", "count": 0}, {"key": "improvement", "label": "Improvements", "count": 0}], "total": 1, "release_count": 1, "cross_major": false, "cve_count": 1, "cves": [{"id": "CVE-2024-10978", "url": "https://www.postgresql.org/support/security/CVE-2024-10978/", "fixed": {"12": "12.21", "13": "13.17", "14": "14.14", "15": "15.9", "16": "16.5", "17": "17.1"}, "score": 4.2, "title": "Restore functionality of ALTER {ROLE|DATABASE} SET role", "vector": "AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N", "cna_url": "https://cveawg.mitre.org/api/cve/CVE-2024-10978", "affected": {"12": "12", "13": "13", "14": "14", "15": "15", "16": "16", "17": "17"}, "component": "core server", "published": {"12": "2024-11-14", "13": "2024-11-14", "14": "2024-11-14", "15": "2024-11-14", "16": "2024-11-14", "17": "2024-11-14"}, "introduced": {}, "cvss_version": "3.0", "description_en": "Incorrect privilege assignment in PostgreSQL allows a less-privileged application user to view or change different rows from those intended. An attack requires the application to use SET ROLE , SET SESSION AUTHORIZATION , or an equivalent feature. The problem arises when an application query uses parameters from the attacker or conveys query results to the attacker. If that query reacts to current_setting('role') or the current user ID, it may modify or return data as though the session had not used SET ROLE or SET SESSION AUTHORIZATION . The attacker does not control which incorrect user ID applies. Query text from less-privileged sources is not a concern here, because SET ROLE and SET SESSION AUTHORIZATION are not sandboxes for unvetted queries. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.\n\nThe PostgreSQL project thanks Tom Lane for reporting this problem.", "affected_ranges": [{"from": "0", "until": "12.21"}, {"from": "13", "until": "13.17"}, {"from": "14", "until": "14.14"}, {"from": "15", "until": "15.9"}, {"from": "16", "until": "16.5"}, {"from": "17", "until": "17.1"}], "first_published": "2024-11-14", "fixed_version": "12.21"}], "cve_available": true, "remaining_cves": [], "security_regressions": [], "warnings": [], "candidate_count": 1, "already_in_source_count": 0, "duplicate_count": 0, "excluded_count": 0, "exclusions": [], "source_as_of": "2026-09-26", "security_as_of": "2026-09-26"}