Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2024-27304 (Critical) detected in github.com/Jackc/pgx/v5-v5.5.2 - autoclosed #5727

Closed
Tracked by #5671
mend-bolt-for-github bot opened this issue Apr 23, 2024 · 1 comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-bolt-for-github
Copy link
Contributor

CVE-2024-27304 - Critical Severity Vulnerability

Vulnerable Library - github.com/Jackc/pgx/v5-v5.5.2

PostgreSQL driver and toolkit for Go

Library home page: https://proxy.golang.org/github.com/!jackc/pgx/v5/@v/v5.5.2.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go.mod

Dependency Hierarchy:

  • github.com/Jackc/pgx/v5-v5.5.2 (Vulnerable Library)

Found in base branch: main

Vulnerability Details

pgx is a PostgreSQL driver and toolkit for Go. 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. The problem is resolved in v4.18.2 and v5.5.4. As a workaround, reject user input large enough to cause a single query or bind message to exceed 4 GB in size.

Publish Date: 2024-03-06

URL: CVE-2024-27304

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-mrww-27vc-gghv

Release Date: 2024-03-06

Fix Resolution: jackc/pgproto3 - v2.3.3, github.com/jackc/pgx - v4.18.2,v5.5.4


Step up your Open Source Security Game with Mend here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Apr 23, 2024
@tomkerkhove tomkerkhove mentioned this issue Apr 24, 2024
35 tasks
@mend-bolt-for-github mend-bolt-for-github bot changed the title CVE-2024-27304 (Critical) detected in github.com/Jackc/pgx/v5-v5.5.2 CVE-2024-27304 (Critical) detected in github.com/Jackc/pgx/v5-v5.5.2 - autoclosed Apr 25, 2024
Copy link
Contributor Author

✔️ This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants