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

Aliases: CVE-2024-21664, GHSA-pvcr-v8j8-j5q3

This report covers both v2 (issue 2454) and v1 (issues 2455).

Fixes golang/vulndb#2454
Fixes golang/vulndb#2455

Change-Id: I946798f9a1a86ffd11d341c1b08b0ea5bbaeecf5
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/555936
Auto-Submit: Jonathan Amsterdam <jba@google.com>
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-2454.json b/data/osv/GO-2024-2454.json
new file mode 100644
index 0000000..e4640cb
--- /dev/null
+++ b/data/osv/GO-2024-2454.json
@@ -0,0 +1,86 @@
+{
+  "schema_version": "1.3.1",
+  "id": "GO-2024-2454",
+  "modified": "0001-01-01T00:00:00Z",
+  "published": "0001-01-01T00:00:00Z",
+  "aliases": [
+    "CVE-2024-21664",
+    "GHSA-pvcr-v8j8-j5q3"
+  ],
+  "summary": "Panic due to nil pointer dereference in github.com/lestrrat-go/jwx/v2",
+  "details": "Panic due to nil pointer dereference in github.com/lestrrat-go/jwx/v2",
+  "affected": [
+    {
+      "package": {
+        "name": "github.com/lestrrat-go/jwx",
+        "ecosystem": "Go"
+      },
+      "ranges": [
+        {
+          "type": "SEMVER",
+          "events": [
+            {
+              "introduced": "1.0.8"
+            }
+          ]
+        }
+      ],
+      "ecosystem_specific": {
+        "imports": [
+          {
+            "path": "github.com/lestrrat-go/jwx/jws",
+            "symbols": [
+              "Message.UnmarshalJSON"
+            ]
+          }
+        ]
+      }
+    },
+    {
+      "package": {
+        "name": "github.com/lestrrat-go/jwx/v2",
+        "ecosystem": "Go"
+      },
+      "ranges": [
+        {
+          "type": "SEMVER",
+          "events": [
+            {
+              "introduced": "0"
+            },
+            {
+              "fixed": "2.0.19"
+            }
+          ]
+        }
+      ],
+      "ecosystem_specific": {
+        "imports": [
+          {
+            "path": "github.com/lestrrat-go/jwx/v2/jws",
+            "symbols": [
+              "Message.UnmarshalJSON"
+            ]
+          }
+        ]
+      }
+    }
+  ],
+  "references": [
+    {
+      "type": "ADVISORY",
+      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21664"
+    },
+    {
+      "type": "FIX",
+      "url": "https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f"
+    },
+    {
+      "type": "FIX",
+      "url": "https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd"
+    }
+  ],
+  "database_specific": {
+    "url": "https://pkg.go.dev/vuln/GO-2024-2454"
+  }
+}
\ No newline at end of file
diff --git a/data/reports/GO-2024-2454.yaml b/data/reports/GO-2024-2454.yaml
new file mode 100644
index 0000000..83043a6
--- /dev/null
+++ b/data/reports/GO-2024-2454.yaml
@@ -0,0 +1,30 @@
+id: GO-2024-2454
+modules:
+    - module: github.com/lestrrat-go/jwx
+      versions:
+        - introduced: 1.0.8
+      vulnerable_at: 1.2.28
+      packages:
+        - package: github.com/lestrrat-go/jwx/jws
+          symbols:
+            - Message.UnmarshalJSON
+    - module: github.com/lestrrat-go/jwx/v2
+      versions:
+        - fixed: 2.0.19
+      vulnerable_at: 2.0.18
+      packages:
+        - package: github.com/lestrrat-go/jwx/v2/jws
+          symbols:
+            - Message.UnmarshalJSON
+summary: Panic due to nil pointer dereference in github.com/lestrrat-go/jwx/v2
+cves:
+    - CVE-2024-21664
+ghsas:
+    - GHSA-pvcr-v8j8-j5q3
+references:
+    - advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-21664
+    - fix: https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f
+    - fix: https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd
+notes:
+    - This report covers issues 2454, for v2, and 2455, for v1.
+    - The earliest v1 version with the vulnerable symbol is v1.0.8.