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.
2024年3月に公表された、Go向けPostgreSQLドライバー「pgx」のSQLインジェクションの脆弱性(CVE-2024-27289)です。4.18.2より前のバージョンが対象で、CVSSは8.1です。修正版の4.18.2で対応できるため、利用中のバージョンを確認し、更新してください。
pgxにおけるSQLインジェクションの脆弱性
pgxのバージョン4.18.2未満
Go言語で使用されるPostgreSQLドライバーにおいて、ユーザー制御可能なパラメータを通じてSQLインジェクションが可能。CVSSスコアは8.1で、高い重要性を持つ。
バージョン4.18.2にアップデートして、脆弱性を修正する。
シンプルプロトコルを使用しないか、プレースホルダーの前にマイナスを置かない。
pgxを使用しているコードを確認し、該当バージョンを使っていないかチェックする。
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2024-27289 golang-github-jackc-pgx Fix available
- Ubuntu UBUNTU-CVE-2024-27289 golang-github-jackc-pgx No fixed version in this record
Original description The description as published by the source.
pgx is a PostgreSQL driver and toolkit for Go. Prior to version 4.18.2, SQL injection can occur when all of the following conditions are met: the non-default simple protocol is used; a placeholder for a numeric value must be immediately preceded by a minus; there must be a second placeholder for a string value after the first placeholder; both must be on the same line; and both parameter values must be user-controlled. The problem is resolved in v4.18.2. As a workaround, do not use the simple protocol or do not place a minus directly before a placeholder.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web sonarsource.com