pgsql: Guard against overlength time zone abbreviations in to_char().

Поиск
Список
Период
Сортировка
Искать

pgsql: Guard against overlength time zone abbreviations in to_char().

От:
Noah Misch <noah@leadboat.com>
Дата:
Guard against overlength time zone abbreviations in to_char().

While typical abbreviations are only a few bytes long, a user-supplied
time_zone setting could specify a much longer abbreviation, enough to
overflow to_char's allocation of 12 bytes per format character. If so,
throw an error in the same style as commit 9241c84cb (CVE-2015-0241).

Reported-by: Hcamael 
Reported-by: Amjad Shahzad 
Reported-by: Tan Zhen of AntAISecurityLab 
Reported-by: Tomer Fichman 
Reported-by: Zheng Yu 
Reported-by: Amy Burnett (OpenAI Codex Security)
Reported-by: Rick de Jager 
Reported-by: Heewon Song 
Reported-by: Sylvie Mayer 
Reported-by: Aleksander Alekseev 
Reported-by: Hillai Ben Sasson 
Author: Tom Lane 
Backpatch-through: 14
Security: CVE-2026-14669

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4fafe23805c4c75c2e85e8a0c1675fd17d92977b
Author: Tom Lane 

Modified Files
--------------
src/backend/utils/adt/formatting.c | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)

FAQ