CVE-2026-121007SQL::Abstract versions from 1.90_01 before 2.000001_04 for Perl allow SQL injection via…
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.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libsql-abstract-perl | Fix pending | UBUNTU-CVE-2026-121007 | |
| Ubuntu 26.04 | libsql-abstract-perl | Under investigation | UBUNTU-CVE-2026-121007 | |
| Ubuntu 24.04 | libsql-abstract-perl | Under investigation | UBUNTU-CVE-2026-121007 | |
| Ubuntu 22.04 | libsql-abstract-perl | Under investigation | UBUNTU-CVE-2026-121007 | |
| Ubuntu 20.04 | libsql-abstract-perl | Fix pending | UBUNTU-CVE-2026-121007 | |
| Ubuntu 18.04 | libsql-abstract-perl | Fix pending | UBUNTU-CVE-2026-121007 | |
| Ubuntu 16.04 | libsql-abstract-perl | Fix pending | UBUNTU-CVE-2026-121007 | |
| Debian 14 | libsql-abstract-perl | Fix pending | DEBIAN-CVE-2026-121007 | |
| Debian 13 | libsql-abstract-perl | Fix pending | DEBIAN-CVE-2026-121007 | |
| Debian 12 | libsql-abstract-perl | Fix pending | DEBIAN-CVE-2026-121007 | |
| Alpine Linux 3.24 | perl-sql-abstract | Fixed | 2.000003-r0 | ALPINE-CVE-2026-121007 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- SQL-Abstract: affected: 1.90_01 to before 2.000001_04; fixed in
2.000001_04
Solution: Upgrade to SQL-Abstract 2.000001_04 or later.
Vendor advisories:
- https://github.com/dbsrgits/sql-abstract/commit/79fc34e874b4edb441154eccddb04c57d5c1c90e.… (patch)
- https://metacpan.org/release/GETTY/SQL-Abstract-2.000001_04/changes (release-notes)
References
- https://github.com/dbsrgits/sql-abstract/commit/79fc34e874b4edb441154eccddb04c57d5c1c90e.patch
- https://metacpan.org/release/GETTY/SQL-Abstract-2.000001_04/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.