Home / npgsql / npgsql / CVE-2024-32655
CVE-2024-32655: is it exploited, and which versions of npgsql are affected and fixed?
CVE-2024-32655 is an integer overflow vulnerability in npgsql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: Npgsql from 8.0.0 before 8.0.3, Npgsql before 4.0.14, Npgsql from 4.1.0 before 4.1.13 and 3 more (GitHub advisory GHSA-x9vc-6hfv-hg8c). Fixed in 8.0.3, 4.0.14, 4.1.13, 5.0.18 and 2 more (GitHub advisory GHSA-x9vc-6hfv-hg8c). Severity: High (8.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:29 UTC.
What is CVE-2024-32655?
Npgsql Vulnerable to SQL Injection via Protocol Message Size Overflow
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.
From the CVE record by GitHub_M, last updated December 12, 2024, 20:56 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| npgsql | npgsql | >= 4.0.0, < 4.0.14 >= 4.1.0, < 4.1.13 >= 5.0.0, < 5.0.18 >= 6.0.0, < 6.0.11 >= 7.0.0, < 7.0.7 >= 8.0.0, < 8.0.3 |
As the CVE record by GitHub_M states it, last updated December 12, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| NuGet | Npgsql | >= 8.0.0, < 8.0.3 | 8.0.3 | GHSA-x9vc-6hfv-hg8c |
| NuGet | Npgsql | < 4.0.14 | 4.0.14 | GHSA-x9vc-6hfv-hg8c |
| NuGet | Npgsql | >= 4.1.0, < 4.1.13 | 4.1.13 | GHSA-x9vc-6hfv-hg8c |
| NuGet | Npgsql | >= 5.0.0, < 5.0.18 | 5.0.18 | GHSA-x9vc-6hfv-hg8c |
| NuGet | Npgsql | >= 6.0.0, < 6.0.11 | 6.0.11 | GHSA-x9vc-6hfv-hg8c |
| NuGet | Npgsql | >= 7.0.0, < 7.0.7 | 7.0.7 | GHSA-x9vc-6hfv-hg8c |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 12, 2024. Summary: Npgsql vulnerable to SQL Injection via Protocol Message Size Overflow.
How severe is CVE-2024-32655?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-32655 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, May 9, 2024)
- EPSS
- 1.72% probability of exploitation activity in the next 30 days, percentile 78.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://github.com/npgsql/npgsql/security/advisories/GHSA-x9vc-6hfv-hg8c x_refsource_CONFIRM
- https://github.com/npgsql/npgsql/commit/091655eed0c84e502ab424950c930339d17c1928 x_refsource_MISC
- https://github.com/npgsql/npgsql/commit/3183efb2bdcca159c8c2e22af57e18ea8f853cf0 x_refsource_MISC
- https://github.com/npgsql/npgsql/commit/67acbe027e28477ac2199e15cfb554bb2ffaf169 x_refsource_MISC
- https://github.com/npgsql/npgsql/commit/703d9af8fa48dfe8c0180e36edb8278f34342d7b x_refsource_MISC
- https://github.com/npgsql/npgsql/commit/a22a42d8141d7a3528f43c02c095a409507cf1af x_refsource_MISC
- https://github.com/npgsql/npgsql/commit/e34e2ba8042e666d9af54a1b255fba4d5b11df56 x_refsource_MISC
- https://github.com/npgsql/npgsql/commit/f7e7ead0702d776a8f551f5786c4cac2d65c4bc6 x_refsource_MISC
- https://github.com/npgsql/npgsql/releases/tag/v4.0.14 x_refsource_MISC
- https://github.com/npgsql/npgsql/releases/tag/v4.1.13 x_refsource_MISC
- https://github.com/npgsql/npgsql/releases/tag/v5.0.18 x_refsource_MISC
- https://github.com/npgsql/npgsql/releases/tag/v6.0.11 x_refsource_MISC
- https://github.com/npgsql/npgsql/releases/tag/v7.0.7 x_refsource_MISC
- https://github.com/npgsql/npgsql/releases/tag/v8.0.3 x_refsource_MISC
- https://www.youtube.com/watch?v=Tfg1B8u1yvE x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 16, 2024
- Published
- May 9, 2024, 14:29 UTC
- CVE record updated
- December 12, 2024, 20:56 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:30 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:29 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2024-32655
Is CVE-2024-32655 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 1.72% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of npgsql are affected by CVE-2024-32655?
Npgsql from 8.0.0 before 8.0.3, Npgsql before 4.0.14, Npgsql from 4.1.0 before 4.1.13, Npgsql from 5.0.0 before 5.0.18, Npgsql from 6.0.0 before 6.0.11 and Npgsql from 7.0.0 before 7.0.7, per the GitHub advisory GHSA-x9vc-6hfv-hg8c. The tables above give every range the sources list.
Which version fixes CVE-2024-32655?
8.0.3, 4.0.14, 4.1.13, 5.0.18, 6.0.11 and 7.0.7, per the GitHub advisory GHSA-x9vc-6hfv-hg8c. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-32655?
High (8.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-32655?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.