CVE-2024-32655
Last modified
CVE-2024-32655 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 1.72% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-32655?
How severe is CVE-2024-32655?
How do I fix CVE-2024-32655?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-32649Vyper is a pythonic Smart Contract Language for the Ethereum…5.3
- CVE-2024-3265The Advanced Search WordPress plugin through 1.1.6 does not …4.7
- CVE-2024-32650Rustls is a modern TLS library written in Rust. `rustls::Con…7.5
- CVE-2024-32651changedetection.io is an open source web page change detecti…10
- CVE-2024-32652The adapter @hono/node-server allows you to run your Hono ap…7.5
- CVE-2024-32653jadx is a Dex to Java decompiler. Prior to version 1.5.0, …6.1
- CVE-2024-32656Ant Media Server is live streaming engine software. A local …7.8
- CVE-2024-32657Hydra is a Continuous Integration service for Nix based proj…5.4
- CVE-2024-32658FreeRDP is a free implementation of the Remote Desktop Proto…9.8
- CVE-2024-32659FreeRDP is a free implementation of the Remote Desktop Proto…9.8
- CVE-2024-3266The Bold Page Builder plugin for WordPress is vulnerable to …5.4
- CVE-2024-32660FreeRDP is a free implementation of the Remote Desktop Proto…7.5
Are you affected by CVE-2024-32655?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
