Skip to main content

SQL::Abstract CVE-2026-121007

| EUVDEUVD-2026-116927 HIGH
SQL Injection (CWE-89)
2026-11-04 CPANSec GHSA-24q3-fp2q-x646
7.3
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach web app input field
  2. Delivery
    Submit crafted value as nested-statement where value
  3. Exploit
    Value concatenated into SQL text unescaped
  4. Execution
    Injected SQL executes against database
  5. Impact
    Unauthorized data read or modification

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a specific, non-default coding pattern: the application must place a nested statement (e.g. { -select => ... }, { -update => ... }, or { -values => ... }) in a position where plain scalars are treated as identifiers - the select list, ORDER BY, GROUP BY, RETURNING, or, with the ExtraClauses plugin, FROM (-as) and JOIN (to) - AND must pass untrusted input as that nested statement's where, having, or set value (or a -values row), expecting it to be bound. Injection is unescaped only when quote_char is NOT set; setting quote_char quotes the value and blocks the identifier-style break-out. LIMITING FACTORS: subselects used in an ordinary WHERE condition are NOT affected; applications that never embed nested statements in identifier positions, or that pass only trusted/validated input there, are not exploitable; only SQL::Abstract versions 1.90_01 through before 2.000001_04 (Perl) are vulnerable. The trigger therefore depends on application code, not on library defaults alone.

Impact

This is a genuine SQL injection weakness (CWE-89) in the SQL::Abstract Perl query builder, but the signals point to a real-but-not-urgent priority rather than a mass-exploitation emergency. The supplied CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:N) with PR:N indicates unauthenticated network-reachable exploitation, yet the impact is only partial (C:L/I:L/A:L, score 7.3), and crucially the flaw is NOT reachable against a default/arbitrary use of the library - it only manifests when an application passes untrusted input as a where/having/set value of a *nested statement* (e.g. { -select => ... }) sitting in an identifier position. EPSS is low at 0.18% (8th percentile) and the CVE is NOT on CISA KEV, so there is no confirmed active exploitation; the vuln.today decision label is 'this_week', consistent with a patch-this-cycle rather than drop-everything posture. No public working exploit is identified in the input - only the vendor patch commit and advisories - though the description and the added regression test disclose the exploitable payload shape ({ id => "1 OR 1=1" } rendering as WHERE id = 1 OR 1=1). The main caveat: the CVSS network/no-auth framing reflects the worst-case application that exposes the vulnerable coding pattern to untrusted input; whether any given deployment is affected depends entirely on application code and on quote_char being unset, so raw CVSS likely overstates risk for most installations.

Exploit ScenarioDerived

A Perl web application builds a query with SQL::Abstract and embeds a nested statement such as { -select => { ... where => { id => $user_input } } } in its select list, ORDER BY, GROUP BY, RETURNING, or (with ExtraClauses) a FROM (-as) or JOIN (to) position, expecting $user_input to be bound as a parameter. Because the nested statement's where value is instead emitted into the SQL text - unescaped when quote_char is not set - an unauthenticated attacker supplies a value like '1 OR 1=1' (or '1; ...') to read or alter data. No public working exploit tool is identified at time of analysis, but the vendor's regression test demonstrates the exact injection payload.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

SQL injection in the SQL::Abstract Perl query builder affects versions from 1.90_01 through before 2.000001_04: when an application embeds a nested statement such as { -select => ... }, { -update => ... } or { -values => ... } in a position where plain scalars are treated as identifiers (select list, ORDER BY, GROUP BY, RETURNING, or FROM/JOIN via the ExtraClauses plugin), the nested statement's own where, having and set values - and the rows of a -values clause - are written into the SQL text instead of the bind list, and are left unescaped when quote_char is not configured. An attacker who controls such a value can break out of the intended literal and alter the query, with limited confidentiality, integrity and availability impact (CVSS 7.3, AV:N/AC:L/PR:N/UI:N). Exploitation depends on a specific, non-default coding pattern in the consuming application rather than on library defaults, and no public exploit has been identified at time of analysis; EPSS is low (0.18%, 8th percentile) and the vuln.today priority label is this_week.

RemediationAI

