{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.18.2"
              },
              {
                "introduced": "3.19.0"
              },
              {
                "fixed": "3.19.1"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "924f09d6846005f9fa82f06be3e0639b4586e93f"
            },
            {
              "introduced": "d82d6878ac1683790d4ea1e54772e2f047d4254a"
            },
            {
              "fixed": "48b7090bd69c44b7b8fc5ad95ee7be243f852819"
            }
          ],
          "repo": "https://github.com/theforeman/foreman",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.18.2"
              },
              {
                "introduced": "3.19.0"
              },
              {
                "fixed": "3.19.1"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9bf11d9dadb46b629a9ebaad5efa1cb4f3b18aad"
            },
            {
              "introduced": "c08fe88ada05e9b7fb6f1c4a24d2939f47c7e5c7"
            },
            {
              "fixed": "dd9a3ad4746e606d79b4ced48d1dabdc79a52b49"
            }
          ],
          "repo": "https://github.com/theforeman/foreman-installer",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.18.2"
              },
              {
                "introduced": "3.19.0"
              },
              {
                "fixed": "3.19.1"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f9a1c49144fef618282d1466975d0947e234c513"
            },
            {
              "introduced": "8b7a6d6c5955634c2bff9d8789234b0d7c3fe616"
            },
            {
              "fixed": "c5abbd9b13b34e6cd2055920bef27d8f03bbc80a"
            }
          ],
          "repo": "https://github.com/theforeman/smart-proxy",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-639"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5142.json"
  },
  "details": "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.",
  "id": "CVE-2026-5142",
  "modified": "2026-08-12T03:51:31.206970859Z",
  "published": "2026-07-01T14:07:55.662Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:34365"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:34366"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:34367"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:34368"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-5142"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5142.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5142"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2452999"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Foreman: foreman: cross-tenant private ssh key disclosure via taxonomy scoping bypass"
}