CVE-2017-7540 · redhat
CVE-2017-7540
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 2017-07-21, last changed 2026-06-17. Weakness: CWE-184.
How to fix
Upgrade to a fixed version: safemode 1.3.2 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in svenfuchs/safemode by pull request #23. Functions changed by the fix: process_iasgn. Regression tests: test/test_safemode_parser.rb. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-07-21 | Published |
| 2017-10-24 | Package advisory GHSA-5vx5-9q73-wgp4 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.63% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-5vx5-9q73-wgp4 | safemode (RubyGems) | 1.3.2 |
Also known as: GHSA-5vx5-9q73-wgp4
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2016-3693 | 2016-05-20 | 8.1 | same package: safemode (RubyGems) |
| CVE-2026-123876 | 2026-11-06 | 4.4 | Podman: containers-common: containers-common: default seccomp af_vsock/netlink_audit deny rules bypassable via 32-bit truncation |
| CVE-2026-84714 | 2026-09-23 | 7.1 | Automation-controller: automation-controller: incomplete sanitize_jinja() regex allows jinja template injection into ad-hoc module_args, machine-credential fiel |
| CVE-2026-84706 | 2026-09-23 | 7.6 | Automation-controller: automation-controller-container: automation-controller: credential type env-injector deny-list omits process-hijacking variables (bash_en |
| CVE-2026-75884 | 2026-09-23 | 9.1 | Awx: awx: privilege escalation to openshift namespace via pod_spec_override injection in container groups |
| CVE-2026-84218 | 2026-09-01 | 8.1 | Org.jolokia/jolokia-core: incomplete jndi denylist in jolokia jsr-160 proxy (bypass of cve-2018-1000130 fix) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-7540, or call /api/v1/vulnerabilities/CVE-2017-7540. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.