# CVE-2026-86324: Foreman API authorization bypass in SSH key controller

Source: https://junglewise.ai/threats/cve-2026-86324-a-flaw-was-found-in-foreman-s-api-v2-sshkeyscontroller-where-the  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-12. Updated: 2026-11-12  
License: CC BY 4.0 with a link back

CVE-2026-86324 · Severity: medium · CVSS 4.3 · Published 2026-11-12

Foreman is an open-source infrastructure management platform that provisions and manages hosts across an organization. An attacker with SSH key creation permissions can bypass authorization checks to inject their own SSH keys into other users' accounts, potentially gaining unauthorized SSH access to all hosts provisioned by victims. This lateral privilege escalation affects users who rely on Foreman to manage their server infrastructure.

## Quick answers

**Is CVE-2026-86324 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-86324 being exploited in the wild.

**How severe is CVE-2026-86324?** Medium severity, with a CVSS score of 4.3, published 12 November 2026.

**Which products and versions are affected?** Foreman.

**Is there a fix for CVE-2026-86324?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-86324 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-86324?** Check whether you run Foreman. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The Api::V2::SshKeysController in Foreman resolves the target user via User.find(params[:user_id]) without enforcing parent-user authorization checks, creating a CWE-639 authorization bypass. An authenticated attacker with create_ssh_keys permission can POST to /api/v2/users/:user_id/ssh_keys with an arbitrary user ID to inject their public key into another account; the key is then propagated to that user's provisioned hosts, enabling SSH access.

## Affected products

- Foreman

## Timeline

- 2026-11-12: disclosed

## References

- [https://access.redhat.com/downloads/content/package-browser/](https://access.redhat.com/downloads/content/package-browser/)
- [https://access.redhat.com/security/cve/CVE-2026-86324](https://access.redhat.com/security/cve/CVE-2026-86324)

## Related threats

- [Foreman API missing authorization in host provisioning template render](https://junglewise.ai/threats/cve-2026-107443-a-flaw-was-found-in-foreman-an-authenticated-user-with-view)
