# CVE-2026-5142: Foreman: foreman: cross-tenant private ssh key disclosure via taxonomy scoping bypass

Status: published. Published: 2026-07-01. Updated: 2026-11-26.

A flaw was found in foreman. Authenticated users with 'view_keypairs' permission can bypass taxonomy scoping, allowing them to download private SSH (Secure Shell) keys from other organizations by directly querying key pair IDs. This vulnerability leads to cross-tenant data exposure in multi-tenant deployments, potentially compromising sensitive information.

## Remediation

No remediation reported in collected sources

## Affected products and versions

-  /  (foreman): ≥ 1.15.0; < 3.18.2 (affected, semver); ≥ 3.19.0; < 3.19.1 (affected, semver). Source: CNA: redhat
- Red Hat / Red Hat Satellite 6.16 for RHEL 8 (foreman): ≥ 0:3.12.0.17-1.el8sat; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Satellite 6.16 for RHEL 9 (foreman): ≥ 0:3.12.0.17-1.el9sat; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Satellite 6.17 for RHEL 9 (foreman): ≥ 0:3.14.0.17-1.el9sat; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Satellite 6.18 for RHEL 9 (foreman): ≥ 0:3.16.0.17-1.el9sat; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Satellite 6.19 for RHEL 9 (foreman): ≥ 0:3.18.0.7-1.el9sat; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Satellite 6 (satellite-capsule:el8/foreman): Version range not reported. Source: CNA: redhat

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "6.18.7",
            "versionStartIncluding": "6.18",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      },
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*",
            "vulnerable": false
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "AND"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "6.16.10",
            "versionStartIncluding": "6.16",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      },
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
            "vulnerable": false
          },
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*",
            "vulnerable": false
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "AND"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "6.17.9",
            "versionStartIncluding": "6.17",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      },
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*",
            "vulnerable": false
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "AND"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "6.19.2",
            "versionStartIncluding": "6.19",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      },
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*",
            "vulnerable": false
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "AND"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "3.18.2",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "3.19.1",
            "versionStartIncluding": "3.19.0",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 6.5 (medium); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N; source: CNA: redhat

- CVSS 3.1: 6.5 (medium); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N; source: NVD: secalert@redhat.com

- CISA KEV: No listing in collected sources

- EPSS: 0.45% as of 2026-11-26; percentile 30.62%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-639

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://access.redhat.com/errata/RHSA-2026:34365 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:34366 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:34367 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:34368 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/security/cve/CVE-2026-5142 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2452999 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:34365 (secalert@redhat.com; Vendor Advisory)

- https://access.redhat.com/errata/RHSA-2026:34366 (secalert@redhat.com; Vendor Advisory)

- https://access.redhat.com/errata/RHSA-2026:34367 (secalert@redhat.com; Vendor Advisory)

- https://access.redhat.com/errata/RHSA-2026:34368 (secalert@redhat.com; Vendor Advisory)

- https://access.redhat.com/security/cve/CVE-2026-5142 (secalert@redhat.com; Vendor Advisory)

- https://bugzilla.redhat.com/show_bug.cgi?id=2452999 (secalert@redhat.com; Issue Tracking, Vendor Advisory)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2026-5142; retrieved 2026-11-26; source updated 2026-11-26

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-5142; retrieved 2026-11-25; source updated 2026-11-25

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-5142; retrieved 2026-11-26; source updated Not reported

Revision: f0ed3fe36af8af89062efad5dca8a21cb88a9bac5562d4d5628eb597df5966b6

Canonical: https://y2.dev/cve/CVE-2026-5142

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.