CVE-2026-12542

Source
https://cve.org/CVERecord?id=CVE-2026-12542
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12542.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-12542
Downstream
RHSA (4)
Published
2026-10-01T17:14:49Z
Modified
2026-10-24T10:53:26Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
Foreman: command injection in foreman-tail
Details

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.

Database specific
{
    "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"
                }
            ]
        }
    ]
}
References

Affected packages

Git
github.com/theforeman/foreman

Affected ranges

Type
GIT
Repo
https://github.com/theforeman/foreman
Events
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

5.*
5.0.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12542.json"
github.com/theforeman/foreman-installer

Affected ranges

Type
GIT
Repo
https://github.com/theforeman/foreman-installer
Events
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

5.*
5.0.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12542.json"
github.com/theforeman/smart-proxy

Affected ranges

Type
GIT
Repo
https://github.com/theforeman/smart-proxy
Events
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

5.*
5.0.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12542.json"