Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-112307— sqlparse through 0.6.0 PHP Code Injection via output_format='php'

Quick assessment

Affected
andialbrecht sqlparse
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

sqlparse 0.6.0 及之前版本存在 PHP 代码注入漏洞。攻击者可以通过提供包含未转义美元符号($)的 SQL 文本,注入 PHP 表达式。攻击者可嵌入 或 序列,这些序列会被 OutputPHPFilter 放入双引号字符串中,从而导致在生成的代码片段执行时运行任意 PHP 代码。

CVSS 7.3 · High

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
andialbrecht sqlparse ≤ 0.6.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-112307

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
sqlparse through 0.6.0 PHP Code Injection via output_format='php'
Source: CVE Program / CVE List V5
Vulnerability Description
sqlparse through 0.6.0 contains a PHP code injection vulnerability that allows attackers to inject PHP expressions by supplying SQL text containing unescaped dollar signs. Attackers can embed ${expr} or {${expr}} sequences that OutputPHPFilter places in double-quoted strings, executing arbitrary PHP code when the generated snippet runs.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
andialbrecht sqlparse 0 ~ 0.6.0 -

II. Public POCs for CVE-2026-112307

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-112307

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

Patches & Fixes for CVE-2026-112307 (1)

Vendor Advisories for CVE-2026-112307 (1)

Other References for CVE-2026-112307 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-112307

No comments yet


Leave a comment