Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS03andoLTN2cnEtcTNtOM4AA5wG

pgproto3 SQL Injection via Protocol Message Size Overflow

Impact

SQL injection can occur if an attacker can cause a single query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause the one large message to be sent as multiple messages under the attacker's control.

Patches

The problem is resolved in v2.3.3

Workarounds

Reject user input large enough to cause a single query or bind message to exceed 4 GB in size.

Permalink: https://github.com/advisories/GHSA-7jwh-3vrq-q3m8
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03andoLTN2cnEtcTNtOM4AA5wG
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 2 months ago
Updated: about 1 month ago


Identifiers: GHSA-7jwh-3vrq-q3m8
References: Repository: https://github.com/jackc/pgproto3
Blast Radius: 0.0

Affected Packages

go:github.com/jackc/pgx/v5
Dependent packages: 3,079
Dependent repositories: 4,965
Downloads:
Affected Version Ranges: >= 5.0.0, < 5.5.4
Fixed in: 5.5.4
All affected versions: 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.1.0, 5.1.1, 5.2.0, 5.3.0, 5.3.1, 5.4.0, 5.4.1, 5.4.2, 5.4.3, 5.5.0, 5.5.1, 5.5.2, 5.5.3
All unaffected versions: 5.5.4, 5.5.5
go:github.com/jackc/pgx/v4
Dependent packages: 8,017
Dependent repositories: 18,275
Downloads:
Affected Version Ranges: < 4.18.2
Fixed in: 4.18.2
All affected versions: 4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.3.0, 4.4.0, 4.4.1, 4.5.0, 4.6.0, 4.7.0, 4.7.1, 4.7.2, 4.8.0, 4.8.1, 4.9.0, 4.9.1, 4.9.2, 4.10.0, 4.10.1, 4.11.0, 4.12.0, 4.13.0, 4.14.0, 4.14.1, 4.15.0, 4.16.0, 4.16.1, 4.17.0, 4.17.1, 4.17.2, 4.18.0, 4.18.1
All unaffected versions: 4.18.2, 4.18.3
go:github.com/jackc/pgproto3/v2
Dependent packages: 6,803
Dependent repositories: 18,200
Downloads:
Affected Version Ranges: < 2.3.3
Fixed in: 2.3.3
All affected versions: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.1.0, 2.1.1, 2.2.0, 2.3.0, 2.3.1, 2.3.2
All unaffected versions: 2.3.3
go:github.com/jackc/pgproto3
Dependent packages: 15
Dependent repositories: 17,816
Downloads:
Affected Version Ranges: < 2.3.3
Fixed in: 2.3.3
All affected versions: 1.0.0, 1.1.0
All unaffected versions: