KeygraphLabs · CVE MCP

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.

CVSS
9.8
critical, from NVD
EPSS
1.63%
percentile 77.1%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-21Published
2017-10-24Package advisory GHSA-5vx5-9q73-wgp4
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 1.63%
2026-12-03Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-5vx5-9q73-wgp4safemode (RubyGems)1.3.2

Also known as: GHSA-5vx5-9q73-wgp4

Related

CVEPublishedCVSSSummary
CVE-2016-36932016-05-208.1same package: safemode (RubyGems)
CVE-2026-1238762026-11-064.4Podman: containers-common: containers-common: default seccomp af_vsock/netlink_audit deny rules bypassable via 32-bit truncation
CVE-2026-847142026-09-237.1Automation-controller: automation-controller: incomplete sanitize_jinja() regex allows jinja template injection into ad-hoc module_args, machine-credential fiel
CVE-2026-847062026-09-237.6Automation-controller: automation-controller-container: automation-controller: credential type env-injector deny-list omits process-hijacking variables (bash_en
CVE-2026-758842026-09-239.1Awx: awx: privilege escalation to openshift namespace via pod_spec_override injection in container groups
CVE-2026-842182026-09-018.1Org.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.

NVD · CVE.org