{"id":"UBUNTU-CVE-2024-27289","details":"pgx is a PostgreSQL driver and toolkit for Go. Prior to version 4.18.2, SQL injection can occur when all of the following conditions are met: the non-default simple protocol is used; a placeholder for a numeric value must be immediately preceded by a minus; there must be a second placeholder for a string value after the first placeholder; both must be on the same line; and both parameter values must be user-controlled. The problem is resolved in v4.18.2. As a workaround, do not use the simple protocol or do not place a minus directly before a placeholder.","modified":"2026-05-20T16:17:04.407457284Z","published":"2024-03-06T19:15:00Z","upstream":["CVE-2024-27289"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-27289"},{"type":"REPORT","url":"https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p"},{"type":"REPORT","url":"https://github.com/jackc/pgx/commit/826a89229b8b1cdf18e4190afa437d3df9901b9c"},{"type":"REPORT","url":"https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-27289"}],"affected":[{"package":{"name":"golang-github-jackc-pgx","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-jackc-pgx-dev","binary_version":"3.6.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27289.json"}},{"package":{"name":"golang-github-jackc-pgx","ecosystem":"Ubuntu:24.04:LTS","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"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-jackc-pgx-v4-dev","binary_version":"4.18.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27289.json"}},{"package":{"name":"golang-github-jackc-pgx","ecosystem":"Ubuntu:25.10","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"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-jackc-pgx-v4-dev","binary_version":"4.18.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27289.json"}},{"package":{"name":"golang-github-jackc-pgx","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-jackc-pgx?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.18.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-jackc-pgx-v4-dev","binary_version":"4.18.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-27289.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}