Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-7540
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:58 UTC · Revision 1
Source evidence
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.
osv:CVE-2017-7540
Complete source record
{
"id": "a39a3d5604667ad53e22971456ddf523f0fab832e8dc238244c6259bdd0309f3",
"url": "https://osv.dev/vulnerability/CVE-2017-7540",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-7540",
"summary": "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.",
"evidence": "osv:CVE-2017-7540",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2017-7540",
"aliases": [
"CVE-2017-7540",
"GHSA-5vx5-9q73-wgp4"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/theforeman/safemode",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "e54f3a709532e19b82d53bf4df3a519e6938fdf7"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:safemode_project:safemode:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.3.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.3.2",
"v1.3.1",
"v1.3.0",
"v1.2.5",
"v1.2.4",
"v1.2.3",
"v1.2.2",
"v1.2.1",
"v1.0.1",
"v1.2.0",
"v1.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7540.json"
}
}
],
"modified": "2026-10-20T10:49:32.841036626Z",
"provider": "osv",
"references": [
"https://github.com/svenfuchs/safemode/pull/23"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2017-7540",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 380535,
"published_at": "2017-07-21T22:29:00.33+00:00"
}