CVE-2026-121265

SQL::Abstract versions before 2.000003 for Perl allow SQL injection via an arrayref column value in insert and update

Published Nov 7, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
SQL::Abstract versions before 2.000003 for Perl allow SQL injection via an arrayref column value in insert and update.

With the array_datatypes option off, which is the default, insert(), update() and values() treat an arrayref column value as literal SQL. Its first element goes into the SQL text unescaped and the rest become bind values. A JSON array, or a repeated form field decoded as an arrayref, is such a value.

An application that passes request data as column values to insert or update with the default options allows SQL injection.

Releases before 2.000003 also treat an arrayref in generate() as literal SQL, including through AUTOLOAD when allow_autoload is on, whatever array_datatypes is set to.

Analysis

AI-generated

Technical impact

SQL::Abstract versions before 2.000003 handle arrayref column values in insert and update without proper escaping. An attacker can supply data that includes raw SQL fragments, which the library incorporates directly into the generated query, allowing execution of arbitrary SQL commands. This flaw compromises database integrity and confidentiality, potentially exposing sensitive data or enabling data loss.

Affected Systems

The vulnerability affects Perl applications that use SQL::Abstract 2.000002 or earlier when array_datatypes is set to off, the default. Applications that forward untrusted request data directly to insert or update functions are at risk. The affected product is the SQL::Abstract Perl module from any vendor providing it.

Risk and Exploitability

An attacker can trigger the flaw by supplying data that becomes column values in insert or update calls. The vulnerability yields a classic SQL injection effect, allowing arbitrary SQL through the first element of an arrayref treated as literal SQL. The CVSS score is 9.8, indicating critical severity, while the EPSS score is less than 1%, suggesting a low probability of exploitation in the wild. The module is not listed in CISA’s KEV catalog, but the high CVSS still calls for immediate mitigation.

Remediation

Vendor Solution

Upgrade to SQL-Abstract 2.000003 or later.


OpenCVE Recommended Actions

  • Upgrade the SQL::Abstract Perl module to version 2.000003 or later.
  • If an upgrade is not feasible, ensure that no arrayref values are passed to insert or update by coalescing or validating input before it reaches the database layer.
  • Configure the module with array_datatypes set to on or otherwise enforce strict input validation to prevent raw SQL from being injected via array references.

Generated by OpenCVE AI on November 15, 2026 at 08:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Perl
Perl sql::abstract
Vendors & Products Perl
Perl sql::abstract
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Description SQL::Abstract versions before 2.000003 for Perl allow SQL injection via an arrayref column value in insert and update. With the array_datatypes option off, which is the default, insert(), update() and values() treat an arrayref column value as literal SQL. Its first element goes into the SQL text unescaped and the rest become bind values. A JSON array, or a repeated form field decoded as an arrayref, is such a value. An application that passes request data as column values to insert or update with the default options allows SQL injection. Releases before 2.000003 also treat an arrayref in generate() as literal SQL, including through AUTOLOAD when allow_autoload is on, whatever array_datatypes is set to.
Title SQL::Abstract versions before 2.000003 for Perl allow SQL injection via an arrayref column value in insert and update
Weaknesses CWE-89
References
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, 2:13 PM
Reserved
Nov 3, 2026, 10:57 AM
Status
Deferred
Published
Nov 7, 2026, 12:17 PM
Modified
Nov 12, 2026, 8:07 PM