CVE-2013-4386: SQL Injection
Dominic Cleal of Red Hat reported an SQL injection vulnerability in Foreman.
Host and host group parameter overrides (lookupvalues) use a hand-crafted SQL query to associate the host/host group to the lookupvalue object, as it searches for lookupvalues with the "fqdn=foo.example.com" or "hostgroup=Foo" syntaxes. The association calls a method on the host or host group for the matcher string, then puts the response straight into SQL query. By changing the host's FQDN or the host group's label, arbitrary SQL can be injected.
External references: http://projects.theforeman.org/issues/3160)
Other sources
Multiple SQL injection vulnerabilities in app/models/concerns/hostcommon.rb in Foreman before 1.2.3 allow remote attackers to execute arbitrary SQL commands via the (1) fqdn or (2) hostgroup parameter.
— MITRE
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2013-4386?
CVE-2013-4386 is classified as a high severity vulnerability due to its potential for SQL injection attacks.
How do I fix CVE-2013-4386?
To fix CVE-2013-4386, you should upgrade to Foreman version 1.2.3 or later.
What vulnerabilities does CVE-2013-4386 exploit?
CVE-2013-4386 exploits multiple SQL injection vulnerabilities via the fqdn or hostgroup parameters.
Which versions of Foreman are affected by CVE-2013-4386?
CVE-2013-4386 affects Foreman versions up to and including 1.2.2.
Can CVE-2013-4386 impact my OpenStack deployment?
Yes, CVE-2013-4386 can impact OpenStack deployments using vulnerable versions of Foreman.