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

Aliases: CVE-2024-23652, GHSA-4v98-7qmw-rqr8

Fixes golang/vulndb#2494

Change-Id: I9fb7f144ae04b3219ac1bc59b83484d8045fce19
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/562377
Run-TryBot: Tim King <taking@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/data/osv/GO-2024-2494.json b/data/osv/GO-2024-2494.json
new file mode 100644
index 0000000..4186e4e
--- /dev/null
+++ b/data/osv/GO-2024-2494.json
@@ -0,0 +1,65 @@
+{
+  "schema_version": "1.3.1",
+  "id": "GO-2024-2494",
+  "modified": "0001-01-01T00:00:00Z",
+  "published": "0001-01-01T00:00:00Z",
+  "aliases": [
+    "CVE-2024-23652",
+    "GHSA-4v98-7qmw-rqr8"
+  ],
+  "summary": "Host system modification in github.com/moby/buildkit",
+  "details": "A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system.",
+  "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",
+            "symbols": [
+              "MountStubsCleaner"
+            ]
+          }
+        ]
+      }
+    }
+  ],
+  "references": [
+    {
+      "type": "ADVISORY",
+      "url": "https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8"
+    },
+    {
+      "type": "FIX",
+      "url": "https://github.com/moby/buildkit/pull/4603"
+    },
+    {
+      "type": "WEB",
+      "url": "https://github.com/moby/buildkit/releases/tag/v0.12.5"
+    }
+  ],
+  "credits": [
+    {
+      "name": "@rmcnamara-snyk"
+    }
+  ],
+  "database_specific": {
+    "url": "https://pkg.go.dev/vuln/GO-2024-2494"
+  }
+}
\ No newline at end of file
diff --git a/data/reports/GO-2024-2494.yaml b/data/reports/GO-2024-2494.yaml
new file mode 100644
index 0000000..3b6eebc
--- /dev/null
+++ b/data/reports/GO-2024-2494.yaml
@@ -0,0 +1,26 @@
+id: GO-2024-2494
+modules:
+    - module: github.com/moby/buildkit
+      versions:
+        - fixed: 0.12.5
+      vulnerable_at: 0.12.4
+      packages:
+        - package: github.com/moby/buildkit/executor
+          symbols:
+            - MountStubsCleaner
+      fix_link: https://github.com/moby/buildkit/commit/00fe637d43aba66f0937f5bdf4b9fc96991794fd
+summary: Host system modification in github.com/moby/buildkit
+description: |-
+    A malicious BuildKit frontend or Dockerfile using RUN --mount could trick
+    the feature that removes empty files created for the mountpoints into
+    removing a file outside the container, from the host system.
+cves:
+    - CVE-2024-23652
+ghsas:
+    - GHSA-4v98-7qmw-rqr8
+credits:
+    - '@rmcnamara-snyk'
+references:
+    - advisory: https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8
+    - fix: https://github.com/moby/buildkit/pull/4603
+    - web: https://github.com/moby/buildkit/releases/tag/v0.12.5