Bug 1473243 - (CVE-2017-7540) CVE-2017-7540 rubygem-safemode: Bypassing the whitelist of safe commands via block_pass
CVE-2017-7540 rubygem-safemode: Bypassing the whitelist of safe commands via ...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20170711,repo...
: Security
Depends On: 1473795
Blocks: 1473244
  Show dependency treegraph
 
Reported: 2017-07-20 05:56 EDT by Adam Mariš
Modified: 2017-07-22 23:37 EDT (History)
25 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2017-07-20 05:56:14 EDT
A vulnerability was found in rubygem-safemode, used e.g. in Foreman. It has been found that user rendering a template (e.g. with edit_templates permission) can bypass safe mode limitations through a special ruby syntax. This can lead e.g. to deletion of objects for which the user does not have delete permissions or possibly to privilege escalation.

Upstream bug:

https://github.com/svenfuchs/safemode/pull/23

Foreman bug:

http://projects.theforeman.org/issues/20271/
Comment 1 Adam Mariš 2017-07-20 05:56:34 EDT
Acknowledgments:

Name: Tomer Brisker (Red Hat)
Comment 2 Siddharth Sharma 2017-07-20 06:22:13 EDT
Analysis:

ruby193-rubygem-safemode shipped in Red Hat Ceph Storage 1.3 is in tech preview and would be used only when installing ceph with foreman installer. Installing ceph via ceph-deploy does not use ruby193-rubygem-safemode.

Note You need to log in before you can comment on or make changes to this bug.