data/reports: add GO-2024-2605.yaml
Aliases: CVE-2024-27289, GHSA-m7wr-2xf7-cm9p
Fixes golang/vulndb#2605
Change-Id: Ib197abc64a165a9610feeaed51e75f39290d5c4e
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/570719
Auto-Submit: Maceo Thompson <maceothompson@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
diff --git a/data/osv/GO-2024-2605.json b/data/osv/GO-2024-2605.json
new file mode 100644
index 0000000..b96a119
--- /dev/null
+++ b/data/osv/GO-2024-2605.json
@@ -0,0 +1,62 @@
+{
+ "schema_version": "1.3.1",
+ "id": "GO-2024-2605",
+ "modified": "0001-01-01T00:00:00Z",
+ "published": "0001-01-01T00:00:00Z",
+ "aliases": [
+ "CVE-2024-27289",
+ "GHSA-m7wr-2xf7-cm9p"
+ ],
+ "summary": "SQL injection in github.com/jackc/pgx/v4",
+ "details": "SQL injection is possible when the database uses the non-default simple protocol, a minus sign directly precedes a numeric placeholder followed by a string placeholder on the same line, and both parameter values are user-controlled.",
+ "affected": [
+ {
+ "package": {
+ "name": "github.com/jackc/pgx/v4",
+ "ecosystem": "Go"
+ },
+ "ranges": [
+ {
+ "type": "SEMVER",
+ "events": [
+ {
+ "introduced": "0"
+ },
+ {
+ "fixed": "4.18.2"
+ }
+ ]
+ }
+ ],
+ "ecosystem_specific": {
+ "imports": [
+ {
+ "path": "github.com/jackc/pgx/v4/internal/sanitize",
+ "symbols": [
+ "Query.Sanitize",
+ "SanitizeSQL"
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "references": [
+ {
+ "type": "ADVISORY",
+ "url": "https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p"
+ },
+ {
+ "type": "FIX",
+ "url": "https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df"
+ }
+ ],
+ "credits": [
+ {
+ "name": "paul-gerste-sonarsource"
+ }
+ ],
+ "database_specific": {
+ "url": "https://pkg.go.dev/vuln/GO-2024-2605"
+ }
+}
\ No newline at end of file
diff --git a/data/reports/GO-2024-2605.yaml b/data/reports/GO-2024-2605.yaml
new file mode 100644
index 0000000..cd468fe
--- /dev/null
+++ b/data/reports/GO-2024-2605.yaml
@@ -0,0 +1,27 @@
+id: GO-2024-2605
+modules:
+ - module: github.com/jackc/pgx/v4
+ versions:
+ - fixed: 4.18.2
+ vulnerable_at: 4.18.1
+ packages:
+ - package: github.com/jackc/pgx/v4/internal/sanitize
+ symbols:
+ - Query.Sanitize
+ derived_symbols:
+ - SanitizeSQL
+summary: SQL injection in github.com/jackc/pgx/v4
+description: |-
+ SQL injection is possible when the database uses the non-default simple
+ protocol, a minus sign directly precedes a numeric placeholder followed by a
+ string placeholder on the same line, and both parameter values are
+ user-controlled.
+cves:
+ - CVE-2024-27289
+ghsas:
+ - GHSA-m7wr-2xf7-cm9p
+credits:
+ - paul-gerste-sonarsource
+references:
+ - advisory: https://github.com/jackc/pgx/security/advisories/GHSA-m7wr-2xf7-cm9p
+ - fix: https://github.com/jackc/pgx/commit/f94eb0e2f96782042c96801b5ac448f44f0a81df