Actions
Bug #39479
closedCVE-2026-5142: Cross-tenant private SSH key disclosure via taxonomy scoping bypass
Status:
Closed
Priority:
Immediate
Assignee:
-
Category:
Security
Target version:
-
Difficulty:
Triaged:
No
Description
A broken access control vulnerability was found in Foreman's KeyPairsController#show action. The show action is excluded from the find_compute_resource callback that enforces taxonomy scoping on all other key pair actions. This allows an authenticated user with the view_keypairs permission (included in the built-in Viewer role) to download the full PEM private key of any compute resource by database ID, bypassing organization and location boundaries.
CVSS: 6.5 (Moderate)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE: CWE-639
Credit: Stanislav Fot (Aisle Research)
Updated by The Foreman Bot 16 days ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/11067 added
Updated by The Foreman Bot 16 days ago
- Pull request https://github.com/theforeman/foreman/pull/11068 added
Updated by The Foreman Bot 16 days ago
- Pull request https://github.com/theforeman/foreman/pull/11069 added
Updated by Lukáš Ježek 16 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|19d084176d27e3b875e74e34838e04834454e782.
Actions