Skip to content

CVE-2024-32655 (High) detected in npgsql.7.0.6.nupkg #1127

Open
@mend-bolt-for-github

Description

CVE-2024-32655 - High Severity Vulnerability

Vulnerable Library - npgsql.7.0.6.nupkg

Npgsql is the open source .NET data provider for PostgreSQL.

Library home page: https://api.nuget.org/packages/npgsql.7.0.6.nupkg

Path to dependency file: /src/Server/BlazorBoilerplate.Server/BlazorBoilerplate.Server.csproj

Path to vulnerable library: /home/wss-scanner/.nuget/packages/npgsql/7.0.6/npgsql.7.0.6.nupkg

Dependency Hierarchy:

  • npgsql.entityframeworkcore.postgresql.7.0.11.nupkg (Root Library)
    • npgsql.7.0.6.nupkg (Vulnerable Library)

Found in HEAD commit: 50e6082605bee27209d9c1a08f59753707d3552b

Found in base branch: master

Vulnerability Details

Npgsql is the .NET data provider for PostgreSQL. In 8.0.2 and earlier, The WriteBind() method in src/Npgsql/Internal/NpgsqlConnector.FrontendMessages.cs uses int variables to store the message length and the sum of parameter lengths. Both variables overflow when the sum of parameter lengths becomes too large. This causes Npgsql to write a message size that is too small when constructing a Postgres protocol message to send it over the network to the database. When parsing the message, the database will only read a small number of bytes and treat any following bytes as new messages while they belong to the old message. Attackers can abuse this to inject arbitrary Postgres protocol messages into the connection, leading to the execution of arbitrary SQL statements on the application's behalf.

Publish Date: 2024-05-09

URL: CVE-2024-32655

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: https://www.cve.org/CVERecord?id=CVE-2024-32655

Release Date: 2024-05-09

Fix Resolution: Npgsql - 4.0.14,4.1.13,5.0.18,6.0.11,7.0.7,8.0.3


Step up your Open Source Security Game with Mend here

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions