Skip to main content
No exploitation reportedFix available

CVE-2024-32655

No exploitation reported by the sources we read.

  • Published2024-05-14
  • Fixed in8.0.3 · 7.0.7 · 6.0.11 · 5.0.18 · 4.1.13 · 4.0.14
  • WeaknessCWE-190 · CWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-05-1415:36CVE publishedNVD

Versions per branch

CISA-ADP · OSV
Npgsql
BranchAffectedFixed in
8.0≥ 7.0.0, < 8.0.38.0.3
8.0≥ 8.0.0, < 8.0.38.0.3
7.0≥ 7.0.0, < 7.0.77.0.7
6.0≥ 6.0.0, < 6.0.116.0.11
5.0≥ 5.0.0, < 5.0.185.0.18
4.1≥ 4.1.0, < 4.1.134.1.13
4.0≥ 4.0.0, < 4.0.144.0.14
4.0< 4.0.144.0.14

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • npgsql
    Affected
    • = >= 4.0.0, < 4.0.14no fix stated
    • = >= 4.1.0, < 4.1.13no fix stated
    • = >= 5.0.0, < 5.0.18no fix stated
    • = >= 6.0.0, < 6.0.11no fix stated
    • = >= 7.0.0, < 7.0.7no fix stated
    • = >= 8.0.0, < 8.0.3no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-12-12

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • lidarrCleanStartall versions · fixed in 2.3.3.4204-r0
  • npgsqlUbuntu:24.04:LTSall versions · no fixed version listed
  • npgsqlUbuntu:22.04:LTSall versions · no fixed version listed
  • npgsqlUbuntu:20.04:LTSall versions · no fixed version listed
  • npgsqlUbuntu:18.04:LTSall versions · no fixed version listed
  • npgsqlUbuntu:16.04:LTSall versions · no fixed version listed
  • prowlarrCleanStartall versions · fixed in 1.17.2.4511-r0
  • radarrCleanStartall versions · fixed in 5.5.3.8819-r0

Full record on NVD

Fix

  1. Update Npgsql to 8.0.3 · 7.0.7 · 6.0.11 · 5.0.18 · 4.1.13 · 4.0.14

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionnone2024-05-09
  • CNACVSS 3.18.1known since 2026-10-23
  • CNAweakness (CWE)CWE-190, CWE-89known since 2026-10-23
  • FIRST EPSSEPSS score1.7 %2026-12-03
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2024-05-09

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2024-05-14
Last modified
2026-06-17
NVD status
Deferred
GitHub advisory
GHSA-x9vc-6hfv-hg8c

Frequently asked questions

What is CVE-2024-32655?

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.

Is CVE-2024-32655 actively exploited?

Active exploitation of CVE-2024-32655 has not been confirmed. Its EPSS score was 1.7% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-32655?

CVE-2024-32655 has a CVSS v3 base score of 8.1 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Npgsql? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record