Red Hat VEX
RHVEX-CVE-2024-27289
pgx: SQL Injection via Line Comment Creation
Details
A flaw was found in pgx. SQL injection can occur when all of the following conditions are met in versions before 4.18.2 of pgx.
- 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
- Both parameter values must be user-controlled
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | osbuild-composer | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | osbuild-composer-core | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | osbuild-composer-worker | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | osbuild-composer | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-core | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-dnf-json | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-worker | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-core | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-dnf-json | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | osbuild-composer-worker | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2024-27289
- https://bugzilla.redhat.com/show_bug.cgi?id=2268465
- https://www.cve.org/CVERecord?id=CVE-2024-27289
- https://nvd.nist.gov/vuln/detail/CVE-2024-27289
- https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df
- https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p
- https://pkg.go.dev/vuln/GO-2024-2605