data/reports: add GO-2023-1295.yaml
Aliases: CVE-2020-36645, GHSA-3hc7-2xcc-7p8f
Fixes golang/vulndb#1295
Change-Id: I9947d523e7f9aa3b28e0a5b7641e140a858d1216
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/464302
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Julie Qiu <julieqiu@google.com>
Auto-Submit: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Julie Qiu <julie@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
diff --git a/data/osv/GO-2023-1295.json b/data/osv/GO-2023-1295.json
new file mode 100644
index 0000000..9690388
--- /dev/null
+++ b/data/osv/GO-2023-1295.json
@@ -0,0 +1,59 @@
+{
+ "id": "GO-2023-1295",
+ "published": "0001-01-01T00:00:00Z",
+ "modified": "0001-01-01T00:00:00Z",
+ "aliases": [
+ "CVE-2020-36645",
+ "GHSA-3hc7-2xcc-7p8f"
+ ],
+ "details": "There is a potential for SQL injection in the table name parameter.",
+ "affected": [
+ {
+ "package": {
+ "name": "github.com/square/squalor",
+ "ecosystem": "Go"
+ },
+ "ranges": [
+ {
+ "type": "SEMVER",
+ "events": [
+ {
+ "introduced": "0"
+ },
+ {
+ "fixed": "0.0.0-20200306154055-f6f0a47cc344"
+ }
+ ]
+ }
+ ],
+ "database_specific": {
+ "url": "https://pkg.go.dev/vuln/GO-2023-1295"
+ },
+ "ecosystem_specific": {
+ "imports": [
+ {
+ "path": "github.com/square/squalor",
+ "symbols": [
+ "DB.BindModel",
+ "DB.MustBindModel",
+ "LoadTable",
+ "Table.loadColumns",
+ "Table.loadKeys"
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "references": [
+ {
+ "type": "REPORT",
+ "url": "https://github.com/square/squalor/pull/76"
+ },
+ {
+ "type": "FIX",
+ "url": "https://github.com/square/squalor/pull/76/commits/033350b8596b397c6cefa066b1f2c83d35fc8c4a"
+ }
+ ],
+ "schema_version": "1.3.1"
+}
\ No newline at end of file
diff --git a/data/reports/GO-2023-1295.yaml b/data/reports/GO-2023-1295.yaml
new file mode 100644
index 0000000..922dab0
--- /dev/null
+++ b/data/reports/GO-2023-1295.yaml
@@ -0,0 +1,22 @@
+modules:
+ - module: github.com/square/squalor
+ versions:
+ - fixed: 0.0.0-20200306154055-f6f0a47cc344
+ vulnerable_at: 0.0.0-20190215211619-afa27bf1201c
+ packages:
+ - package: github.com/square/squalor
+ symbols:
+ - Table.loadColumns
+ - Table.loadKeys
+ derived_symbols:
+ - DB.BindModel
+ - DB.MustBindModel
+ - LoadTable
+description: There is a potential for SQL injection in the table name parameter.
+cves:
+ - CVE-2020-36645
+ghsas:
+ - GHSA-3hc7-2xcc-7p8f
+references:
+ - report: https://github.com/square/squalor/pull/76
+ - fix: https://github.com/square/squalor/pull/76/commits/033350b8596b397c6cefa066b1f2c83d35fc8c4a