9.8
CRITICAL CVSS 3.1
CVE-2024-27304
PostgreSQL Go Driver SQL Injection Buffer Overflow
Description

pgx is a PostgreSQL driver and toolkit for Go. SQL injection can occur if an attacker can cause a single query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause the one large message to be sent as multiple messages under the attacker's control. The problem is resolved in v4.18.2 and v5.5.4. As a workaround, reject user input large enough to cause a single query or bind message to exceed 4 GB in size.

INFO

Published Date :

March 6, 2024, 7:15 p.m.

Last Modified :

Dec. 12, 2024, 9:15 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-27304 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL [email protected]
Solution
This information is provided by the 3rd party feeds.
  • Update the affected caddy package.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-27304 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-27304 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-27304 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Dec. 12, 2024

    Action Type Old Value New Value
    Added Reference https://www.youtube.com/watch?v=Tfg1B8u1yvE
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007
    Added Reference https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8
    Added Reference https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4
    Added Reference https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8
    Added Reference https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
    Added Reference https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by [email protected]

    Mar. 06, 2024

    Action Type Old Value New Value
    Added Description pgx is a PostgreSQL driver and toolkit for Go. SQL injection can occur if an attacker can cause a single query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause the one large message to be sent as multiple messages under the attacker's control. The problem is resolved in v4.18.2 and v5.5.4. As a workaround, reject user input large enough to cause a single query or bind message to exceed 4 GB in size.
    Added Reference GitHub, Inc. https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv [No types assigned]
    Added Reference GitHub, Inc. https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df [No types assigned]
    Added CWE GitHub, Inc. CWE-89
    Added CWE GitHub, Inc. CWE-190
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 9.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact