CVE-2024-32655: Npgsql is the .NET data provider for PostgreSQL
Affects npgsqlSource GCVE Database
Not known to be exploited · CVSS 8.1 High : upgrade to 8.0.3 soon.
Data as of 25 Nov 2026, 14:02 UTC
- EPSS
- 1.9% chance of exploitation in 30 days – higher than 80% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.0.3, 4.0.14, 4.1.13 +3
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 14 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 16.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
NuGetNpgsqlpkg:nuget/NpgsqlOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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 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. This vulnerability is fixed in 4.0.14, 4.1.13, 5.0.18, 6.0.11, 7.0.7, and 8.0.3.