{
  "id": "CVE-2026-12540",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-12540",
  "published_at": "2026-10-01T16:22:02.99Z",
  "title": "Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter",
  "vendor": "Red Hat",
  "product": "Red Hat Satellite 6.16 for RHEL 8",
  "cvss": {
    "score": 8.2,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. The request_id parameter is passed to an underlying system command (typically grep) without adequate shell neutralization. While the task is intended to fetch specific log entries, an attacker with sudo permissions to execute this rake task can inject shell metacharacters (such as ;, \", or |) to break out of the intended command and execute arbitrary code.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*",
    "cpe:2.3:a:theforeman:foreman:-:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Satellite 6.16 for RHEL 8",
        "ranges": null,
        "fixed_in": [
          "0:3.12.0.23-1.el8sat"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Satellite 6.16 for RHEL 9",
        "ranges": null,
        "fixed_in": [
          "0:3.12.0.23-1.el9sat"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Satellite 6.17 for RHEL 9",
        "ranges": null,
        "fixed_in": [
          "0:3.14.0.22-1.el9sat"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Satellite 6.18 for RHEL 9",
        "ranges": null,
        "fixed_in": [
          "0:3.16.0.25-1.el9sat"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Satellite 6.19 for RHEL 9",
        "ranges": null,
        "fixed_in": [
          "0:3.18.0.14-1.el9sat"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Satellite 6.16 for RHEL 8 to 0:3.12.0.23-1.el8sat or later.",
      "Upgrade Red Hat Satellite 6.16 for RHEL 9 to 0:3.12.0.23-1.el9sat or later.",
      "Upgrade Red Hat Satellite 6.17 for RHEL 9 to 0:3.14.0.22-1.el9sat or later.",
      "Upgrade Red Hat Satellite 6.18 for RHEL 9 to 0:3.16.0.25-1.el9sat or later.",
      "Upgrade Red Hat Satellite 6.19 for RHEL 9 to 0:3.18.0.14-1.el9sat or later."
    ],
    "workarounds": [
      "Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:74503"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:74504"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:74505"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:74506"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
