目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-136502— SQL injection and redirected writes because the driver reads SQL text differently from the server

一分钟漏洞结论

影响对象
PostgreSQL psqlODBC
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

psqlODBC scans statement text itself to substitute parameters, translate ODBC escapes, join batched statements and rewrite queries for updatable cursors. Where it read the text differently from the server, text the driver took for data ran as SQL, or a positio

CVSS 8.1 · High
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-136502 基础信息

漏洞信息

Shenlong is analyzing...


对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
SQL injection and redirected writes because the driver reads SQL text differently from the server
来源: CVE Program / CVE List V5
Vulnerability Description
psqlODBC scans statement text itself to substitute parameters, translate ODBC escapes, join batched statements and rewrite queries for updatable cursors. Where it read the text differently from the server, text the driver took for data ran as SQL, or a positioned write went to another table: - An escape string constant written e'…' in lower case was not recognised as one, and '…' after a keyword ending in E, as in LIKE'…', was taken for one. - A } inside a quoted literal ended an ODBC {d …}, {t …}, {ts …} or {escape …} sequence. - Dollar-quote tags containing _ were not recognised, and an identifier starting with _ followed by $, such as _$$, was taken for the start of a dollar quote, so a parameter marker inside a literal was substituted. - A trailing -- comment in one statement of a batched parameter array swallowed the next statement. - Comments, literals longer than 255 bytes and escape strings were misread when the driver located the FROM and WHERE clauses of a query for an updatable cursor, and the text copied into the cursor's own queries could include SQL from inside a literal. - A table name containing $ was cut at the $, and a quoted table name starting with , or ; ended the table list, so positioned updates, inserts and deletes went to another table. - An integer parameter with an embedded NUL byte cut the query short. - /*/ was taken for a comment that opens and closes, while the server reads it as one that only opens. - ConnSettings was split at every semicolon, including one inside a quoted literal, so an application that puts an end user's value into a SET command there ran the rest of the value as SQL at connect time. An end user who controls text the application puts into a statement, or a parameter value, can run SQL with the rights of the application's database role. A database user who can create a table with a crafted name can redirect another user's positioned writes to a table of their choosing. Versions up to and including psqlODBC 18.00.0006 are affected.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
PostgreSQL psqlODBC 0 ~ 18.00.0006 -

二、漏洞 CVE-2026-136502 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-136502 的情报信息

请登录查看更多情报信息。

CVE-2026-136502 其他参考 (2)

同批安全公告 · PostgreSQL · 2026-11-25 · 共 17 条

CVE-2026-136500 8.1 HIGH SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings
CVE-2026-136507 8.1 HIGH Connection string injection in SQLDriverConnect and the MSDTC XA open string
CVE-2026-136506 7.5 HIGH SQL injection through names the driver puts into its own queries
CVE-2026-136515 7.5 HIGH Memory corruption and crashes when the driver rewrites statements for cursors and escapes
CVE-2026-136505 7.5 HIGH Unchecked sizes and counters overflow driver buffers
CVE-2026-136509 7.5 HIGH Driver does not check that server replies match the queries it sent
CVE-2026-136512 7.5 HIGH Buffer overflows when a converted value does not fit the application's buffer
CVE-2026-136503 7.5 HIGH Use after free, double free and out-of-bounds writes in result and transaction clean-up
CVE-2026-136501 7.1 HIGH Positioned writes go to another user's table through name and case matching
CVE-2026-136511 6.8 MEDIUM An SSLmode value written with capitals or braces connects without TLS
CVE-2026-136508 6.8 MEDIUM MSDTC connections drop the connection's TLS and channel binding settings
CVE-2026-136514 6.5 MEDIUM Another database user can crash applications by changing a table they own
CVE-2026-136499 5.9 MEDIUM Driver sends application memory to the server or returns it to the caller
CVE-2026-136504 5.0 MEDIUM Debug log records the database password in clear text
CVE-2026-136510 4.8 MEDIUM Statement after an abandoned parameter array sends the abandoned batch's rows instead of i
CVE-2026-136513 3.6 LOW Another local user can redirect log files (incomplete fix for CVE-2026-120066)

IV. Related Vulnerabilities