CVE-2014-3486: Medium severity red hat cloudforms management engine vulnerability

Published Jun 10, 2014
·
Updated

Kurt Seifried of Red Hat Product Security reports:

======================================== ./lib/util/MiqSshUtilV1.rb def shellexec(cmd, doneStr=nil, shell=@shell) if shell # Writing to a temp remote script to handle cases where the cmd string is # too long and is truncated. tempremotescript = "/var/tmp/miq-#{Time.now.toi}.sh" self.exec("echo \"#{cmd}\" > #{tempremotescript}") self.exec("chmod 700 #{tempremotescript}") out = shell.sendcommand(tempremotescript) self.exec("rm -f #{tempremotescript}") @status = out.status msg = out.stdout

# Check if the first output return references the remote script and remove it. msgs = msg.split("\n") msg = msgs[1..-1].join("\n") if msgs[0].include?(tempremotescript)

raise "#{msg}" unless doneStr.nil? || msg.include?(doneStr) return msg else return self.exec(cmd, doneStr) end end ======================================== ./lib/util/MiqSshUtilV2.rb def tempcmdfile(cmd) tempremotescript = "/var/tmp/miq-#{Time.now.toi}.sh" self.exec("echo \"#{cmd}\" > #{tempremotescript}") remotecmd = "chmod 700 #{tempremotescript}; #{tempremotescript}; rm -f #{tempremotescript}" yield(remotecmd) end ======================================== Time.now.toi = 1412123123 setup a file and a few hundred/thousand symlinks and you can cover an hour easily.

Between the

self.exec("echo \"#{cmd}\" > #{tempremotescript}") self.exec("chmod 700 #{tempremotescript}")

an attacker can replace the file, which is then executed as root.

It should use Ruby Tempfile: http://kurt.seifried.org/2012/03/14/creating-temporary-files-securely/

Other sources

The (1) shellexec function in lib/util/MiqSshUtilV1.rb and (2) tempcmdfile function in lib/util/MiqSshUtilV2.rb in Red Hat CloudForms 3.0 Management Engine (CFME) before 5.2.4.2 allow local users to execute arbitrary commands via a symlink attack on a temporary file with a predictable name.

MITRE

Affected Software

7 affected components
redhat Cloudforms 3.0 Management Engine<=5.2.4
redhat Cloudforms 3.0 Management Engine=5.2
redhat Cloudforms 3.0 Management Engine=5.2.1
redhat Cloudforms 3.0 Management Engine=5.2.1.6
redhat Cloudforms 3.0 Management Engine=5.2.2
redhat Cloudforms 3.0 Management Engine=5.2.3
redhat Cloudforms 3.0 Management Engine=5.2.3.2

Event History

Jun 10, 2014
Data Sourced
via Red Hat·06:59 AM
DescriptionSeverityAffected Software
Jul 7, 2014
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2014-3486?

CVE-2014-3486 is classified as a medium severity vulnerability.

2

How do I fix CVE-2014-3486?

To address CVE-2014-3486, update the Red Hat CloudForms Management Engine to the latest version recommended by Red Hat.

3

What impact does CVE-2014-3486 have on my system?

CVE-2014-3486 may allow an attacker to execute arbitrary commands on a vulnerable system.

4

Which versions of Red Hat CloudForms Management Engine are affected by CVE-2014-3486?

CVE-2014-3486 affects versions 5.2 to 5.2.4 of the Red Hat CloudForms Management Engine.

5

Is CVE-2014-3486 a remote code execution vulnerability?

Yes, CVE-2014-3486 can be exploited to facilitate remote code execution on vulnerable systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203