Skip to main content
VulnerabilityPublished Updated

CVE-2024-32655: Npgsql is the .NET data provider for PostgreSQL

Affects npgsqlSource GCVE Database

0
Compare

Not known to be exploited · CVSS 8.1 High : upgrade to 8.0.3 soon.

Data as of 25 Nov 2026, 14:02 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 16.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=xenialOther threatsAffected
  • =2.2.7+dfsg3-1
Fixed in–
Ubuntu 18.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=bionicOther threatsAffected
  • =2.2.7+dfsg3-1
Fixed in–
Ubuntu 20.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=focalOther threatsAffected
  • =2.2.7+dfsg3-1
Fixed in–
Ubuntu 22.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=jammyOther threatsAffected
  • =2.2.7+dfsg3-1
Fixed in–
Ubuntu 24.04 LTSnpgsqlpkg:deb/ubuntu/npgsql?arch=source&distro=nobleOther threatsAffected
  • =2.2.7+dfsg3-1.1
Fixed in–
NuGetNpgsqlpkg:nuget/NpgsqlOther threatsAffected
  • >=8.0.0 <8.0.3
  • =8.0.0
  • =8.0.1
  • =8.0.2
Fixed in
  • 8.0.3

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.

References

Community reviews

Loading reviews…