6.9medium
Disabled SSH host key verification in Amazon AWS CLI EMR helper commands
- Severity
- 6.9medium CVSS:4.0 by AMZN
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- AMZN
- Also known as
- GHSA-hqvf-45jj-mccqPYSEC-2026-3627
Description
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. To remediate this issue, users should upgrade to AWS CLI v1 1.45.28 or later, or AWS CLI v2 2.35.3 or later.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| AWS aws-cli | up to 1.45.27, up to 2.35.2 | CVE List |
| awscli (PyPI) | before 1.45.28 | GitHub Advisory Database, PyPA Advisory Database |
| amazon aws_command_line_interface | before 1.45.28, from 2.0.0 before 2.35.3 | NVD |
All scores
| AMZN | 6.9medium CVSS:4.0 | 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 |
| AMZN | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | medium CVSS:4.0 | 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 |
| PyPA Advisory Database | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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. To remediate this issue, users should upgrade to AWS CLI v1 1.45.28 or later, or AWS CLI v2 2.35.3 or later.
GitHub Advisory Database
Summary
The 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.
Impact
A 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.
Impacted versions: AWS CLI v1 <= 1.45.27, AWS CLI v2 <= 2.35.2
Patches
This 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.
Workarounds
There is no workaround. The insecure SSH option was hardcoded and could not be overridden by the user.
References
If you have any questions or comments about this advisory, we ask that you contact AWS Security via our vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.
Acknowledgement
We would like to thank Ali Sunbul for collaborating on this issue through the coordinated vulnerability disclosure process.
NVD (es)
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. Para 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.
References
| https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst | patch, release-notes, web | |
| https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst | patch, release-notes, web | |
| https://aws.amazon.com/security/security-bulletins/2026-071-aws/ | vendor-advisory | |
| https://github.com/aws/aws-cli/security/advisories/GHSA-hqvf-45jj-mccq | release-notes, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-18654 | advisory | |
| https://aws.amazon.com/security/security-bulletins/2026-071-aws | web | |
| https://github.com/aws/aws-cli | package | |
| https://pypi.org/project/awscli | package | |
| https://github.com/advisories/GHSA-hqvf-45jj-mccq | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-18654 changed 2026-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hqvf-45jj-mccq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-18654 changed 2026-10-23 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3627 changed 2026-08-10 | CC-BY-4.0 |