CVE-2026-86324 · Infrastructure
NO FIX YET
Foreman's SSH keys API does not check that the caller may act on the target user, so an attacker with the create_ssh_keys permission can post a public key into another user's account. That key is then pushed to hosts provisioned by the victim, which can give the attacker SSH access to those hosts.
first public Nov 12, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams running Foreman to provision and manage hosts, where some users hold the create_ssh_keys permission. Exposure depends on whether non-admin users can reach the SSH keys API for other users. Installations where only fully trusted administrators can create SSH keys are lower risk. unknown for the exact affected versions.
Not affected if no-create-ssh-keys-permission-grants, single-admin
Who cares foreman, provisioning, self-hosted, ssh
foreman --version or the Foreman web footer) against the affected range in the sources.No fix yet, per the sources.
A flaw was found in Foreman’s Api::V2::SshKeysController, where the target user is resolved through Foreman::Controller::UserAware#find_user using User.find(params[:user_id]) without enforcing the required parent-user authorization check. An attacker with the create_ssh_keys permission can exploit this authorization bypass by submitting POST /api/v2/users/:user_id/ssh_keys with another user’s ID and injecting their own public SSH key into the targeted account. The injected key is subsequently propagated to hosts provisioned by that user, potentially allowing the attacker to authenticate to and gain SSH access to the victim’s managed hosts.
This page as .md · .json · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.