Vulnerability in golang-github-jackc-pgx
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as DEBIAN-CVE-2024-27289 has been found in golang-github-jackc-pgx.
Risk of unauthorized operations or information disclosure.
What to do: upgrade golang-github-jackc-pgx to 4.18.1-2 or later.
If unsure, ask your IT team or search "golang-github-jackc-pgx DEBIAN-CVE-2024-27289" on the vendor's site.
DEBIAN-CVE-2024-27289 (golang-github-jackc-pgx)
Patched: 4.18.1-2 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in golang-github-jackc-pgx.
Check the vendor advisory for the affected versions of golang-github-jackc-pgx.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 4.18.1-2.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'golang-github-jackc-pgx' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'golang-github-jackc-pgx' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
golang-github-jackc-pgxを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade golang-github-jackc-pgx to 4.18.1-2ステージング環境で 4.18.1-2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:11golang-github-jackc-pgx |
All versions→ Not listed |
Not listed |
| Debian:12golang-github-jackc-pgx |
All versions→ Not listed |
Not listed |
| Debian:13golang-github-jackc-pgx |
< 4.18.1-2→ 4.18.1-2 |
4.18.1-2 |
| Debian:14golang-github-jackc-pgx |
< 4.18.1-2→ 4.18.1-2 |
4.18.1-2 |
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: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org