CVE-2017-7540
CRITICAL 9.8CVSS 3.0Safemode Gem Has Incomplete List of Disallowed Inputs
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.
- Published
- 21 Jul 2017
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-184
- Also known as
- GHSA-5vx5-9q73-wgp4
- Sources
- NVDJSONOSV GHSA-5vx5-9q73-wgp4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | safemode_project | safemodecpe:2.3:a:safemode_project:safemode:*:*:*:*:*:ruby:*:* |
<= 1.3.2 | |
| OSV | RubyGems | safemode | < 1.3.2 | 1.3.2 |
References
- https://github.com/svenfuchs/safemode/pull/23 · Issue Tracking, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-7540 · ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/safemode/CVE-2017-7540.yml · WEB
- https://github.com/svenfuchs/safemode · PACKAGE
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 21 Jul 2017)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)