SQL::Abstractに SQLインジェクションの脆弱性 入れ子の文で入力値が実行される
Summary
2026年11月4日に公表された、Perl向けSQL::Abstractの脆弱性です。入れ子の文のWHERE条件の値がバインドされず、SQL文に直接組み込まれるため、SQLインジェクションにつながります。1.90_01から2.000001_04より前の版が対象で、2.000001_04で修正されています。影響を受ける場合は修正版への更新を検討してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
2026年11月4日に公表された、Perl向けSQL::Abstractの脆弱性です。入れ子の文のWHERE条件の値がバインドされず、SQL文に直接組み込まれるため、SQLインジェクションにつながります。1.90_01から2.000001_04より前の版が対象で、2.000001_04で修正されています。影響を受ける場合は修正版への更新を検討してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANSQL-Abstract |
≥ 1.90_01, < 2.000001_04→ 2.000001_04 |
2.000001_04 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-121007 perl-sql-abstract Fix available
- Debian DEBIAN-CVE-2026-121007 libsql-abstract-perl No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-121007 libsql-abstract-perl No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory metacpan.org
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web cpan.org