CVE-2026-112307
7.3HighPublished Oct 19, 2026 · NVD status: Deferred · AI triage by gemini-3.8-flash
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User action
- Required
- Impact
- High impact on confidentiality, integrity
- Weakness
- CWE-94
What an attacker gets
Attackers can achieve arbitrary PHP code execution by supplying crafted SQL containing dollar-sign expressions to applications that process or export SQL into PHP snippets. This requires user interaction or an application path that accepts attacker-supplied SQL and executes the resulting PHP output.
Root cause
OutputPHPFilter places unescaped dollar signs from input SQL inside double-quoted PHP strings, allowing embedded variable interpolation like ${expr} to evaluate as code.
Affected versions
sqlparse through 0.6.0
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
Fix & remediation
Upgrade sqlparse to a version containing pull request #930 once released. As an interim mitigation, stop using sqlparse's PHP output formatting (OutputPHPFilter) on untrusted SQL input.
$ pip install --upgrade sqlparseAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1387027.5HighRemote attackers can crash the application by exhausting server memory. This requires the application to expose Grid aggregate operations to untrusted users.
- CVE-2026-1378567.5HighUnauthenticated attackers can crash the Zimbra mailbox service and exhaust disk space via log amplification. This requires network access to the GraphQL endpoint.
- CVE-2026-1328287.4HighAttackers can intercept or modify sensitive data like credentials and request bodies in transit. This happens when the component incorrectly downgrades HTTPS requests to cleartext HTTP if TLS parameters are missing.
- CVE-2026-1266357.5HighUnauthenticated attackers can steal backend authentication credentials by observing HTTP response headers. This occurs when the OData component leaks configured Basic or Bearer tokens back to the client.
- CVE-2026-936489.3CriticalUnauthenticated attackers can execute arbitrary JavaScript in a user's browser by sending a crafted iCalendar invitation. This allows the attacker to steal mailbox data and perform actions as the logged-in user.
- CVE-2026-936469.8CriticalUnauthenticated attackers can execute arbitrary commands as the zimbra user. They only need network access to the Zimbra server to exploit the flawed token authorization.