
CVE-2024-32655 – Npgsql Vulnerable to SQL Injection via Protocol Message Size Overflow
https://notcve.org/view.php?id=CVE-2024-32655
09 May 2024 — Npgsql is the .NET data provider for PostgreSQL. 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 num... • https://github.com/npgsql/npgsql/commit/091655eed0c84e502ab424950c930339d17c1928 • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') CWE-190: Integer Overflow or Wraparound •