{
  "published": "2025-10-30T19:00:42Z",
  "modified": "2026-01-07T00:00:00Z",
  "schema_version": "1.7.5",
  "id": "CGA-2249-7g6w-c2m3",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P"
    }
  ],
  "upstream": [
    "CVE-2024-21509",
    "GHSA-49j4-86m8-q2jw"
  ],
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691"
    },
    {
      "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-6591084"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21509.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21509"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sidorares/node-mysql2/pull/2574"
    },
    {
      "type": "ARTICLE",
      "url": "https://blog.slonser.info/posts/mysql2-attacker-configuration/"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Chainguard",
        "name": "sqlpad-compat",
        "purl": "pkg:apk/chainguard/sqlpad-compat?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:18Z"
          }
        ]
      }
    },
    {
      "package": {
        "ecosystem": "Wolfi",
        "name": "sqlpad-compat",
        "purl": "pkg:apk/wolfi/sqlpad-compat?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:18Z"
          }
        ]
      }
    }
  ]
}
