pgsql: Obstruct EXTRACT() field name deparse injection.
От
Noah Misch
Тема
pgsql: Obstruct EXTRACT() field name deparse injection.
Дата
Msg-id
E1wtQFr-00000000yCw-2fMK@gemulon.postgresql.org
Список
Дерево обсуждения
pgsql: Obstruct EXTRACT() field name deparse injection. Noah Misch <noah@leadboat.com>
Obstruct EXTRACT() field name deparse injection. The parser accepts any string as an EXTRACT() field name, but deparsing does not quote and escape it accordingly. To fix, quote and escape the field name during deparsing as needed. It might be a good idea to validate the field name during parsing and deparsing, too, but that is left as a future exercise. Reported-by: Ben Morris in collaboration with Claude and Anthropic Research Author: Nathan Bossart Reviewed-by: Tom Lane Reviewed-by: Etsuro Fujita Security: CVE-2026-15741 Backpatch-through: 14 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5981fe370a0d433429977ff6fc420064cf2fa09a Author: Nathan Bossart Modified Files -------------- src/backend/utils/adt/ruleutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
В списке pgsql-committers по дате отправления
От: Noah Misch
Дата:
От: Noah Misch
Дата: