ansible, ansible community.aws, ansible…: Improper Handling of Parameters
CVE-2022-3697 is a high-severity improper handling of parameters vulnerability in ansible, ansible community.aws, ansible amazon.aws, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected ansible, ansible community.aws, ansible amazon.aws versions: ansible from 2.5.0 before 2.10; ansible community.aws before 2.0.0; ansible amazon.aws from 2.1.0 before 5.1.0. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.91% chance of exploitation within 30 days, higher than 60% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Ansible to 2.10.0 or a later version.
- Update Ansible Collection to 2.0.0 or 5.1.0, whichever matches your release line, or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Ansible, Ansible Community.aws, Ansible Amazon.aws | ansible, ansible community.aws, ansible amazon.aws | ansible from 2.5.0 before 2.10; ansible community.aws before 2.0.0; ansible amazon.aws from 2.1.0 before 5.1.0 | Not stated |
| Red Hat | Ansible | 2.5.0 up to, but not including, 2.10.0 | 2.10.0 |
| Red Hat | Ansible Collection | before 2.0.0; 2.1.0 up to, but not including, 5.1.0 | 2.0.0, 5.1.0 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. Scored by NVD.
Official description
A flaw was found in Ansible in the amazon.aws collection when using the tower_callback parameter from the amazon.aws.ec2_instance module. This flaw allows an attacker to take advantage of this issue as the module is handling the parameter insecurely, leading to the password leaking in the logs.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Handling of Parameters
The product does not properly handle when the expected number of parameters, fields, or arguments is not provided in input, or if those parameters are undefined.
More Improper Handling of Parameters vulnerabilities (CWE-233)
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- github.com/ansible-collections/amazon.aws/pull/1199Third Party Advisory
Other references
Recent Improper Handling of Parameters vulnerabilities
- 7.5 High severity
- 7.5 High severity
Spotted an error? Tell us.