Описание
A flaw was found in Ansible. The ansible-core user module can allow an unprivileged user to silently create or replace the contents of any file on any system path and take ownership of it when a privileged user executes the user module against the unprivileged user's home directory. If the unprivileged user has traversal permissions on the directory containing the exploited target file, they retain full control over the contents of the file as its owner.
Меры по смягчению последствий
In the play that uses the user module with the key generation option, have a prior task ensuring the public key does not exist for example:
- name: avoid user exploit (change name depending on other options used in user task) file: path=/home/{{username}}/.ssh/id_rsa.pub state=absent
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | ansible-core | Not affected | ||
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ansible-builder-rhel8 | Fixed | RHSA-2024:8969 | 06.11.2024 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ansible-builder-rhel9 | Fixed | RHSA-2024:8969 | 06.11.2024 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-29-rhel8 | Fixed | RHSA-2024:8969 | 06.11.2024 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-minimal-rhel8 | Fixed | RHSA-2024:8969 | 06.11.2024 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-minimal-rhel9 | Fixed | RHSA-2024:8969 | 06.11.2024 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | ansible-core | Fixed | RHSA-2024:10762 | 03.12.2024 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | ansible-core | Fixed | RHSA-2024:10762 | 03.12.2024 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | ansible-core | Fixed | RHSA-2024:9894 | 18.11.2024 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | ansible-core | Fixed | RHSA-2024:9894 | 18.11.2024 |
Показывать по
Дополнительная информация
Статус:
EPSS
6.3 Medium
CVSS3
Связанные уязвимости
A flaw was found in Ansible. The ansible-core `user` module can allow an unprivileged user to silently create or replace the contents of any file on any system path and take ownership of it when a privileged user executes the `user` module against the unprivileged user's home directory. If the unprivileged user has traversal permissions on the directory containing the exploited target file, they retain full control over the contents of the file as its owner.
A flaw was found in Ansible. The ansible-core `user` module can allow an unprivileged user to silently create or replace the contents of any file on any system path and take ownership of it when a privileged user executes the `user` module against the unprivileged user's home directory. If the unprivileged user has traversal permissions on the directory containing the exploited target file, they retain full control over the contents of the file as its owner.
A flaw was found in Ansible. The ansible-core `user` module can allow ...
ansible-core Incorrect Authorization vulnerability
EPSS
6.3 Medium
CVSS3