Foreman: authorization flaw in the foreman::controller::useraware handling used by api::v2::sshkeyscontroller
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Red Hat | Red Hat Satellite 6.16 for RHEL 8 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.16 for RHEL 8 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.16 for RHEL 8 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.16 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.16 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.16 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.18 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.18 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.18 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.19 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.19 for RHEL 9 | affected |
|
||||||
| Red Hat | Red Hat Satellite 6.19 for RHEL 9 | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Redhat | Satellite |
|
||||||||
| Redhat | Satellite |
|
||||||||
| Redhat | Satellite |
|
||||||||
| Redhat | Satellite |
|
||||||||
| Redhat | Satellite |
|
Vendor Workaround
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.354% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | A missing authorization check has been found in the find_user function in user_aware.rb of the SSH key API in the foreman package. The create action attaches a new public key to the user id in the request without checking that the caller may edit that user. A low-privileged network attacker or user who already holds permission to create SSH keys can add their key to another user's account. That key is then stored with the victim and can be used by features that export that user's SSH keys. |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:satellite:6.19::el9 cpe:/a:redhat:satellite_capsule:6.19::el9 cpe:/a:redhat:satellite_utils:6.19::el9 |
|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat satellite Capsule
Redhat satellite Maintenance Redhat satellite Utils |
|
| CPEs | cpe:/a:redhat:satellite:6.16::el8 cpe:/a:redhat:satellite:6.16::el9 cpe:/a:redhat:satellite:6.17::el9 cpe:/a:redhat:satellite:6.18::el9 cpe:/a:redhat:satellite_capsule:6.16::el8 cpe:/a:redhat:satellite_capsule:6.16::el9 cpe:/a:redhat:satellite_capsule:6.17::el9 cpe:/a:redhat:satellite_capsule:6.18::el9 cpe:/a:redhat:satellite_maintenance:6.17::el9 cpe:/a:redhat:satellite_maintenance:6.18::el9 cpe:/a:redhat:satellite_utils:6.16::el8 cpe:/a:redhat:satellite_utils:6.16::el9 cpe:/a:redhat:satellite_utils:6.17::el9 cpe:/a:redhat:satellite_utils:6.18::el9 |
|
| Vendors & Products |
Redhat satellite Capsule
Redhat satellite Maintenance Redhat satellite Utils |
|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Foreman: authorization flaw in the foreman::controller::useraware handling used by api::v2::sshkeyscontroller | |
| First Time appeared |
Redhat
Redhat satellite |
|
| Weaknesses | CWE-639 | |
| CPEs | cpe:/a:redhat:satellite:6 | |
| Vendors & Products |
Redhat
Redhat satellite |
|
| References |
| |
| Metrics |
cvssV3_1
|