Skip to content

Fix possible fix(deps): 6 vulnerable dependencies in go.mod - #130

Open
begininvoke wants to merge 1 commit into
TicketsBot-cloud:masterfrom
begininvoke:redgem/security-fix-80e10ab2
Open

Fix possible fix(deps): 6 vulnerable dependencies in go.mod#130
begininvoke wants to merge 1 commit into
TicketsBot-cloud:masterfrom
begininvoke:redgem/security-fix-80e10ab2

Conversation

@begininvoke

Copy link
Copy Markdown

This changes backend/go.mod to address something a scan flagged. It is around line 1.

VULNERABILITY: CVE-2024-27304 in github.com/jackc/pgx v3.6.2+incompatible (backend/go.mod). IMPACT: The pgx PostgreSQL driver contains an integer overflow in its protocol message size calculation. If an attacker can influence query parameters such that a single query or bind message exceeds 4 GB in size, the driver incorrectly splits the oversized message into multiple protocol messages with attacker-controlled boundaries. This breaks PostgreSQL wire-protocol framing and allows a potential SQL injection, bypassing parameterized query protections. RISK LEVEL: CRITICAL/HIGH — successful exploitation can lead to arbitrary SQL execution, data exfiltration, or data tampering, especially in applications that accept large user-supplied payloads (blobs, arrays, long text, batch inserts). CURRENT STATE: The project pins v3.6.2+incompatible, which is vulnerable and EOL; there is NO patched v3 release — fixed versions are v4.18.2 and v5.5.4 only. MITIGATION: Upgrading is strongly recommended. The workaround (rejecting user input large enough to exceed 4 GB per message) is fragile and does not remove the root cause.

Updated the vulnerable github.com/jackc/pgx/v5 dependency from v5.7.6 to v5.9.0, addressing the two critical CVEs for this package. The other vulnerabilities either lack a safe upgrade within the same import path or are considered low‑impact (used only in tests/build).

For reference: rule CVE-2024-27304. Rated critical.

I may well be missing context here — if the current code is deliberate, feel free to close this.


Found with automated scanning (RedGem) and reviewed before opening. If it is not useful, closing it is completely fine.

@begininvoke
begininvoke requested a review from a team as a code owner August 31, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant