{"id":"CVE-2024-27304","aliases":["AZL-35752","AZL-35762","DEBIAN-CVE-2024-27304","GHSA-7jwh-3vrq-q3m8","GHSA-mrww-27vc-gghv","GO-2024-2606","UBUNTU-CVE-2024-27304"],"summary":"pgx SQL Injection via Protocol Message Size Overflow","published_at":"2024-03-04T20:43:24Z","modified_at":"2026-11-02T12:02:00.958807Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.011090000160038471,"percentile":0.6659799814224243,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"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.","affected_stack":[{"ecosystem":"Red Hat:enterprise_linux:8","package":"osbuild-composer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"osbuild-composer-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"osbuild-composer-dnf-json","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"osbuild-composer-worker","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"osbuild-composer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"osbuild-composer-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"osbuild-composer-dnf-json","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"osbuild-composer-worker","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:openshift_service_on_aws:1","package":"rosa","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"}],"affected_other":[{"ecosystem":"Azure Linux:2","package":"telegraf","purl":"pkg:rpm/azure-linux/telegraf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.28.5-5"}]}],"fixed":["1.28.5-5"],"provider":"osv","source":"AZL-35762","relation":"self"},{"ecosystem":"Azure Linux:3","package":"telegraf","purl":"pkg:rpm/azure-linux/telegraf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31.0-1"}]}],"fixed":["1.31.0-1"],"provider":"osv","source":"AZL-35752","relation":"self"},{"ecosystem":"CVE","package":"jackc/pgx","versions":["< 4.18.2",">= 5.0.0, < 5.5.4"],"provider":"cvelistv5","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:12","package":"golang-github-jackc-pgconn","purl":"pkg:deb/debian/golang-github-jackc-pgconn?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.0-2","1.14.0-1","1.14.3-1","1.14.3-1~exp0"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:12","package":"golang-github-jackc-pgx","purl":"pkg:deb/debian/golang-github-jackc-pgx?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.15.0-4","4.18.1-1","4.18.1-2","4.18.3-1","4.18.3-1~exp0","4.18.3-2"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:13","package":"golang-github-jackc-pgconn","purl":"pkg:deb/debian/golang-github-jackc-pgconn?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.0-1","1.14.3-1","1.14.3-1~exp0"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:13","package":"golang-github-jackc-pgx","purl":"pkg:deb/debian/golang-github-jackc-pgx?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.18.1-2"}]}],"fixed":["4.18.1-2"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:14","package":"golang-github-jackc-pgconn","purl":"pkg:deb/debian/golang-github-jackc-pgconn?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.14.3-1"}]}],"versions":["1.14.0-1","1.14.3-1~exp0"],"fixed":["1.14.3-1"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:14","package":"golang-github-jackc-pgx","purl":"pkg:deb/debian/golang-github-jackc-pgx?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.18.1-2"}]}],"fixed":["4.18.1-2"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgproto3","purl":"pkg:golang/github.com/jackc/pgproto3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"fixed":["2.3.3"],"provider":"osv","source":"GHSA-7jwh-3vrq-q3m8","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgproto3/v2","purl":"pkg:golang/github.com/jackc/pgproto3/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"fixed":["2.3.3"],"provider":"osv","source":"GHSA-7jwh-3vrq-q3m8","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgproto3/v2","purl":"pkg:golang/github.com/jackc/pgproto3/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"fixed":["2.3.3"],"provider":"osv","source":"GO-2024-2606","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.18.2"}]}],"fixed":["4.18.2"],"provider":"osv","source":"GHSA-mrww-27vc-gghv","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.5.4"}]}],"fixed":["5.5.4"],"provider":"osv","source":"GHSA-mrww-27vc-gghv","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"provider":"osv","source":"GO-2024-2606","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx/v4","purl":"pkg:golang/github.com/jackc/pgx/v4","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.18.2"}]}],"fixed":["4.18.2"],"provider":"osv","source":"GHSA-mrww-27vc-gghv","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx/v4","purl":"pkg:golang/github.com/jackc/pgx/v4","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.18.2"}]}],"fixed":["4.18.2"],"provider":"osv","source":"GO-2024-2606","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx/v5","purl":"pkg:golang/github.com/jackc/pgx/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.5.4"}]}],"fixed":["5.5.4"],"provider":"osv","source":"GHSA-mrww-27vc-gghv","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx/v5","purl":"pkg:golang/github.com/jackc/pgx/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.5.4"}]}],"fixed":["5.5.4"],"provider":"osv","source":"GO-2024-2606","relation":"self"},{"ecosystem":"NVD","package":"jackc:pgproto3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"fixed":["2.3.3"],"provider":"nvd","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"NVD","package":"jackc:pgx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.18.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.5.4"}]}],"fixed":["4.18.2","5.5.4"],"provider":"nvd","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.2-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-jackc-pgproto3","purl":"pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0-2","2.3.2-1"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.15.0-4","4.18.1-1"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"golang-github-jackc-pgproto3","purl":"pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2-1"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.18.1-1","4.18.1-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-jackc-pgproto3","purl":"pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2-1"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.18.1-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"golang-github-jackc-pgproto3","purl":"pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2-1","2.3.3-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.18.1-2","4.18.3-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Applications 6","cpe":"cpe:/a:redhat:migration_toolkit_applications:6","status":"affected","packages":["mta/mta-hub-rhel8","mta/mta-windup-addon-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Multicluster Engine for Kubernetes","cpe":"cpe:/a:redhat:multicluster_engine","status":"not_affected","packages":["multicluster-engine/agent-service-rhel8","multicluster-engine/assisted-installer-agent-rhel8","multicluster-engine/assisted-installer-reporter-rhel8","multicluster-engine/assisted-installer-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"RHACS 4.3 for RHEL 8","cpe":"cpe:/a:redhat:advanced_cluster_security:4.3::el8","status":"fixed","packages":["advanced-cluster-security/rhacs-central-db-rhel8","advanced-cluster-security/rhacs-collector-rhel8","advanced-cluster-security/rhacs-collector-slim-rhel8","advanced-cluster-security/rhacs-main-rhel8","advanced-cluster-security/rhacs-operator-bundle","advanced-cluster-security/rhacs-rhel8-operator","advanced-cluster-security/rhacs-roxctl-rhel8","advanced-cluster-security/rhacs-scanner-db-rhel8","advanced-cluster-security/rhacs-scanner-db-slim-rhel8","advanced-cluster-security/rhacs-scanner-rhel8","advanced-cluster-security/rhacs-scanner-slim-rhel8"],"package_count":11,"fixed":[],"advisories":["RHSA-2024:1321"],"provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/acm-search-indexer-rhel8","rhacm2/acm-search-v2-api-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 3","cpe":"cpe:/a:redhat:advanced_cluster_security:3","status":"affected","packages":["advanced-cluster-security/rhacs-central-db-rhel8","advanced-cluster-security/rhacs-main-rhel8","advanced-cluster-security/rhacs-rhel8-operator","advanced-cluster-security/rhacs-roxctl-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["aap-cloud-ui-container"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"affected","packages":["osbuild-composer","osbuild-composer-core","osbuild-composer-dnf-json","osbuild-composer-worker"],"package_count":4,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"affected","packages":["osbuild-composer","osbuild-composer-core","osbuild-composer-dnf-json","osbuild-composer-worker"],"package_count":4,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-agent-installer-api-server-rhel9","openshift4/ose-agent-installer-csr-approver-rhel9","openshift4/ose-agent-installer-node-agent-rhel8","openshift4/ose-agent-installer-orchestrator-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform Assisted Installer 1","cpe":"cpe:/a:redhat:assisted_installer:1","status":"affected","packages":["rhai-tech-preview/assisted-installer-agent-rhel8","rhai-tech-preview/assisted-installer-reporter-rhel8","rhai-tech-preview/assisted-installer-rhel8"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenShift Data Science (RHODS)","cpe":"cpe:/a:redhat:openshift_data_science","status":"affected","packages":["rhods/odh-ml-pipelines-api-server-rhel8","rhods/odh-ml-pipelines-artifact-manager-rhel8","rhods/odh-ml-pipelines-cache-rhel8","rhods/odh-ml-pipelines-persistenceagent-rhel8","rhods/odh-ml-pipelines-scheduledworkflow-rhel8","rhods/odh-operator-base-rhel8"],"package_count":6,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenShift on AWS","cpe":"cpe:/a:redhat:openshift_service_on_aws:1","status":"affected","packages":["rosa"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 16.2","cpe":"cpe:/a:redhat:openstack:16.2","status":"affected","packages":["osp-director-provisioner-container"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Openshift Container Storage 4","cpe":"cpe:/a:redhat:openshift_container_storage:4","status":"affected","packages":["ocs4/cephcsi-rhel8","ocs4/mcg-rhel8-operator","ocs4/ocs-must-gather-rhel8","ocs4/ocs-rhel8-operator"],"package_count":4,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4/rook-ceph-rhel9-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"affected","packages":["quay/clair-rhel8","quay/quay-operator-rhel8","quay/quay-rhel8"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-0626","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0626","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-03-13T23:00:00Z","modified_at":"2024-10-16T22:00:00Z","summary":"Red Hat Enterprise Linux: Mehrere Schwachstellen ermöglichen Manipulation von Dateien","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat Enterprise Linux ausnutzen, um Dateien zu manipulieren.\n\nRed Hat Enterprise Linux (RHEL) ist eine populäre Linux-Distribution.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2024-0626"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0626.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0626"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:1321"},{"type":"WEB","url":"https://bodhi.fedoraproject.org/updates/FEDORA-2024-bd8fe42929"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:7922"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2024:7944"}]},{"provider":"cvelistv5","source_id":"CVE-2024-27304","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-27304","license":"CC-BY-4.0","published_at":"2024-03-06T19:07:08.491Z","modified_at":"2024-12-12T20:52:24.821Z","summary":"pgx SQL Injection via Protocol Message Size Overflow","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2024-27304"}],"affected":[{"ecosystem":"CVE","package":"jackc/pgx","versions":["< 4.18.2",">= 5.0.0, < 5.5.4"],"provider":"cvelistv5","source":"CVE-2024-27304","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv"},{"type":"WEB","url":"https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8"},{"type":"WEB","url":"https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"},{"type":"WEB","url":"https://www.youtube.com/watch?v=Tfg1B8u1yvE"}]},{"provider":"nvd","source_id":"CVE-2024-27304","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304","severity":[],"affected":[{"ecosystem":"NVD","package":"jackc:pgproto3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"fixed":["2.3.3"],"provider":"nvd","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"NVD","package":"jackc:pgx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.18.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.5.4"}]}],"fixed":["4.18.2","5.5.4"],"provider":"nvd","source":"CVE-2024-27304","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"AZL-35752","relation":"self","url":"https://osv.dev/vulnerability/AZL-35752","license":"MIT","published_at":"2024-03-06T19:15:08Z","modified_at":"2026-04-21T04:32:34.516084Z","summary":"CVE-2024-27304 affecting package telegraf for versions less than 1.31.0-1","details":"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.","severity":[],"affected":[{"ecosystem":"Azure Linux:3","package":"telegraf","purl":"pkg:rpm/azure-linux/telegraf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31.0-1"}]}],"fixed":["1.31.0-1"],"provider":"osv","source":"AZL-35752","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304"}]},{"provider":"osv","source_id":"AZL-35762","relation":"self","url":"https://osv.dev/vulnerability/AZL-35762","license":"MIT","published_at":"2024-03-06T19:15:08Z","modified_at":"2026-04-21T04:25:05.231327Z","summary":"CVE-2024-27304 affecting package telegraf for versions less than 1.28.5-5","details":"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.","severity":[],"affected":[{"ecosystem":"Azure Linux:2","package":"telegraf","purl":"pkg:rpm/azure-linux/telegraf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.28.5-5"}]}],"fixed":["1.28.5-5"],"provider":"osv","source":"AZL-35762","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304"}]},{"provider":"osv","source_id":"DEBIAN-CVE-2024-27304","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2024-27304","published_at":"2024-03-06T19:15:08.767Z","modified_at":"2026-11-02T12:02:00.958807Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"DEBIAN-CVE-2024-27304"}],"affected":[{"ecosystem":"Debian:12","package":"golang-github-jackc-pgconn","purl":"pkg:deb/debian/golang-github-jackc-pgconn?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.0-2","1.14.0-1","1.14.3-1","1.14.3-1~exp0"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:12","package":"golang-github-jackc-pgx","purl":"pkg:deb/debian/golang-github-jackc-pgx?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.15.0-4","4.18.1-1","4.18.1-2","4.18.3-1","4.18.3-1~exp0","4.18.3-2"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:13","package":"golang-github-jackc-pgconn","purl":"pkg:deb/debian/golang-github-jackc-pgconn?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.0-1","1.14.3-1","1.14.3-1~exp0"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:13","package":"golang-github-jackc-pgx","purl":"pkg:deb/debian/golang-github-jackc-pgx?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.18.1-2"}]}],"fixed":["4.18.1-2"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:14","package":"golang-github-jackc-pgconn","purl":"pkg:deb/debian/golang-github-jackc-pgconn?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.14.3-1"}]}],"versions":["1.14.0-1","1.14.3-1~exp0"],"fixed":["1.14.3-1"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"},{"ecosystem":"Debian:14","package":"golang-github-jackc-pgx","purl":"pkg:deb/debian/golang-github-jackc-pgx?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.18.1-2"}]}],"fixed":["4.18.1-2"],"provider":"osv","source":"DEBIAN-CVE-2024-27304","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-27304"}]},{"provider":"osv","source_id":"GHSA-7jwh-3vrq-q3m8","relation":"self","url":"https://osv.dev/vulnerability/GHSA-7jwh-3vrq-q3m8","license":"CC-BY-4.0","published_at":"2024-03-04T20:45:25Z","modified_at":"2026-09-10T03:50:00.236184Z","summary":"pgproto3 SQL Injection via Protocol Message Size Overflow","details":"### Impact\n\nSQL 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.\n\n### Patches\n\nThe problem is resolved in v2.3.3\n\n### Workarounds\n\nReject user input large enough to cause a single query or bind message to exceed 4 GB in size.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-7jwh-3vrq-q3m8"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","source":"GHSA-7jwh-3vrq-q3m8"}],"affected":[{"ecosystem":"Go","package":"github.com/jackc/pgproto3","purl":"pkg:golang/github.com/jackc/pgproto3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"fixed":["2.3.3"],"provider":"osv","source":"GHSA-7jwh-3vrq-q3m8","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgproto3/v2","purl":"pkg:golang/github.com/jackc/pgproto3/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"fixed":["2.3.3"],"provider":"osv","source":"GHSA-7jwh-3vrq-q3m8","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8"},{"type":"WEB","url":"https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304"},{"type":"WEB","url":"https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"},{"type":"PACKAGE","url":"https://github.com/jackc/pgproto3"}]},{"provider":"osv","source_id":"GHSA-mrww-27vc-gghv","relation":"self","url":"https://osv.dev/vulnerability/GHSA-mrww-27vc-gghv","license":"CC-BY-4.0","published_at":"2024-03-04T20:43:24Z","modified_at":"2026-09-10T03:50:10.601755Z","summary":"pgx SQL Injection via Protocol Message Size Overflow","details":"### Impact\n\nSQL 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.\n\n### Patches\n\nThe problem is resolved in v4.18.2 and v5.5.4.\n\n### Workarounds\n\nReject user input large enough to cause a single query or bind message to exceed 4 GB in size.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-mrww-27vc-gghv"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","source":"GHSA-mrww-27vc-gghv"}],"affected":[{"ecosystem":"Go","package":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.18.2"}]}],"fixed":["4.18.2"],"provider":"osv","source":"GHSA-mrww-27vc-gghv","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.5.4"}]}],"fixed":["5.5.4"],"provider":"osv","source":"GHSA-mrww-27vc-gghv","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx/v4","purl":"pkg:golang/github.com/jackc/pgx/v4","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.18.2"}]}],"fixed":["4.18.2"],"provider":"osv","source":"GHSA-mrww-27vc-gghv","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx/v5","purl":"pkg:golang/github.com/jackc/pgx/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.5.4"}]}],"fixed":["5.5.4"],"provider":"osv","source":"GHSA-mrww-27vc-gghv","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8"},{"type":"WEB","url":"https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304"},{"type":"WEB","url":"https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"},{"type":"PACKAGE","url":"https://github.com/jackc/pgx"},{"type":"WEB","url":"https://www.youtube.com/watch?v=Tfg1B8u1yvE"}]},{"provider":"osv","source_id":"GO-2024-2606","relation":"self","url":"https://osv.dev/vulnerability/GO-2024-2606","license":"CC-BY-4.0","published_at":"2024-03-14T17:12:43Z","modified_at":"2026-02-04T03:55:09.802349Z","summary":"SQL injection in github.com/jackc/pgproto3 and github.com/jackc/pgx","details":"An integer overflow in the calculated message size of a query or bind message could allow a single large message to be sent as multiple messages under the attacker's control. This could lead to SQL injection if an attacker can cause a single query or bind message to exceed 4 GB in size.","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/jackc/pgproto3/v2","purl":"pkg:golang/github.com/jackc/pgproto3/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"fixed":["2.3.3"],"provider":"osv","source":"GO-2024-2606","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx","purl":"pkg:golang/github.com/jackc/pgx","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"provider":"osv","source":"GO-2024-2606","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx/v4","purl":"pkg:golang/github.com/jackc/pgx/v4","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.18.2"}]}],"fixed":["4.18.2"],"provider":"osv","source":"GO-2024-2606","relation":"self"},{"ecosystem":"Go","package":"github.com/jackc/pgx/v5","purl":"pkg:golang/github.com/jackc/pgx/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.5.4"}]}],"fixed":["5.5.4"],"provider":"osv","source":"GO-2024-2606","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv"},{"type":"FIX","url":"https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007"},{"type":"FIX","url":"https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"},{"type":"FIX","url":"https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"},{"type":"FIX","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2024-27304","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2024-27304","license":"CC-BY-SA-4.0","published_at":"2024-03-06T19:15:00Z","modified_at":"2026-10-17T12:56:43.5301Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2024-27304"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2024-27304"}],"affected":[{"ecosystem":"Ubuntu:22.04:LTS","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.2-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-jackc-pgproto3","purl":"pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.0-2","2.3.2-1"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.15.0-4","4.18.1-1"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"golang-github-jackc-pgproto3","purl":"pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2-1"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.18.1-1","4.18.1-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-jackc-pgproto3","purl":"pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2-1"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.18.1-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"golang-github-jackc-pgproto3","purl":"pkg:deb/ubuntu/golang-github-jackc-pgproto3?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2-1","2.3.3-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"golang-github-jackc-pgx","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.18.1-2","4.18.3-2"],"provider":"osv","source":"UBUNTU-CVE-2024-27304","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-27304"},{"type":"REPORT","url":"https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv"},{"type":"REPORT","url":"https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"},{"type":"REPORT","url":"https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"},{"type":"REPORT","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"},{"type":"REPORT","url":"https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8"},{"type":"REPORT","url":"https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007"},{"type":"REPORT","url":"https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"},{"type":"REPORT","url":"https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"},{"type":"REPORT","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-27304"}]},{"provider":"redhat-vex","source_id":"CVE-2024-27304","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2024-27304","license":"CC-BY-4.0","published_at":"2024-03-06T00:00:00Z","modified_at":"2026-03-04T09:44:04Z","summary":"pgx: SQL Injection via Protocol Message Size Overflow","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2024-27304"},{"type":"Red Hat","score":"Moderate","source":"CVE-2024-27304"}],"affected":[{"ecosystem":"Red Hat:enterprise_linux:8","package":"osbuild-composer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"osbuild-composer-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"osbuild-composer-dnf-json","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"osbuild-composer-worker","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"osbuild-composer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"osbuild-composer-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"osbuild-composer-dnf-json","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"osbuild-composer-worker","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"},{"ecosystem":"Red Hat:openshift_service_on_aws:1","package":"rosa","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2024-27304","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Applications 6","cpe":"cpe:/a:redhat:migration_toolkit_applications:6","status":"affected","packages":["mta/mta-hub-rhel8","mta/mta-windup-addon-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Multicluster Engine for Kubernetes","cpe":"cpe:/a:redhat:multicluster_engine","status":"not_affected","packages":["multicluster-engine/agent-service-rhel8","multicluster-engine/assisted-installer-agent-rhel8","multicluster-engine/assisted-installer-reporter-rhel8","multicluster-engine/assisted-installer-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"RHACS 4.3 for RHEL 8","cpe":"cpe:/a:redhat:advanced_cluster_security:4.3::el8","status":"fixed","packages":["advanced-cluster-security/rhacs-central-db-rhel8","advanced-cluster-security/rhacs-collector-rhel8","advanced-cluster-security/rhacs-collector-slim-rhel8","advanced-cluster-security/rhacs-main-rhel8","advanced-cluster-security/rhacs-operator-bundle","advanced-cluster-security/rhacs-rhel8-operator","advanced-cluster-security/rhacs-roxctl-rhel8","advanced-cluster-security/rhacs-scanner-db-rhel8","advanced-cluster-security/rhacs-scanner-db-slim-rhel8","advanced-cluster-security/rhacs-scanner-rhel8","advanced-cluster-security/rhacs-scanner-slim-rhel8"],"package_count":11,"fixed":[],"advisories":["RHSA-2024:1321"],"provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/acm-search-indexer-rhel8","rhacm2/acm-search-v2-api-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 3","cpe":"cpe:/a:redhat:advanced_cluster_security:3","status":"affected","packages":["advanced-cluster-security/rhacs-central-db-rhel8","advanced-cluster-security/rhacs-main-rhel8","advanced-cluster-security/rhacs-rhel8-operator","advanced-cluster-security/rhacs-roxctl-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["aap-cloud-ui-container"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"affected","packages":["osbuild-composer","osbuild-composer-core","osbuild-composer-dnf-json","osbuild-composer-worker"],"package_count":4,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"affected","packages":["osbuild-composer","osbuild-composer-core","osbuild-composer-dnf-json","osbuild-composer-worker"],"package_count":4,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-agent-installer-api-server-rhel9","openshift4/ose-agent-installer-csr-approver-rhel9","openshift4/ose-agent-installer-node-agent-rhel8","openshift4/ose-agent-installer-orchestrator-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform Assisted Installer 1","cpe":"cpe:/a:redhat:assisted_installer:1","status":"affected","packages":["rhai-tech-preview/assisted-installer-agent-rhel8","rhai-tech-preview/assisted-installer-reporter-rhel8","rhai-tech-preview/assisted-installer-rhel8"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenShift Data Science (RHODS)","cpe":"cpe:/a:redhat:openshift_data_science","status":"affected","packages":["rhods/odh-ml-pipelines-api-server-rhel8","rhods/odh-ml-pipelines-artifact-manager-rhel8","rhods/odh-ml-pipelines-cache-rhel8","rhods/odh-ml-pipelines-persistenceagent-rhel8","rhods/odh-ml-pipelines-scheduledworkflow-rhel8","rhods/odh-operator-base-rhel8"],"package_count":6,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenShift on AWS","cpe":"cpe:/a:redhat:openshift_service_on_aws:1","status":"affected","packages":["rosa"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 16.2","cpe":"cpe:/a:redhat:openstack:16.2","status":"affected","packages":["osp-director-provisioner-container"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Openshift Container Storage 4","cpe":"cpe:/a:redhat:openshift_container_storage:4","status":"affected","packages":["ocs4/cephcsi-rhel8","ocs4/mcg-rhel8-operator","ocs4/ocs-must-gather-rhel8","ocs4/ocs-rhel8-operator"],"package_count":4,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","cpe":"cpe:/a:redhat:openshift_data_foundation:4","status":"not_affected","packages":["odf4/rook-ceph-rhel9-operator"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2024-27304"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"affected","packages":["quay/clair-rhel8","quay/quay-operator-rhel8","quay/quay-rhel8"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2024-27304"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-27304.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-27304"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2268269"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-27304"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304"}]}],"references":[{"type":"WEB","url":"https://github.com/jackc/pgx/security/advisories/GHSA-mrww-27vc-gghv"},{"type":"WEB","url":"https://github.com/jackc/pgproto3/security/advisories/GHSA-7jwh-3vrq-q3m8"},{"type":"WEB","url":"https://github.com/jackc/pgproto3/commit/945c2126f6db8f3bea7eeebe307c01fe92bca007"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"},{"type":"WEB","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"},{"type":"WEB","url":"https://www.youtube.com/watch?v=Tfg1B8u1yvE"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-27304"},{"type":"PACKAGE","url":"https://github.com/jackc/pgproto3"},{"type":"PACKAGE","url":"https://github.com/jackc/pgx"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-27304"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-27304"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-27304.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-27304"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2268269"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-0626","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0626","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-10-16T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2024-27304","url":"https://www.cve.org/CVERecord?id=CVE-2024-27304","license":"CC-BY-4.0","modified_at":"2024-12-12T20:52:24.821Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2024-27304","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27304","relation":"self"},{"provider":"osv","source_id":"AZL-35752","url":"https://osv.dev/vulnerability/AZL-35752","license":"MIT","modified_at":"2026-04-21T04:32:34.516084Z","relation":"self"},{"provider":"osv","source_id":"AZL-35762","url":"https://osv.dev/vulnerability/AZL-35762","license":"MIT","modified_at":"2026-04-21T04:25:05.231327Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2024-27304","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2024-27304","modified_at":"2026-11-02T12:02:00.958807Z","relation":"self"},{"provider":"osv","source_id":"GHSA-7jwh-3vrq-q3m8","url":"https://osv.dev/vulnerability/GHSA-7jwh-3vrq-q3m8","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:00.236184Z","relation":"self"},{"provider":"osv","source_id":"GHSA-mrww-27vc-gghv","url":"https://osv.dev/vulnerability/GHSA-mrww-27vc-gghv","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:10.601755Z","relation":"self"},{"provider":"osv","source_id":"GO-2024-2606","url":"https://osv.dev/vulnerability/GO-2024-2606","license":"CC-BY-4.0","modified_at":"2026-02-04T03:55:09.802349Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2024-27304","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2024-27304","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:56:43.5301Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2024-27304","url":"https://access.redhat.com/security/cve/CVE-2024-27304","license":"CC-BY-4.0","modified_at":"2026-03-04T09:44:04Z","relation":"self"}]}
