fkie_cve-2024-27304
Vulnerability from fkie_nvd
Published
2024-03-06 19:15
Modified
2025-12-04 17:33
Severity ?
Summary
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.
References
security-advisories@github.comhttps://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007Patch
security-advisories@github.comhttps://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8Vendor Advisory
security-advisories@github.comhttps://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4Patch
security-advisories@github.comhttps://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8Patch
security-advisories@github.comhttps://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81dfPatch
security-advisories@github.comhttps://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghvVendor Advisory
security-advisories@github.comhttps://www.youtube.com/watch?v=Tfg1B8u1yvEPress/Media Coverage
af854a3a-2127-422b-91ae-364da2661108https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007Patch
af854a3a-2127-422b-91ae-364da2661108https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8Vendor Advisory
af854a3a-2127-422b-91ae-364da2661108https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4Patch
af854a3a-2127-422b-91ae-364da2661108https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8Patch
af854a3a-2127-422b-91ae-364da2661108https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81dfPatch
af854a3a-2127-422b-91ae-364da2661108https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghvVendor Advisory
Impacted products
Vendor Product Version
pgproto3_project pgproto3 *
pgx_project pgx *
pgx_project pgx *



{
  "configurations": [
    {
      "nodes": [
        {
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:pgproto3_project:pgproto3:*:*:*:*:*:go:*:*",
              "matchCriteriaId": "595DDCC9-AC88-4702-8771-EE3C382AAB9B",
              "versionEndExcluding": "2.3.3",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:pgx_project:pgx:*:*:*:*:*:go:*:*",
              "matchCriteriaId": "A544EDA8-8EF2-407D-8534-2AF89534F7AC",
              "versionEndExcluding": "4.18.2",
              "vulnerable": true
            },
            {
              "criteria": "cpe:2.3:a:pgx_project:pgx:*:*:*:*:*:go:*:*",
              "matchCriteriaId": "FC1EF367-3F2F-4280-BEBB-CE1875BFAC3B",
              "versionEndExcluding": "5.5.4",
              "versionStartIncluding": "5.0.0",
              "vulnerable": true
            }
          ],
          "negate": false,
          "operator": "OR"
        }
      ]
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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\u0027s 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."
    },
    {
      "lang": "es",
      "value": "pgx es un controlador PostgreSQL y un conjunto de herramientas para Go. La inyecci\u00f3n de SQL puede ocurrir si un atacante puede hacer que una sola consulta o mensaje de enlace supere los 4 GB de tama\u00f1o. Un desbordamiento de enteros en el tama\u00f1o del mensaje calculado puede provocar que un mensaje grande se env\u00ede como varios mensajes bajo el control del atacante. El problema se resuelve en v4.18.2 y v5.5.4. Como soluci\u00f3n alternativa, rechace la entrada del usuario lo suficientemente grande como para provocar que una sola consulta o mensaje vinculado supere los 4 GB de tama\u00f1o."
    }
  ],
  "id": "CVE-2024-27304",
  "lastModified": "2025-12-04T17:33:44.540",
  "metrics": {
    "cvssMetricV31": [
      {
        "cvssData": {
          "attackComplexity": "LOW",
          "attackVector": "NETWORK",
          "availabilityImpact": "HIGH",
          "baseScore": 9.8,
          "baseSeverity": "CRITICAL",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "privilegesRequired": "NONE",
          "scope": "UNCHANGED",
          "userInteraction": "NONE",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "version": "3.1"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 5.9,
        "source": "security-advisories@github.com",
        "type": "Secondary"
      }
    ]
  },
  "published": "2024-03-06T19:15:08.767",
  "references": [
    {
      "source": "security-advisories@github.com",
      "tags": [
        "Patch"
      ],
      "url": "https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007"
    },
    {
      "source": "security-advisories@github.com",
      "tags": [
        "Vendor Advisory"
      ],
      "url": "https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8"
    },
    {
      "source": "security-advisories@github.com",
      "tags": [
        "Patch"
      ],
      "url": "https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"
    },
    {
      "source": "security-advisories@github.com",
      "tags": [
        "Patch"
      ],
      "url": "https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"
    },
    {
      "source": "security-advisories@github.com",
      "tags": [
        "Patch"
      ],
      "url": "https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"
    },
    {
      "source": "security-advisories@github.com",
      "tags": [
        "Vendor Advisory"
      ],
      "url": "https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv"
    },
    {
      "source": "security-advisories@github.com",
      "tags": [
        "Press/Media Coverage"
      ],
      "url": "https://www.youtube.com/watch?v=Tfg1B8u1yvE"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Vendor Advisory"
      ],
      "url": "https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Patch"
      ],
      "url": "https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"
    },
    {
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Vendor Advisory"
      ],
      "url": "https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv"
    }
  ],
  "sourceIdentifier": "security-advisories@github.com",
  "vulnStatus": "Analyzed",
  "weaknesses": [
    {
      "description": [
        {
          "lang": "en",
          "value": "CWE-89"
        },
        {
          "lang": "en",
          "value": "CWE-190"
        }
      ],
      "source": "security-advisories@github.com",
      "type": "Secondary"
    }
  ]
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…