data/reports: add GO-2025-3849

  - data/reports/GO-2025-3849.yaml

Fixes golang/vulndb#3849

Change-Id: I0e5b1c9d3ec3f857457ef421545df0ad6ff0331f
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/693775
Reviewed-by: Neal Patel <nealpatel@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/data/cve/v5/GO-2025-3849.json b/data/cve/v5/GO-2025-3849.json
new file mode 100644
index 0000000..60ca5e2
--- /dev/null
+++ b/data/cve/v5/GO-2025-3849.json
@@ -0,0 +1,82 @@
+{
+  "dataType": "CVE_RECORD",
+  "dataVersion": "5.0",
+  "cveMetadata": {
+    "cveId": "CVE-2025-47907"
+  },
+  "containers": {
+    "cna": {
+      "providerMetadata": {
+        "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc"
+      },
+      "title": "Incorrect results returned from Rows.Scan in database/sql",
+      "descriptions": [
+        {
+          "lang": "en",
+          "value": "Cancelling a query (e.g. by cancelling the context passed to one of the query methods) during a call to the Scan method of the returned Rows can result in unexpected results if other queries are being made in parallel. This can result in a race condition that may overwrite the expected results with those of another query, causing the call to Scan to return either unexpected results from the other query or an error."
+        }
+      ],
+      "affected": [
+        {
+          "vendor": "Go standard library",
+          "product": "database/sql",
+          "collectionURL": "https://pkg.go.dev",
+          "packageName": "database/sql",
+          "versions": [
+            {
+              "version": "0",
+              "lessThan": "1.23.12",
+              "status": "affected",
+              "versionType": "semver"
+            },
+            {
+              "version": "1.24.0",
+              "lessThan": "1.24.6",
+              "status": "affected",
+              "versionType": "semver"
+            }
+          ],
+          "programRoutines": [
+            {
+              "name": "Rows.Scan"
+            },
+            {
+              "name": "Row.Scan"
+            }
+          ],
+          "defaultStatus": "unaffected"
+        }
+      ],
+      "problemTypes": [
+        {
+          "descriptions": [
+            {
+              "lang": "en",
+              "description": "CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"
+            }
+          ]
+        }
+      ],
+      "references": [
+        {
+          "url": "https://go.dev/cl/693735"
+        },
+        {
+          "url": "https://go.dev/issue/74831"
+        },
+        {
+          "url": "https://groups.google.com/g/golang-announce/c/x5MKroML2yM"
+        },
+        {
+          "url": "https://pkg.go.dev/vuln/GO-2025-3849"
+        }
+      ],
+      "credits": [
+        {
+          "lang": "en",
+          "value": "Spike Curtis from Coder"
+        }
+      ]
+    }
+  }
+}
\ No newline at end of file
diff --git a/data/osv/GO-2025-3849.json b/data/osv/GO-2025-3849.json
new file mode 100644
index 0000000..b1d8492
--- /dev/null
+++ b/data/osv/GO-2025-3849.json
@@ -0,0 +1,72 @@
+{
+  "schema_version": "1.3.1",
+  "id": "GO-2025-3849",
+  "modified": "0001-01-01T00:00:00Z",
+  "published": "0001-01-01T00:00:00Z",
+  "aliases": [
+    "CVE-2025-47907"
+  ],
+  "summary": "Incorrect results returned from Rows.Scan in database/sql",
+  "details": "Cancelling a query (e.g. by cancelling the context passed to one of the query methods) during a call to the Scan method of the returned Rows can result in unexpected results if other queries are being made in parallel. This can result in a race condition that may overwrite the expected results with those of another query, causing the call to Scan to return either unexpected results from the other query or an error.",
+  "affected": [
+    {
+      "package": {
+        "name": "stdlib",
+        "ecosystem": "Go"
+      },
+      "ranges": [
+        {
+          "type": "SEMVER",
+          "events": [
+            {
+              "introduced": "0"
+            },
+            {
+              "fixed": "1.23.12"
+            },
+            {
+              "introduced": "1.24.0"
+            },
+            {
+              "fixed": "1.24.6"
+            }
+          ]
+        }
+      ],
+      "ecosystem_specific": {
+        "imports": [
+          {
+            "path": "database/sql",
+            "symbols": [
+              "Row.Scan",
+              "Rows.Scan"
+            ]
+          }
+        ]
+      }
+    }
+  ],
+  "references": [
+    {
+      "type": "FIX",
+      "url": "https://go.dev/cl/693735"
+    },
+    {
+      "type": "REPORT",
+      "url": "https://go.dev/issue/74831"
+    },
+    {
+      "type": "WEB",
+      "url": "https://groups.google.com/g/golang-announce/c/x5MKroML2yM"
+    }
+  ],
+  "credits": [
+    {
+      "name": "Spike Curtis from Coder"
+    }
+  ],
+  "database_specific": {
+    "url": "https://pkg.go.dev/vuln/GO-2025-3849",
+    "review_status": "REVIEWED"
+  }
+}
\ No newline at end of file
diff --git a/data/reports/GO-2025-3849.yaml b/data/reports/GO-2025-3849.yaml
new file mode 100644
index 0000000..5ccc84d
--- /dev/null
+++ b/data/reports/GO-2025-3849.yaml
@@ -0,0 +1,35 @@
+id: GO-2025-3849
+modules:
+    - module: std
+      versions:
+        - fixed: 1.23.12
+        - introduced: 1.24.0
+        - fixed: 1.24.6
+      vulnerable_at: 1.24.5
+      packages:
+        - package: database/sql
+          symbols:
+            - Rows.Scan
+          derived_symbols:
+            - Row.Scan
+summary: Incorrect results returned from Rows.Scan in database/sql
+description: |-
+    Cancelling a query (e.g. by cancelling the context passed to one of the query
+    methods) during a call to the Scan method of the returned Rows can result in
+    unexpected results if other queries are being made in parallel. This can result
+    in a race condition that may overwrite the expected results with those of
+    another query, causing the call to Scan to return either unexpected results
+    from the other query or an error.
+credits:
+    - Spike Curtis from Coder
+references:
+    - fix: https://go.dev/cl/693735
+    - report: https://go.dev/issue/74831
+    - web: https://groups.google.com/g/golang-announce/c/x5MKroML2yM
+cve_metadata:
+    id: CVE-2025-47907
+    cwe: 'CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization (''Race Condition'')'
+source:
+    id: go-security-team
+    created: 2025-08-06T13:30:59.171585-07:00
+review_status: REVIEWED