Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach web app input field
-
DeliverySubmit crafted value as nested-statement where value
-
ExploitValue concatenated into SQL text unescaped
-
ExecutionInjected SQL executes against database
-
ImpactUnauthorized 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
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.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
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
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
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
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-116927
GHSA-24q3-fp2q-x646
NVD
CVE.org
EPSS
VulDB
Exploit-DB