
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-32655 is a high-severity vulnerability discovered in Npgsql, the .NET data provider for PostgreSQL. The vulnerability was disclosed in May 2024 and affects multiple versions of Npgsql from 4.0.0 through 8.0.2. The flaw exists in the WriteBind() method within src/Npgsql/Internal/NpgsqlConnector.FrontendMessages.cs, where integer variables used to store message length and parameter lengths can overflow (GitHub Advisory, NVD).
The vulnerability stems from an integer overflow condition in the message length handling mechanism. When the sum of parameter lengths becomes too large, it causes Npgsql to write an incorrectly small message size when constructing PostgreSQL protocol messages for network transmission. This results in the database only reading a portion of the data and treating subsequent bytes as new messages, even though they belong to the original message. The vulnerability has been assigned a CVSS v3.1 base score of 8.1 (High), with a vector string of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (GitHub Advisory).
The vulnerability allows attackers to inject arbitrary PostgreSQL protocol messages into the connection, potentially leading to the execution of unauthorized SQL statements on behalf of the application. The actual impact severity depends on the specific application using Npgsql and the data stored in the PostgreSQL database. The vulnerability affects confidentiality, integrity, and availability of the system (GitHub Advisory, Security Online).
The vulnerability can be exploited remotely without requiring privileges or user interaction, though it requires high attack complexity. The flaw has been classified under CWE-89 (SQL Injection) and CWE-190 (Integer Overflow or Wraparound) (NVD).
The vulnerability has been patched in multiple versions of Npgsql. Users are strongly advised to upgrade to the following fixed versions: 4.0.14, 4.1.13, 5.0.18, 6.0.11, 7.0.7, or 8.0.3. No alternative workarounds are available (GitHub Advisory).
The security community has responded actively to the disclosure, with multiple security researchers and developers acknowledging the severity of the vulnerability. The discovery is credited to Paul Gerste from SonarSource, and the vendor has responded promptly by releasing patches across multiple version lines (GitHub Releases).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."