{"id":"CVE-2024-21509","state":"PUBLISHED","title":"Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through parser","description":"Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through parserFn in text_parser.js and binary_parser.js.","publishedAt":"2024-04-10T05:00:00.795Z","updatedAt":"2024-08-22T13:11:18.154Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P","source":"snyk"},"assigner":"snyk","products":["n/a mysql2"],"affected":[{"vendor":"n/a","product":"mysql2","versions":[{"version":"0","status":"affected","lessThan":"3.9.4","versionType":"semver"}]}],"references":["https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084","https://blog.slonser.info/posts/mysql2-attacker-configuration/","https://github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134","https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691","https://github.com/sidorares/node-mysql2/pull/2574","https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4"],"weaknesses":["CWE-1321"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/21xxx/CVE-2024-21509.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-21509","state":"PUBLISHED","datePublished":"2024-04-10T05:00:00.795Z","dateUpdated":"2024-08-22T13:11:18.154Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2023-12-22T12:33:20.119Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through parserFn in text_parser.js and binary_parser.js."}],"affected":[{"vendor":"n/a","product":"mysql2","versions":[{"version":"0","status":"affected","lessThan":"3.9.4","versionType":"semver"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084"},{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/"},{"url":"https://github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134"},{"url":"https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691"},{"url":"https://github.com/sidorares/node-mysql2/pull/2574"},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4"}],"metrics":[{"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"LOW","baseScore":6.5,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1321","description":"Prototype Poisoning","lang":"en"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2024-04-10T05:00:00.795Z"},"credits":[{"value":"Vsevolod Kokorin","lang":"en"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084","tags":["x_transferred"]},{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2574","tags":["x_transferred"]},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T22:20:40.966Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"mysqljs","product":"mysql2","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.9.4","versionType":"custom"}],"cpes":["cpe:2.3:a:mysqljs:mysql2:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-22T13:08:47.484217Z","id":"CVE-2024-21509","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1321","type":"CWE","lang":"en","description":"CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-22T13:11:18.154Z"}}]}}}