# CVE-2017-7540

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2017-07-21 · Modified: 2024-08-05
- Aliases: GHSA-5vx5-9q73-wgp4
- Record: https://cvemate.com/vulnerability/CVE-2017-7540 · JSON: https://cvemate.com/vulnerability/CVE-2017-7540/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.627%, percentile 77.015%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- RubyGems safemode (RubyGems): \< 1.3.2
- red hat, inc. rubygem-safemode: 1.3.2 and earlier
- safemode\_project safemode: ≤ 1.3.2

## References

- <https://github.com/svenfuchs/safemode/pull/23>
- <https://nvd.nist.gov/vuln/detail/CVE-2017-7540>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/safemode/CVE-2017-7540.yml>
- <https://github.com/svenfuchs/safemode>

---

Data as of 2026-12-05T07:44:25.750Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
