A flaw was found in ansible-collection-redhat-leapp. An attacker with privileged write access to a managed node's Leapp report content can manipulate it. When an operator runs a specific remediation task, this manipulated report can cause the Ansible controller to read its own local files and copy them to the managed node. This vulnerability leads to information disclosure, potentially exposing sensitive controller-side data such as private keys or credentials.
To mitigate this issue, avoid running the leapp_corrupted_grubenv_file remediation against managed nodes whose Leapp report content is not trusted. As a local hardening measure, modify the relevant Ansible playbook to explicitly set remote_src: true for ansible.builtin.copy tasks within the leapp_corrupted_grubenv_file role. Additionally, implement path validation to ensure that src paths are strictly confined to the expected /boot subtree. These changes require re-execution of the Ansible playbook to take effect.