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

gorm.io/driver/postgres-v1.5.7: 2 vulnerabilities (highest severity is: 9.8) #518

Open
mend-bolt-for-github bot opened this issue Jul 15, 2024 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-bolt-for-github
Copy link
Contributor

Vulnerable Library - gorm.io/driver/postgres-v1.5.7

Path to dependency file: /capten/go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/jackc/pgx/v5/@v/v5.4.3.mod

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (gorm.io/driver/postgres-v1.5.7 version) Remediation Possible**
CVE-2024-27304 Critical 9.8 github.com/jackc/Pgx/v5-v5.4.3 Transitive N/A*
CVE-2024-27289 High 8.1 github.com/jackc/Pgx/v5-v5.4.3 Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-27304

Vulnerable Library - github.com/jackc/Pgx/v5-v5.4.3

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

Path to dependency file: /capten/go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/jackc/pgx/v5/@v/v5.4.3.mod

Dependency Hierarchy:

  • gorm.io/driver/postgres-v1.5.7 (Root Library)
    • github.com/jackc/Pgx/v5-v5.4.3 (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

CVE-2024-27289

Vulnerable Library - github.com/jackc/Pgx/v5-v5.4.3

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

Path to dependency file: /capten/go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/jackc/pgx/v5/@v/v5.4.3.mod

Dependency Hierarchy:

  • gorm.io/driver/postgres-v1.5.7 (Root Library)
    • github.com/jackc/Pgx/v5-v5.4.3 (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2024-03-06

URL: CVE-2024-27289

CVSS 3 Score Details (8.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • 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-m7wr-2xf7-cm9p

Release Date: 2024-03-06

Fix Resolution: 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 Mend label Jul 15, 2024
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 Mend
Projects
None yet
Development

No branches or pull requests

0 participants