{"id":"CVE-2026-18654","aliases":["CVE-2026-18654","GHSA-hqvf-45jj-mccq","PYSEC-2026-3627"],"related":[],"kind":"vulnerability","state":"published","title":"Disabled SSH host key verification in Amazon AWS CLI EMR helper commands","summary":"Key exchange without entity authentication in the EMR SSH helper commands in Amazon AWS CLI before 1.45.28 and AWS CLI v2 before 2.35.3 might allow man-in-the-middle attackers to intercept SSHsessions and file transfers via network positioning between the client and the EMR cluster endpoint.\n\n\n\nTo remediate this issue, users should upgrade to AWS CLI v1 1.45.28 or later, or AWS CLI v2 2.35.3 or later.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Key exchange without entity authentication in the EMR SSH helper commands in Amazon AWS CLI before 1.45.28 and AWS CLI v2 before 2.35.3 might allow man-in-the-middle attackers to intercept SSHsessions and file transfers via network positioning between the client and the EMR cluster endpoint.\n\n\n\nTo remediate this issue, users should upgrade to AWS CLI v1 1.45.28 or later, or AWS CLI v2 2.35.3 or later.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe AWS Command Line Interface (AWS CLI) is a unified tool to manage AWS services from the command line. An issue exists where the EMR SSH helper commands (`aws emr ssh`, `aws emr socks`, `aws emr put`, `aws emr get`) passed `StrictHostKeyChecking=no` to the underlying SSH client, disabling host key verification.\n\n### Impact\nA network-positioned actor could perform a man-in-the-middle action to intercept SSH sessions and file transfers between the client and EMR cluster instances. Successful exploitation requires the actor to have network access on the path between the client machine and the EMR cluster endpoint. This could result in full visibility of commands executed, files transferred, and credentials passed over the SSH session.\n\nImpacted versions: AWS CLI v1 <= 1.45.27, AWS CLI v2 <= 2.35.2\n\n### Patches\nThis issue has been addressed in AWS CLI v1 version 1.45.28 and AWS CLI v2 version 2.35.3. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.\n\n### Workarounds\nThere is no workaround. The insecure SSH option was hardcoded and could not be overridden by the user.\n\n### References\nIf you have any questions or comments about this advisory, we ask that you contact AWS Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n### Acknowledgement\nWe would like to thank Ali Sunbul for collaborating on this issue through the coordinated vulnerability disclosure process.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El intercambio de claves sin autenticación de entidad en los comandos auxiliares SSH de EMR en Amazon AWS CLI anterior a 1.45.28 y AWS CLI v2 anterior a 2.35.3 podría permitir a atacantes man-in-the-middle interceptar sesiones SSH y transferencias de archivos mediante posicionamiento de red entre el cliente y el punto final del clúster EMR.\n\nPara remediar este problema, los usuarios deben actualizar a AWS CLI v1 1.45.28 o posterior, o AWS CLI v2 2.35.3 o posterior.","source":"nvd"}],"published":"2026-08-03T19:38:51.922Z","modified":"2026-10-23T21:10:00.157Z","severity":{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"AMZN","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N"}],"cwes":["CWE-322"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"1.45.27","status":"affected"},{"type":"custom","introduced":"0","lastAffected":"2.35.2","status":"affected"}],"vendor":"AWS","product":"aws-cli","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.45.28"}],"ecosystem":"PyPI","package":"awscli","purl":"pkg:pypi/awscli","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.45.28"},{"status":"affected","introduced":"2.0.0","fixed":"2.35.3"}],"vendor":"amazon","product":"aws_command_line_interface","cpe":"cpe:2.3:a:amazon:aws_command_line_interface:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.45.28"}],"ecosystem":"PyPI","package":"awscli","purl":"pkg:pypi/awscli","source":"pysec"}],"references":[{"url":"https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst","tags":["patch","release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst","tags":["patch","release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-071-aws/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/aws/aws-cli/security/advisories/GHSA-hqvf-45jj-mccq","tags":["release-notes","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18654","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-071-aws","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/aws/aws-cli","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/awscli","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-hqvf-45jj-mccq","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"AMZN","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-04T19:32:18.898Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-18654","url":"https://www.cve.org/CVERecord?id=CVE-2026-18654","licence":"CVE Terms of Use","modified":"2026-08-04T19:32:59.576Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hqvf-45jj-mccq","url":"https://github.com/advisories/GHSA-hqvf-45jj-mccq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:53.787Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-18654","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18654","licence":"Public domain","modified":"2026-10-23T21:10:00.157Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3627","url":"https://osv.dev/vulnerability/PYSEC-2026-3627","licence":"CC-BY-4.0","modified":"2026-08-10T11:30:13.188Z"}],"updatedAt":"2026-11-25T22:59:30.891Z","epss":{"score":0.00291,"percentile":0.23286,"date":"2026-12-01T12:00:22.000Z"}}