{"id":"CVE-2022-41828","aliases":["EUVD-2022-7116","GHSA-jc69-hjw2-fm86"],"status":"published","title":"com.amazon.redshift:redshift-jdbc42 vulnerable to remote command execution","description":"In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01924,"percentile":0.80084,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-704"],"published":"2022-09-29T00:00:00Z","modified":"2026-10-28T02:30:21Z","exploits":[{"source":"pocgithub","id":"murataydemir/CVE-2022-41828","title":"murataydemir/CVE-2022-41828","date":"2022-12-09","url":"https://github.com/murataydemir/CVE-2022-41828"}],"fixes":[{"ecosystem":"Maven","package":"com.amazon.redshift:redshift-jdbc42","fixed_in":["2.1.0.8"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"com.amazon.redshift:redshift-jdbc42","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0.8"}]}]},{"source":"osv","ecosystem":"Maven","package":"com.amazon.redshift:redshift-jdbc42","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0.8"}]}],"versions":["2.0.0.3","2.0.0.4","2.0.0.5","2.0.0.6","2.0.0.7","2.1.0.1","2.1.0.2","2.1.0.3","2.1.0.4","2.1.0.5","2.1.0.6","2.1.0.7"]}],"products":[{"vendor":"amazon","product":"amazon_web_services_redshift_java_database_connectivity_driver"}],"references":[{"url":"https://github.com/aws/amazon-redshift-jdbc-driver/commit/40b143b4698faf90c788ffa89f2d4d8d2ad068b5","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/aws/amazon-redshift-jdbc-driver/security/advisories/GHSA-jc69-hjw2-fm86","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/aws/amazon-redshift-jdbc-driver/commit/9999659bbc9f3d006fb02a0bf39d5bcf3b503605","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41828","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jc69-hjw2-fm86"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41828.json","tags":["advisory"]},{"url":"https://github.com/aws/amazon-redshift-jdbc-driver","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-41828","description":"In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.","status":"published","published":"2022-09-29T00:00:00Z","modified":"2025-05-20T19:50:56.01Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-704"],"updated_at":"2026-11-02T14:34:28.038197Z"}],"euvd":[{"id":"EUVD-2022-7116","description":"In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.","status":"published","published":"2022-09-29T00:00:00Z","modified":"2025-05-20T19:50:56Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:32:41.963587Z"}],"ghsa":[{"id":"GHSA-jc69-hjw2-fm86","title":"com.amazon.redshift:redshift-jdbc42 vulnerable to remote command execution","description":"### Impact\n\nA potential remote command execution issue exists within `redshift-jdbc42` versions 2.1.0.7 and below. When plugins are used with the driver, it instantiates plugin instances based on Java class names provided via the `sslhostnameverifier`, `socketFactory`, `sslfactory`, and `sslpasswordcallback` connection properties. In affected versions, the driver does not verify if a plugin class implements the expected interface before instantiatiaton. This can lead to loading of arbitrary Java classes, which a knowledgeable attacker with control over the JDBC URL can use to achieve remote code execution.\n\n### Patches\n\nThis issue is patched within `redshift-jdbc-42` 2.1.0.8 and above.\n\n### Workarounds\n\nWe advise customers using plugins to upgrade to `redshift-jdbc42` version 2.1.0.8 or above. There are no known workarounds for this issue.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please contact AWS Security at [aws-security@amazon.com](mailto:aws-security@amazon.com).\n","status":"published","published":"2022-10-12T18:23:36Z","modified":"2023-01-11T05:01:25Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:L","level":"high"}],"cwes":["CWE-704"],"updated_at":"2026-11-02T14:36:12.361159Z"}],"nvd":[{"id":"CVE-2022-41828","description":"In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.","status":"published","published":"2022-09-29T21:15:12.383Z","modified":"2026-06-17T05:03:52.94Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-704"],"updated_at":"2026-11-02T14:07:29.026521Z"}],"osv":[{"id":"CVE-2022-41828","description":"In Amazon AWS Redshift JDBC Driver (aka amazon-redshift-jdbc-driver or redshift-jdbc42) before 2.1.0.8, the Object Factory does not check the class type when instantiating an object from a class name.","status":"published","published":"2022-09-29T00:00:00Z","modified":"2026-10-28T02:30:21.838273374Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:27.186787Z"},{"id":"GHSA-jc69-hjw2-fm86","title":"com.amazon.redshift:redshift-jdbc42 vulnerable to remote command execution","description":"### Impact\n\nA potential remote command execution issue exists within `redshift-jdbc42` versions 2.1.0.7 and below. When plugins are used with the driver, it instantiates plugin instances based on Java class names provided via the `sslhostnameverifier`, `socketFactory`, `sslfactory`, and `sslpasswordcallback` connection properties. In affected versions, the driver does not verify if a plugin class implements the expected interface before instantiatiaton. This can lead to loading of arbitrary Java classes, which a knowledgeable attacker with control over the JDBC URL can use to achieve remote code execution.\n\n### Patches\n\nThis issue is patched within `redshift-jdbc-42` 2.1.0.8 and above.\n\n### Workarounds\n\nWe advise customers using plugins to upgrade to `redshift-jdbc42` version 2.1.0.8 or above. There are no known workarounds for this issue.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please contact AWS Security at [aws-security@amazon.com](mailto:aws-security@amazon.com).\n","status":"published","published":"2022-10-12T18:23:36Z","modified":"2026-07-08T06:29:36.989829129Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:L","level":"high"}],"cwes":["CWE-704"],"updated_at":"2026-11-02T15:46:50.336262Z"}]}}
