Skip to content

Safemode Gem Has Incomplete List of Disallowed Inputs

Critical severity GitHub Reviewed Published Oct 24, 2017 to the GitHub Advisory Database • Updated Sep 5, 2023

Package

bundler safemode (RubyGems)

Affected versions

< 1.3.2

Patched versions

1.3.2

Description

rubygem-safemode, as used in Foreman, versions 1.3.1 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.

References

Published by the National Vulnerability Database Jul 21, 2017
Published to the GitHub Advisory Database Oct 24, 2017
Reviewed Jun 16, 2020
Last updated Sep 5, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2017-7540

GHSA ID

GHSA-5vx5-9q73-wgp4

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.