Vendor-released patch: 2.000001_04 - upgrade SQL::Abstract to 2.000001_04 or later (CPAN release GETTY/SQL-Abstract-2.000001_04, changelog at https://metacpan.org/release/GETTY/SQL-Abstract-2.000001_04/changes; the code change is commit 79fc34e874b4edb441154eccddb04c57d5c1c90e, viewable as a patch at https://github.com/dbsrgits/sql-abstract/commit/79fc34e874b4edb441154eccddb04c57d5c1c90e.patch), and confirm afterwards that nested-statement where/having/set values appear as placeholders in the generated SQL rather than inline text. If an upgrade cannot be scheduled immediately, configure SQL::Abstract with quote_char (and name_sep where dotted names are used): the assessment confirms that setting quote_char quotes the affected values so the identifier-style break-out is blocked, at the cost of changing generated identifier quoting across the whole application and any downstream consumers that parse or compare that SQL. As a code-level containment, stop placing nested statements in identifier positions (select list, ORDER BY, GROUP BY, RETURNING, FROM -as, JOIN to) when any part of that nested statement is built from untrusted input, and validate or whitelist such input before it reaches the query builder. Ordinary subselects used in a WHERE condition are not affected and need no change. Advisory reading is available at https://seclists.org/oss-sec/2026/q4/513, https://vuldb.com/vuln/431089 and https://nvd.nist.gov/vuln/detail/CVE-2026-121007.

Affected ProductsAI

The Perl distribution SQL::Abstract (CPAN, dbsrgits/sql-abstract), versions from 1.90_01 up to but not including 2.000001_04; the ExtraClauses plugin shipped in the same distribution is in scope for the FROM (-as) and JOIN (to) identifier positions, while the core select list, ORDER BY, GROUP BY and RETURNING positions are affected without any plugin. No CPE strings were supplied with this record, so identification must be done by distribution name and version rather than by CPE matching. The upstream changelog entry for the fix is published at https://metacpan.org/release/GETTY/SQL-Abstract-2.000001_04/changes, and the fixing commit is at https://github.com/dbsrgits/sql-abstract/commit/79fc34e874b4edb441154eccddb04c57d5c1c90e.patch; additional advisories are available at https://seclists.org/oss-sec/2026/q4/513 and https://vuldb.com/vuln/431089, with the EU ENISA record at EUVD-2026-116927.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SQL::Abstract is a long-standing Perl library that turns Perl data structures into SQL text plus a parallel @bind list, so callers can pass scalars as placeholders rather than interpolating them. Internally a package variable controls whether a plain scalar in the current context is rendered as an identifier or as a value; in identifier contexts (select list, ORDER BY, GROUP BY, RETURNING, and - with the ExtraClauses plugin - the FROM '-as' and JOIN 'to' slots) that default was inherited by nested statements, so the where/having/set scalars and -values rows inside such a nested statement were emitted as identifiers into the SQL string instead of becoming bind parameters. Without quote_char those escaped-identifier renderings were not quoted, so a value like "1 OR 1=1" produced 'WHERE id = 1 OR 1=1'; with quote_char set the value is quoted as an identifier and the break-out is blocked. This is CWE-89 (SQL injection) rooted in an incorrect taint/context propagation of the scalar-to-identifier default across nesting levels. The upstream fix (commit 79fc34e874b4edb441154eccddb04c57d5c1c90e) localises the default to -value while rendering a statement and while expanding -values rows, restoring bind behaviour; a regression test suite (t/27nested_statement_binds.t) covers select list, ORDER BY, GROUP BY, RETURNING, FROM -as, JOIN to, twice-nested statements, nested having, nested update set and -values in FROM. Subselects placed inside an ordinary WHERE condition are not affected, and plain scalars in a select list proper remain identifiers by design.

Know when Perl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 7.3 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
vuln.today AI 7.3 HIGH

Network-facing app input with no attacker privileges or interaction (AV:N/AC:L/PR:N/UI:N); SQLi yields partial read/write/availability impact (C:L/I:L/A:L) bounded by the specific nested-statement usage pattern.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

3
CVSS changed
Nov 10, 2026 - 13:22 NVD
7.3 (HIGH)
CVE Published
Nov 04, 2026 - 14:35 cve.org
UNKNOWN (no severity yet)
CVE Published
Nov 04, 2026 - 14:35 cve.org
HIGH 7.3

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-121007 is a high-severity SQL injection in the widely used Perl library SQL::Abstract, affecting versions 1.90_01 through before 2.000001_04. While no public exploit has been identified, the vulnerability requires a specific non-default coding pattern in applications that use the library, potentially exposing data and enabling query manipulation. Leadership should prioritize patching because SQL::Abstract is embedded in many Perl applications, and unpatched systems could lead to data breaches or service disruption if exploited.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
core Perl SQL builder (DBIx::Class backend) but Perl-only, version- and usage-specific footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy