{"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": "7f28c4d70bf5f07a42aa2cb7f3278febefbe8ba50364780b254f61b6fae705a6", "manual_build": "12.22", "source_as_of": "", "changes_count": 1, "doc_loaded_at": "2026-09-26T02:56:41.471523", "migration_html": "<p>\n    对于运行 12.X 的用户，不需要执行导出/恢复。\n   </p><p>\n    但是，如果是从早于 12.18 的版本升级，请参见<a href=\"/docs/12/release-12-18.html\" title=\"E.5. 发布版本 12.18\">第 E.5 节</a>。\n   </p>", "compatibility_count": 0, "label": "12.22", "status_label": "历史版本", "eol": "2024-11-21", "age_days": 678, "support_days": -678}, "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": "7f28c4d70bf5f07a42aa2cb7f3278febefbe8ba50364780b254f61b6fae705a6", "manual_build": "12.22", "source_as_of": "", "changes_count": 1, "doc_loaded_at": "2026-09-26T02:56:41.471523", "migration_html": "<p>\n    对于运行 12.X 的用户，不需要执行导出/恢复。\n   </p><p>\n    但是，如果是从早于 12.18 的版本升级，请参见<a href=\"/docs/12/release-12-18.html\" title=\"E.5. 发布版本 12.18\">第 E.5 节</a>。\n   </p>", "compatibility_count": 0, "label": "12.22", "status_label": "历史版本", "eol": "2024-11-21", "age_days": 678, "support_days": -678, "entries": [{"id": "12.22-87cfe420bf12aef8", "cves": ["CVE-2024-10978"], "html": "<p>\n      恢复 <code>ALTER {ROLE|DATABASE} SET\n      role</code> 的功能（Tom Lane，Noah Misch）<a href=\"https://postgr.es/c/c46333865\">§</a>\n</p><p>\n      针对 CVE-2024-10978 的修复意外导致来自非交互式来源的\n      <code>role</code> 设置不被应用，包括之前的 <code>ALTER\n      {ROLE|DATABASE}</code> 命令和\n      <code>PGOPTIONS</code> 环境变量。\n     </p>", "text": "恢复 ALTER {ROLE|DATABASE} SET role 的功能（Tom Lane，Noah Misch）§ 针对 CVE-2024-10978 的修复意外导致来自非交互式来源的 role 设置不被应用，包括之前的 ALTER {ROLE|DATABASE} 命令和 PGOPTIONS 环境变量。", "title": "恢复 ALTER {ROLE|DATABASE} SET role 的功能", "commits": ["c46333865"], "section": "变更", "category": "security", "source_url": "/docs/release/12.22/#id-1.11.6.6.6", "source_hash": "f333b019598a72e4708c0fef667c6974763365901f8345669cbd777285105224", "section_path": ["变更"], "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": "安全相关", "also_in": [], "variants": [], "related_changes": [{"db_id": "f20342f7ad93514b4af50956c971c3b8", "kind": "equivalent", "version": "17.2", "label": "17.2", "title": "恢复 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": "恢复 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": "恢复 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/#ZH-AUTO-RELEASE-15-SECT2-16"}, {"db_id": "e4a3a55b29e3e45132a44ee9d76a8b7a", "kind": "equivalent", "version": "14.15", "label": "14.15", "title": "恢复 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/#ZH-AUTO-RELEASE-14-SECT2-16"}, {"db_id": "2738c31dbd265aa929daa4b4aa4a67ba", "kind": "equivalent", "version": "13.18", "label": "13.18", "title": "恢复 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": "全部变更", "count": 1}, {"key": "feature", "label": "新功能", "count": 0}, {"key": "bugfix", "label": "BUG 修复", "count": 0}, {"key": "security", "label": "安全相关", "count": 1}, {"key": "performance", "label": "性能改进", "count": 0}, {"key": "compatibility", "label": "兼容性变化", "count": 0}, {"key": "improvement", "label": "其他改进", "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": "恢复 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"}