Skip to content
High 8.1 Web Application

SQL Injection in pgx

CVE-2024-27289 First seen on SecPulse

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で対応できるため、利用中のバージョンを確認し、更新してください。

What is the problem

pgxにおけるSQLインジェクションの脆弱性

Affected scope

pgxのバージョン4.18.2未満

Severity

Go言語で使用されるPostgreSQLドライバーにおいて、ユーザー制御可能なパラメータを通じてSQLインジェクションが可能。CVSSスコアは8.1で、高い重要性を持つ。

How to fix

バージョン4.18.2にアップデートして、脆弱性を修正する。

Workaround

シンプルプロトコルを使用しないか、プレースホルダーの前にマイナスを置かない。

Detection

pgxを使用しているコードを確認し、該当バージョンを使っていないかチェックする。

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details