CVE-2024-4871 Foreman: host ssh key not being checked in remote execution

Medium 6.8 Published Updated

Attackers can perform man-in-the-middle attacks during remote execution because SSH host key checking is disabled, potentially leaking secrets.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-4871?

CVE-2024-4871 is a medium-severity vulnerability in Red Hat Satellite 6.15 for RHEL 8, published on 14 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was found in Satellite. When running a remote execution job on a host, the host's SSH key is not being checked. When the key changes, the Satellite still connects it because it uses "-o StrictHostKeyChecking=no". This flaw can lead to a man-in-the-middle attack (MITM), denial of service, leaking of secrets the remote execution job contains, or other issues that may arise from the attacker's ability to forge an SSH key. This issue does not directly allow unauthorized remote execution on the Satellite, although it can leak secrets that may lead to it.

Weakness: CWE-322

Which versions are affected by CVE-2024-4871?

Linux distribution packages (40)
candlepin Red Hat:satellite:6.15::el8All versions0:4.3.14-1.el8sat
candlepin-selinux Red Hat:satellite:6.15::el8All versions0:4.3.14-1.el8sat
foreman Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-cli Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-debug Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-dynflow-sidekiq Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-ec2 Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-installer Red Hat:satellite:6.15::el8All versions1:3.9.3.2-1.el8sat
foreman-installer-katello Red Hat:satellite:6.15::el8All versions1:3.9.3.2-1.el8sat
foreman-journald Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-libvirt Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-openstack Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-ovirt Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-pcp Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-postgresql Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-redis Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-service Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-telemetry Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-vmware Red Hat:satellite:6.15::el8All versions0:3.9.1.8-1.el8sat
python-pulp-container Red Hat:satellite:6.15::el8All versions0:2.16.9-1.el8pc
python-pulpcore Red Hat:satellite:6.15::el8All versions0:3.39.15-1.el8pc
python3.11-pulp-container Red Hat:satellite:6.15::el8All versions0:2.16.9-1.el8pc
python3.11-pulpcore Red Hat:satellite:6.15::el8All versions0:3.39.15-1.el8pc
rubygem-dynflow Red Hat:satellite:6.15::el8All versions0:1.8.3-1.el8sat
rubygem-foreman_ansible Red Hat:satellite:6.15::el8All versions0:13.0.6-1.el8sat
rubygem-foreman_remote_execution Red Hat:satellite:6.15::el8All versions0:12.0.7-1.el8sat
rubygem-foreman_remote_execution-cockpit Red Hat:satellite:6.15::el8All versions0:12.0.7-1.el8sat
rubygem-katello Red Hat:satellite:6.15::el8All versions0:4.11.0.15-1.el8sat
rubygem-smart_proxy_container_gateway Red Hat:satellite:6.15::el8All versions0:3.0.0-1.el8sat
rubygem-smart_proxy_remote_execution_ssh Red Hat:satellite:6.15::el8All versions0:0.10.6-1.el8sat
satellite Red Hat:satellite:6.15::el8All versions0:6.15.2-1.el8sat
satellite-cli Red Hat:satellite:6.15::el8All versions0:6.15.2-1.el8sat
satellite-common Red Hat:satellite:6.15::el8All versions0:6.15.2-1.el8sat
foreman Red Hat:satellite_capsule:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-debug Red Hat:satellite_capsule:6.15::el8All versions0:3.9.1.8-1.el8sat
foreman-installer Red Hat:satellite_capsule:6.15::el8All versions1:3.9.3.2-1.el8sat
foreman-installer-katello Red Hat:satellite_capsule:6.15::el8All versions1:3.9.3.2-1.el8sat
python-pulp-container Red Hat:satellite_capsule:6.15::el8All versions0:2.16.9-1.el8pc
python-pulpcore Red Hat:satellite_capsule:6.15::el8All versions0:3.39.15-1.el8pc
python3.11-pulp-container Red Hat:satellite_capsule:6.15::el8All versions0:2.16.9-1.el8pc

How do I fix CVE-2024-4871?

Apply the vendor's patch.

Is CVE-2024-4871 being exploited?

There is no known exploitation of CVE-2024-4871 in the wild and no public exploit code.

Sources

Also known as GHSA-q5x2-4347-hrg2, RHBA-2024:4589.

Is CVE-2024-4871 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free