rubygem-safemode: Bypassing the whitelist of safe commands via block_pass
Published Jul 21, 2017
9.8
CRITICALCVSS 3.0
EPSS 1.63%
Description
rubygem-safemode, as used in Foreman, versions 1.3.2 and earlier are vulnerable to bypassing safe mode limitations via special Ruby syntax. This can lead to deletion of objects for which the user does not have delete permissions or possibly to privilege escalation.
Affected products
-
- Version 1.3.2 and earlierStatusaffectedConstraints-
- Version
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, Inc. | Rubygem-Safemode | n/a |
|
- ≤ 1.3.2
No data.
Red Hat Ceph Storage 1.3
ruby193-rubygem-safemode
Will not fix
Red Hat Enterprise Linux OpenStack Platform 6 (Juno) Installer
ruby193-rubygem-safemode
Will not fix
Red Hat Satellite 6
ruby193-rubygem-safemode
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ceph Storage 1.3 | ruby193-rubygem-safemode | Will not fix | n/a |
| Red Hat Enterprise Linux OpenStack Platform 6 (Juno) Installer | ruby193-rubygem-safemode | Will not fix | n/a |
| Red Hat Satellite 6 | ruby193-rubygem-safemode | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.63% (0.01627) | 75.30th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.63% (0.01627) | 72.98th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.21% (0.00205) | 58.91th | v3 (v2023.03.01) |
| Apr 2, 2024 | 0.21% (0.00205) | 57.88th | v3 (v2023.03.01) |
| May 8, 2023 | 0.18% (0.00182) | 53.91th | v3 (v2023.03.01) |
| May 6, 2023 | 0.13% (0.00131) | 46.67th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.19% (0.00187) | 54.37th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.42% (0.00416) | 10.04th | v1 |
| Jan 6, 2022 | 0.42% (0.00416) | 9.79th | v1 |
| Sep 1, 2021 | 0.42% (0.00416) | 25.53th | v1 |
| Apr 14, 2021 | 0.42% (0.00416) | 0.00th | v1 |
References (7)
- https://access.redhat.com/security/cve/CVE-2017-7540 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1473243 Issue Tracking
- https://github.com/advisories/GHSA-5vx5-9q73-wgp4 Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/safemode/CVE-2017-7540.yml
- https://github.com/svenfuchs/safemode/pull/23 x_refsource_MISCIssue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2017-7540
- https://www.cve.org/CVERecord?id=CVE-2017-7540
Change history (0)
No recorded changes yet.