Knexのオラクル向け処理に SQLインジェクションの脆弱性
Summary
Knexの3.3.0以前には、Oracle向けのrefreshMaterializedView()で、ビュー名やスキーマ名に細工した値を渡すとPL/SQLを注入され、データベース接続の権限で任意の処理を実行されるおそれがあります。CVSS v3.1は7.5、v4.0は7.7です。修正版の情報は確認できていないため、最新の情報を確認してください。
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以前には、Oracle向けのrefreshMaterializedView()で、ビュー名やスキーマ名に細工した値を渡すとPL/SQLを注入され、データベース接続の権限で任意の処理を実行されるおそれがあります。CVSS v3.1は7.5、v4.0は7.7です。修正版の情報は確認できていないため、最新の情報を確認してください。
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 Oracle dialect refreshMaterializedView() that allows attackers to inject PL/SQL by supplying crafted view or schema names. Attackers can include a single quote to close the DBMS_MVIEW.REFRESH literal and append arbitrary PL/SQL statements that run 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