data/reports: add GO-2023-1772.yaml

Aliases: CVE-2023-2253, GHSA-hqxw-f8mx-cpmw

Fixes golang/vulndb#1772

Change-Id: I5a0eb5a240c7b94468a6284d95b662f5e5b5b543
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/494937
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
diff --git a/data/osv/GO-2023-1772.json b/data/osv/GO-2023-1772.json
new file mode 100644
index 0000000..7683d59
--- /dev/null
+++ b/data/osv/GO-2023-1772.json
@@ -0,0 +1,55 @@
+{
+  "schema_version": "1.3.1",
+  "id": "GO-2023-1772",
+  "modified": "0001-01-01T00:00:00Z",
+  "published": "0001-01-01T00:00:00Z",
+  "aliases": [
+    "CVE-2023-2253",
+    "GHSA-hqxw-f8mx-cpmw"
+  ],
+  "details": "Systems that run distribution built after a specific commit running on memory-restricted environments can suffer from denial of service by a crafted malicious /v2/_catalog API endpoint request.",
+  "affected": [
+    {
+      "package": {
+        "name": "github.com/distribution/distribution",
+        "ecosystem": "Go"
+      },
+      "ranges": [
+        {
+          "type": "SEMVER",
+          "events": [
+            {
+              "introduced": "0"
+            },
+            {
+              "fixed": "2.8.2-beta.1+incompatible"
+            }
+          ]
+        }
+      ],
+      "ecosystem_specific": {
+        "imports": [
+          {
+            "path": "github.com/distribution/distribution/registry/handlers",
+            "symbols": [
+              "catalogHandler.GetCatalog"
+            ]
+          }
+        ]
+      }
+    }
+  ],
+  "references": [
+    {
+      "type": "FIX",
+      "url": "https://github.com/distribution/distribution/commit/f55a6552b006a381d9167e328808565dd2bf77dc"
+    },
+    {
+      "type": "ADVISORY",
+      "url": "https://github.com/advisories/GHSA-hqxw-f8mx-cpmw"
+    }
+  ],
+  "database_specific": {
+    "url": "https://pkg.go.dev/vuln/GO-2023-1772"
+  }
+}
diff --git a/data/reports/GO-2023-1772.yaml b/data/reports/GO-2023-1772.yaml
new file mode 100644
index 0000000..10112a4
--- /dev/null
+++ b/data/reports/GO-2023-1772.yaml
@@ -0,0 +1,21 @@
+modules:
+  - module: github.com/distribution/distribution
+    versions:
+      - fixed: 2.8.2-beta.1+incompatible
+    vulnerable_at: 2.8.1+incompatible
+    packages:
+      - package: github.com/distribution/distribution/registry/handlers
+        symbols:
+          - catalogHandler.GetCatalog
+summary: distribution catalog API endpoint can lead to OOM via malicious user input
+description: |
+    Systems that run distribution built after a specific commit running on
+    memory-restricted environments can suffer from denial of service by a
+    crafted malicious /v2/_catalog API endpoint request.
+cves:
+  - CVE-2023-2253
+ghsas:
+  - GHSA-hqxw-f8mx-cpmw
+references:
+  - fix: https://github.com/distribution/distribution/commit/f55a6552b006a381d9167e328808565dd2bf77dc
+  - advisory: https://github.com/advisories/GHSA-hqxw-f8mx-cpmw