GHSA-mrww-27vc-gghv

Suggest an improvement
Source
https://github.com/advisories/GHSA-mrww-27vc-gghv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-mrww-27vc-gghv/GHSA-mrww-27vc-gghv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mrww-27vc-gghv
Aliases
Related
Published
2024-03-04T20:43:24Z
Modified
2024-12-12T22:30:36Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U CVSS Calculator
Summary
pgx SQL Injection via Protocol Message Size Overflow
Details

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 v4.18.2 and v5.5.4.

Workarounds

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

Database specific
{
    "nvd_published_at": "2024-03-06T19:15:08Z",
    "cwe_ids": [
        "CWE-190",
        "CWE-89"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-03-04T20:43:24Z"
}
References

Affected packages

Go / github.com/jackc/pgx

Package

Name
github.com/jackc/pgx
View open source insights on deps.dev
Purl
pkg:golang/github.com/jackc/pgx

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.18.2

Go / github.com/jackc/pgx

Package

Name
github.com/jackc/pgx
View open source insights on deps.dev
Purl
pkg:golang/github.com/jackc/pgx

Affected ranges

Type
SEMVER
Events
Introduced
5.0.0
Fixed
5.5.4

Go / github.com/jackc/pgx/v4

Package

Name
github.com/jackc/pgx/v4
View open source insights on deps.dev
Purl
pkg:golang/github.com/jackc/pgx/v4

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.18.2

Go / github.com/jackc/pgx/v5

Package

Name
github.com/jackc/pgx/v5
View open source insights on deps.dev
Purl
pkg:golang/github.com/jackc/pgx/v5

Affected ranges

Type
SEMVER
Events
Introduced
5.0.0
Fixed
5.5.4