Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

CVE-2026-121265: Perl SQL::Abstract before 2.0.0 can let attackers run unwanted database commands

CVE-2026-121265 · published 15 days ago
Summary

The Perl library SQL::Abstract, in versions prior to 2.0.0, treats certain list inputs as raw SQL when inserting or updating data. If a web application passes user‑supplied list data directly to these functions, an attacker could inject malicious SQL statements. Upgrade the library to version 2.0.0 or later, or ensure that no array values are passed to insert or update without proper sanitisation.

What to do
  • Update perl-sql-abstract to version 2.000003-r0.
Affected software
Ecosystem VendorProductAffected versions
Debian:12 debian libsql-abstract-perl All versions
Alpine:v3.24 – perl-sql-abstract < 2.000003-r0
Fix: upgrade to 2.000003-r0
Ubuntu:16.04:LTS canonical libsql-abstract-perl All versions
Original advisory text
SQL::Abstract versions before 2.000003 for Perl allow SQL injection via an arrayref column value in insert and update
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
9.8 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-89SQL Injection
Timeline
Published7 Nov 2026
Updated21 Nov 2026
First seen7 Nov 2026
Track software like this
Free during beta