{"already_in_source_count":0,"candidate_count":1,"cross_major":false,"cve_available":true,"cve_count":1,"cves":[{"affected":{"12":"12","13":"13","14":"14","15":"15","16":"16","17":"17"},"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"}],"cna_url":"https://cveawg.mitre.org/api/cve/CVE-2024-10978","component":"core server","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.","first_published":"2024-11-14","fixed":{"12":"12.21","13":"13.17","14":"14.14","15":"15.9","16":"16.5","17":"17.1"},"fixed_version":"12.21","id":"CVE-2024-10978","introduced":{},"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"},"score":4.2,"title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"https://www.postgresql.org/support/security/CVE-2024-10978/","vector":"AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"}],"duplicate_count":0,"excluded_count":0,"exclusions":[],"from_release":null,"groups":[{"age_days":733,"build":"12.22","changes_count":1,"compatibility_count":0,"content_hash":"b81d121261ff7a087bc12f90ef9646a09bafff457bbf947e1013db5b8295add1","date":"2024-11-21","date_text":"2024-11-21","doc_git":"","doc_loaded_at":"2026-09-25T02:22:44.760693","entries":[{"also_in":[],"category":"security","category_label":"Security","commit_aliases":["07c6e0f61","1c05004a8","7b88529f4","b0918c128","be062bfa5","c46333865","edf80895f"],"commit_groups":[["07c6e0f61","1c05004a8","7b88529f4","b0918c128","be062bfa5","c46333865","edf80895f"]],"commits":["c46333865"],"cves":["CVE-2024-10978"],"db_id":"acf7b13b266fc0c0b48132f58dda40a4","html":"\u003cp\u003eRestore functionality of \u003ccode\u003eALTER {ROLE|DATABASE} SET role\u003c/code\u003e (Tom Lane, Noah Misch) \u003ca href=\"https://postgr.es/c/c46333865\"\u003e§\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe fix for CVE-2024-10978 accidentally caused settings for \u003ccode\u003erole\u003c/code\u003e to not be applied if they come from non-interactive sources, including previous \u003ccode\u003eALTER {ROLE|DATABASE}\u003c/code\u003e commands and the \u003ccode\u003ePGOPTIONS\u003c/code\u003e environment variable.\u003c/p\u003e","id":"12.22-87cfe420bf12aef8","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.","part":"changes","patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"related_changes":[{"db_id":"f20342f7ad93514b4af50956c971c3b8","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=17.2#17.2-d77293a82e3a14e5","version":"17.2"},{"db_id":"bbc5cf6b20273068c4d6c9dd65da0b05","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"16.6","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=16.6#16.6-59096cd01766b695","version":"16.6"},{"db_id":"5b38c75ca60bfc75793b4821795e8ef6","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=15.10#15.10-d3c8a67fc12652c8","version":"15.10"},{"db_id":"e4a3a55b29e3e45132a44ee9d76a8b7a","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"14.15","source_url":"/docs/release/14.15/#id-1.11.6.15.5","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=14.15#14.15-422cf39c7394aada","version":"14.15"},{"db_id":"2738c31dbd265aa929daa4b4aa4a67ba","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"13.18","source_url":"/docs/release/13.18/#id-1.11.6.11.5","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=13.18#13.18-2dcb90b343e7bf55","version":"13.18"}],"relations":[{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"2738c31dbd265aa929daa4b4aa4a67ba","type":"equivalent"},{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"5b38c75ca60bfc75793b4821795e8ef6","type":"equivalent"},{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"bbc5cf6b20273068c4d6c9dd65da0b05","type":"equivalent"},{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"e4a3a55b29e3e45132a44ee9d76a8b7a","type":"equivalent"},{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"f20342f7ad93514b4af50956c971c3b8","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["c46333865"],"source_entry_id":"12.22/changes/001","source_hash":"f333b019598a72e4708c0fef667c6974763365901f8345669cbd777285105224","source_url":"/docs/release/12.22/#id-1.11.6.6.6","statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1","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","variants":[],"version":"12.22"}],"entry_count":1,"eol":"2024-11-21","eol_date":"2024-11-21","label":"12.22","major":"12","manual":"12","manual_build":"12.22","manual_url":"/docs/12/release-12-22.html","migration_html":"\u003cp\u003eA dump/restore is not required for those running 12.X.\u003c/p\u003e\n\u003cp\u003eHowever, if you are upgrading from a version earlier than 12.18, see \u003ca href=\"/docs/12/release-12-18.html\" title=\"E.5. Release 12.18\"\u003eSection E.5\u003c/a\u003e.\u003c/p\u003e","minor":22,"placeholder":false,"source_as_of":"","source_url":"/docs/release/12.22/","status":"stable","status_label":"Historical","support_days":-733,"supported":false,"version":"12.22"}],"mode":"release","release_count":1,"remaining_cves":[],"security_as_of":"2026-09-26","security_regressions":[],"source_as_of":"2026-11-19","stats":[{"count":1,"key":"all","label":"All changes"},{"count":0,"key":"feature","label":"Features"},{"count":0,"key":"bugfix","label":"Bug fixes"},{"count":1,"key":"security","label":"Security"},{"count":0,"key":"performance","label":"Performance"},{"count":0,"key":"compatibility","label":"Compatibility"},{"count":0,"key":"improvement","label":"Improvements"}],"to_release":{"age_days":733,"build":"12.22","changes_count":1,"compatibility_count":0,"content_hash":"b81d121261ff7a087bc12f90ef9646a09bafff457bbf947e1013db5b8295add1","date":"2024-11-21","date_text":"2024-11-21","doc_git":"","doc_loaded_at":"2026-09-25T02:22:44.760693","entry_count":1,"eol":"2024-11-21","eol_date":"2024-11-21","label":"12.22","major":"12","manual":"12","manual_build":"12.22","manual_url":"/docs/12/release-12-22.html","migration_html":"\u003cp\u003eA dump/restore is not required for those running 12.X.\u003c/p\u003e\n\u003cp\u003eHowever, if you are upgrading from a version earlier than 12.18, see \u003ca href=\"/docs/12/release-12-18.html\" title=\"E.5. Release 12.18\"\u003eSection E.5\u003c/a\u003e.\u003c/p\u003e","minor":22,"placeholder":false,"source_as_of":"","source_url":"/docs/release/12.22/","status":"stable","status_label":"Historical","support_days":-733,"supported":false,"version":"12.22"},"total":1,"warnings":[]}
