data/reports: add GO-2024-2493.yaml

Aliases: CVE-2024-23651, GHSA-m3r6-h7wv-7xxv

Fixes golang/vulndb#2493

Change-Id: I5ee0465cc66f56f730fa680523bb5f3b9af174db
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/563075
Run-TryBot: Tim King <taking@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
diff --git a/data/osv/GO-2024-2493.json b/data/osv/GO-2024-2493.json
new file mode 100644
index 0000000..0d78103
--- /dev/null
+++ b/data/osv/GO-2024-2493.json
@@ -0,0 +1,67 @@
+{
+  "schema_version": "1.3.1",
+  "id": "GO-2024-2493",
+  "modified": "0001-01-01T00:00:00Z",
+  "published": "0001-01-01T00:00:00Z",
+  "aliases": [
+    "CVE-2024-23651",
+    "GHSA-m3r6-h7wv-7xxv"
+  ],
+  "summary": "Host system file access in github.com/moby/buildkit",
+  "details": "Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container.",
+  "affected": [
+    {
+      "package": {
+        "name": "github.com/moby/buildkit",
+        "ecosystem": "Go"
+      },
+      "ranges": [
+        {
+          "type": "SEMVER",
+          "events": [
+            {
+              "introduced": "0"
+            },
+            {
+              "fixed": "0.12.5"
+            }
+          ]
+        }
+      ],
+      "ecosystem_specific": {
+        "imports": [
+          {
+            "path": "github.com/moby/buildkit/executor/oci",
+            "symbols": [
+              "sub",
+              "submounts.cleanup",
+              "submounts.subMount"
+            ]
+          },
+          {
+            "path": "github.com/moby/buildkit/snapshot",
+            "symbols": [
+              "LocalMounter",
+              "LocalMounterWithMounts",
+              "localMounter.Mount"
+            ]
+          }
+        ]
+      }
+    }
+  ],
+  "references": [
+    {
+      "type": "FIX",
+      "url": "https://github.com/moby/buildkit/pull/4604"
+    }
+  ],
+  "credits": [
+    {
+      "name": "@rmcnamara-snyk"
+    }
+  ],
+  "database_specific": {
+    "url": "https://pkg.go.dev/vuln/GO-2024-2493"
+  }
+}
\ No newline at end of file
diff --git a/data/reports/GO-2024-2493.yaml b/data/reports/GO-2024-2493.yaml
new file mode 100644
index 0000000..928c04c
--- /dev/null
+++ b/data/reports/GO-2024-2493.yaml
@@ -0,0 +1,32 @@
+id: GO-2024-2493
+modules:
+    - module: github.com/moby/buildkit
+      versions:
+        - fixed: 0.12.5
+      vulnerable_at: 0.12.4
+      packages:
+        - package: github.com/moby/buildkit/executor/oci
+          symbols:
+            - submounts.cleanup
+            - submounts.subMount
+            - sub
+        - package: github.com/moby/buildkit/snapshot
+          symbols:
+            - LocalMounterWithMounts
+            - localMounter.Mount
+            - LocalMounter
+      fix_links:
+        - https://github.com/moby/buildkit/commit/f781267af1acb688e94740e1fdc22c1bf587d7fd
+summary: Host system file access in github.com/moby/buildkit
+description: |-
+    Two malicious build steps running in parallel sharing the same cache
+    mounts with subpaths could cause a race condition that can lead to files from
+    the host system being accessible to the build container.
+cves:
+    - CVE-2024-23651
+ghsas:
+    - GHSA-m3r6-h7wv-7xxv
+credits:
+    - '@rmcnamara-snyk'
+references:
+    - fix: https://github.com/moby/buildkit/pull/4604