A flaw was found in Foreman. The foreman-tail utility is vulnerable to OS command injection due to the unsafe use of the eval command. The script takes user-supplied arguments and incorporates them directly into a string that is then executed by eval to expand file paths. Because the input is not sanitized or quoted, a local attacker can inject shell metacharacters (e.g., ;, &, |) to execute arbitrary system commands.
{
"cna_assigner": "redhat",
"cwe_ids": [
"CWE-78"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12542.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0:3.12.0.23-1.el8sat"
},
{
"fixed": "0:3.12.0.23-1.el9sat"
},
{
"fixed": "0:3.14.0.22-1.el9sat"
},
{
"fixed": "0:3.16.0.25-1.el9sat"
},
{
"fixed": "0:3.18.0.14-1.el9sat"
}
],
"source": "AFFECTED_FIELD",
"strategy": "InverseAffectedRanges"
}
]
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.5.0"
},
{
"last_affected": "3.19.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:theforeman:foreman:5.0.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.0.0"
},
{
"last_affected": "5.0.0"
}
],
"source": "CPE_STRING"
}
]
}
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.5.0"
},
{
"last_affected": "3.19.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:theforeman:foreman:5.0.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.0.0"
},
{
"last_affected": "5.0.0"
}
],
"source": "CPE_STRING"
}
]
}
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.5.0"
},
{
"last_affected": "3.19.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:theforeman:foreman:5.0.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.0.0"
},
{
"last_affected": "5.0.0"
}
],
"source": "CPE_STRING"
}
]
}