CVE-2017-7540Safemode Project Safemode
Critical 9.8 No auth needed
Follow: this CVE · Safemode Project · Safemode Project Safemode We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Jul 21, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-184
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Safemode.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | safemode |
< 1.3.2 |
1.3.2 |
gem "safemode", ">= 1.3.2" |
Per OSV / GitHub Advisories (GHSA-5vx5-9q73-wgp4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| safemode_project | safemode | ≤ 1.3.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking