{"id":"CVE-2024-21512","state":"PUBLISHED","title":"Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables.","description":"Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables.","publishedAt":"2024-05-29T05:00:01.515Z","updatedAt":"2024-08-01T22:20:40.900Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P","source":"snyk"},"assigner":"snyk","products":["n/a mysql2","n/a org.webjars.npm:mysql2"],"affected":[{"vendor":"n/a","product":"mysql2","versions":[{"version":"0","status":"affected","lessThan":"3.9.8","versionType":"semver"}]},{"vendor":"n/a","product":"org.webjars.npm:mysql2","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]}],"references":["https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580","https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010","https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a","https://github.com/sidorares/node-mysql2/pull/2702","https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc"],"weaknesses":["CWE-1321"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/21xxx/CVE-2024-21512.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-21512","state":"PUBLISHED","datePublished":"2024-05-29T05:00:01.515Z","dateUpdated":"2024-08-01T22:20:40.900Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2023-12-22T12:33:20.120Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables."}],"affected":[{"vendor":"n/a","product":"mysql2","versions":[{"version":"0","status":"affected","lessThan":"3.9.8","versionType":"semver"}]},{"vendor":"n/a","product":"org.webjars.npm:mysql2","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010"},{"url":"https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a"},{"url":"https://github.com/sidorares/node-mysql2/pull/2702"},{"url":"https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc"}],"metrics":[{"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"LOW","baseScore":8.2,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1321","description":"Prototype Pollution","lang":"en"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2024-06-15T15:25:04.084Z"},"credits":[{"value":"Donggyu Kim","lang":"en"}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"mysql2","product":"mysql2","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.9.8","versionType":"custom"}],"cpes":["cpe:2.3:a:mysql2:mysql2:-:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-21512","role":"CISA Coordinator","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-29T14:07:58.190595Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:37:33.933Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580","tags":["x_transferred"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010","tags":["x_transferred"]},{"url":"https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2702","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T22:20:40.900Z"}}]}}}