{
  "published": "2025-10-30T19:00:43Z",
  "modified": "2026-01-07T00:00:00Z",
  "schema_version": "1.7.5",
  "id": "CGA-w47x-w429-v42c",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"
    }
  ],
  "upstream": [
    "CVE-2024-21508",
    "GHSA-fpw7-j2hg-69v5"
  ],
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/sidorares/node-mysql2/blob/1609b5393516d72a4ae47196837317fbe75e0c13/lib/parsers/text_parser.js%23L14C10-L14C21"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4"
    },
    {
      "type": "WEB",
      "url": "https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591085"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sidorares/node-mysql2/commit/74abf9ef94d76114d9a09415e28b496522a94805"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sidorares/node-mysql2/pull/2572"
    },
    {
      "type": "ARTICLE",
      "url": "https://blog.slonser.info/posts/mysql2-attacker-configuration/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21508.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21508"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Chainguard",
        "name": "sqlpad",
        "purl": "pkg:apk/chainguard/sqlpad?arch=x86_64"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.4.1-r4"
            }
          ]
        }
      ],
      "ecosystem_specific": {
        "components": [
          {
            "component_name": "mysql2",
            "component_version": "3.9.1",
            "component_type": "npm",
            "component_location": "/usr/bin/sqlpad-server/node_modules/mysql2/package.json",
            "component_purl": "pkg:npm/mysql2@3.9.1",
            "latest_event_status": "fixed",
            "latest_event_timestamp": "2024-05-11T11:19:19Z"
          }
        ]
      }
    },
    {
      "package": {
        "ecosystem": "Wolfi",
        "name": "sqlpad",
        "purl": "pkg:apk/wolfi/sqlpad?arch=x86_64"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.4.1-r4"
            }
          ]
        }
      ],
      "ecosystem_specific": {
        "components": [
          {
            "component_name": "mysql2",
            "component_version": "3.9.1",
            "component_type": "npm",
            "component_location": "/usr/bin/sqlpad-server/node_modules/mysql2/package.json",
            "component_purl": "pkg:npm/mysql2@3.9.1",
            "latest_event_status": "fixed",
            "latest_event_timestamp": "2024-05-11T11:19:19Z"
          }
        ]
      }
    }
  ]
}
