CVE-2026-121007

SQL::Abstract versions from 1.90_01 before 2.000001_04 for Perl allow SQL injection via the where values of a nested statement in an identifier position

Published Nov 4, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
SQL::Abstract versions from 1.90_01 before 2.000001_04 for Perl allow SQL injection via the where values of a nested statement in an identifier position.

A nested statement such as { -select => ... } in a position where plain scalars are identifiers treats its own plain scalars as identifiers too. These positions are the select list, ORDER BY, GROUP BY, RETURNING, and with the ExtraClauses plugin FROM (-as) and JOIN (to). The values of the statement's where, having and set clauses, and the rows of a -values, go into the SQL text instead of the bind list, unescaped unless quote_char is set. Subselects in a WHERE condition are not affected.

An application that passes untrusted input as a where value of such a nested statement, expecting it to be bound, allows SQL injection.

Analysis

AI-generated

Technical impact

The vulnerability in Perl's SQL::Abstract module allows an attacker to inject arbitrary SQL by supplying untrusted input as a where value inside a nested statement positioned as an identifier. The injection occurs when the module treats these values as part of the SQL text rather than a bind parameter, leading to potential data exposure, modification, or deletion. This flaw is identified as CWE‑89, reflecting an improper handling of user input in SQL construction.

Affected Systems

The CVE affects Perl applications that include SQL::Abstract versions 1.90_01 through any release prior to 2.000001_04. The module is distributed via CPAN and widely used in database abstraction layers; any code that relies on these versions for query generation is vulnerable. No specific vendor or additional product names are disclosed beyond the Perl module itself.

Risk and Exploitability

The CVSS score is 7.3 and the EPSS score is < 1%. The vulnerability is not listed in CISA’s KEV catalog, yet its exploitation potential remains high, especially in applications that accept user input without proper validation or binding. An attacker could exploit this flaw if the application exposes the vulnerable query paths through a web interface or other remote service, or via local code injection if such nested statements are used with untrusted input.

Remediation

Vendor Solution

Upgrade to SQL-Abstract 2.000001_04 or later.


OpenCVE Recommended Actions

  • Upgrade the SQL::Abstract module to version 2.000001_04 or later to eliminate the injection path.
  • Ensure that all user-supplied data passed to SQL::Abstract is validated or escaped; prefer the use of bind parameters for dynamic queries.
  • If an upgrade cannot be performed immediately, avoid using nested statements that include where clauses in identifier positions, or configure the module’s quote_char option to force escaping.

Generated by OpenCVE AI on November 15, 2026 at 10:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}

Type Values Removed Values Added
Description SQL::Abstract versions from 1.90_01 before 2.000001_04 for Perl allow SQL injection via the where values of a nested statement in an identifier position. A nested statement such as { -select => ... } in a position where plain scalars are identifiers treats its own plain scalars as identifiers too. These positions are the select list, ORDER BY, GROUP BY, RETURNING, and with the ExtraClauses plugin FROM (-as) and JOIN (to). The values of the statement's where, having and set clauses, and the rows of a -values, go into the SQL text instead of the bind list, unescaped unless quote_char is set. Subselects in a WHERE condition are not affected. An application that passes untrusted input as a where value of such a nested statement, expecting it to be bound, allows SQL injection.
Title SQL::Abstract versions from 1.90_01 before 2.000001_04 for Perl allow SQL injection via the where values of a nested statement in an identifier position
Weaknesses CWE-89
References

Subscriptions

No data.

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 10, 2026, 12:43 PM
Reserved
Nov 3, 2026, 8:03 AM
Status
Deferred
Published
Nov 4, 2026, 3:17 PM
Modified
Nov 12, 2026, 8:07 PM