KnexのMSSQL方言に SQLインジェクションの脆弱性 任意のT-SQLを実行されるおそれ
Summary
Knexの3.3.0以前には、MSSQL方言でテーブル名やビュー名を経由してT-SQLを注入される脆弱性があります。悪用されると、データベース接続の権限で任意のT-SQLを実行されるおそれがあります。修正版の有無は公表されていないため、最新の情報を確認してください。
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.
Knexの3.3.0以前には、MSSQL方言でテーブル名やビュー名を経由してT-SQLを注入される脆弱性があります。悪用されると、データベース接続の権限で任意のT-SQLを実行されるおそれがあります。修正版の有無は公表されていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| knexknex |
≤ 3.3.0→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Knex through 3.3.0 contains an sql injection vulnerability in the MSSQL dialect that allows attackers to inject T-SQL via table or view names. Attackers can supply names containing a single quote to close the object_id() literal in dropTableIfExists, dropViewIfExists, or createTableIfNotExists and execute arbitrary T-SQL with the database connection's privileges.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com