{
  "id": "CVE-2026-4878",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-4878",
  "published_at": "2026-04-09T14:49:02.942Z",
  "title": "Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()",
  "vendor": "Red Hat",
  "product": "Red Hat Enterprise Linux 10",
  "cvss": {
    "score": 7,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/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 libcap. A local unprivileged user can exploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the `cap_set_file()` function. This allows an attacker with write access to a parent directory to redirect file capability updates to an attacker-controlled file. By doing so, capabilities can be injected into or stripped from unintended executables, leading to privilege escalation.",
  "cwe": "CWE-367",
  "cpes": [
    "cpe:2.3:a:libcap_project:libcap:-:*:*:*:*:*:*:*",
    "cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.7,
    "nvd": 7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:2.69-7.el10_1.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "0:2.69-7.el10_2.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10.0 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:2.69-7.el10_0.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "0:2.48-6.el8_10.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
        "ranges": null,
        "fixed_in": [
          "0:2.48-4.el8_6.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On",
        "ranges": null,
        "fixed_in": [
          "0:2.48-4.el8_6.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Telecommunications Update Service",
        "ranges": null,
        "fixed_in": [
          "0:2.48-5.el8_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:2.48-5.el8_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:2.48-10.el9_7.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:2.48-10.el9_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:2.48-10.el9_7.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "0:2.48-10.el9_8.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "0:2.48-9.el9_2.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.4 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:2.48-9.el9_4.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.6 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "0:2.48-9.el9_6.1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.12",
        "ranges": null,
        "fixed_in": [
          "412.86.202608241157-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.13",
        "ranges": null,
        "fixed_in": [
          "413.92.202606160406-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.14",
        "ranges": null,
        "fixed_in": [
          "414.92.202606231112-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.15",
        "ranges": null,
        "fixed_in": [
          "415.92.202606030318-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.16",
        "ranges": null,
        "fixed_in": [
          "416.94.202606051757-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.17",
        "ranges": null,
        "fixed_in": [
          "417.94.202606250942-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.18",
        "ranges": null,
        "fixed_in": [
          "418.94.202606051320-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift Container Platform 4.19",
        "ranges": null,
        "fixed_in": [
          "4.19.9.6.202606031700-0"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.17",
        "ranges": null,
        "fixed_in": [
          "1791371080"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.17",
        "ranges": null,
        "fixed_in": [
          "1791371069"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.17",
        "ranges": null,
        "fixed_in": [
          "1791788287"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.17",
        "ranges": null,
        "fixed_in": [
          "1791970484"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.18",
        "ranges": null,
        "fixed_in": [
          "1791459707"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.18",
        "ranges": null,
        "fixed_in": [
          "1791459711"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.18",
        "ranges": null,
        "fixed_in": [
          "1791459759"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.18",
        "ranges": null,
        "fixed_in": [
          "1789029076"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.18",
        "ranges": null,
        "fixed_in": [
          "1791966259"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cert Manager support for Red Hat OpenShift release 1.20",
        "ranges": null,
        "fixed_in": [
          "1790598593"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cost Management 4",
        "ranges": null,
        "fixed_in": [
          "1780946239"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Cost Management 4",
        "ranges": null,
        "fixed_in": [
          "1783539156"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat AI Inference Server 3.2",
        "ranges": null,
        "fixed_in": [
          "1780681984"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat AI Inference Server 3.3",
        "ranges": null,
        "fixed_in": [
          "1782352950"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat AI Inference Server 3.3",
        "ranges": null,
        "fixed_in": [
          "1782352919"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat AI Inference Server 3.3",
        "ranges": null,
        "fixed_in": [
          "1782353093"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat AI Inference Server 3.3",
        "ranges": null,
        "fixed_in": [
          "1782352847"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Discovery 2",
        "ranges": null,
        "fixed_in": [
          "1778101579"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Discovery 2",
        "ranges": null,
        "fixed_in": [
          "1778156756"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Discovery 2",
        "ranges": null,
        "fixed_in": [
          "1782159791"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Discovery 2",
        "ranges": null,
        "fixed_in": [
          "1782166952"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Hardened Images",
        "ranges": null,
        "fixed_in": [
          "2.78-1.1.hum1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Insights proxy 1.5",
        "ranges": null,
        "fixed_in": [
          "1780420428"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift AI 3.4",
        "ranges": null,
        "fixed_in": [
          "1790703542"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift distributed tracing 3.9.3",
        "ranges": null,
        "fixed_in": [
          "1778056267"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift distributed tracing 3.9.3",
        "ranges": null,
        "fixed_in": [
          "1778056233"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat OpenShift distributed tracing 3.9.3",
        "ranges": null,
        "fixed_in": [
          "1778056245"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1779798159"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1779798164"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1779798165"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1779798222"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1787241211"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1787135742"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Update Infrastructure 5",
        "ranges": null,
        "fixed_in": [
          "1787241260"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 10 to 0:2.69-7.el10_1.1 or later.",
      "Upgrade Red Hat Enterprise Linux 10 to 0:2.69-7.el10_2.1 or later.",
      "Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:2.69-7.el10_0.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 0:2.48-6.el8_10.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:2.48-4.el8_6.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On to 0:2.48-4.el8_6.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:2.48-5.el8_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:2.48-5.el8_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:2.48-10.el9_7.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:2.48-10.el9_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:2.48-10.el9_7.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 0:2.48-10.el9_8.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:2.48-9.el9_2.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9.4 Extended Update Support to 0:2.48-9.el9_4.1 or later.",
      "Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:2.48-9.el9_6.1 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.12 to 412.86.202608241157-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.13 to 413.92.202606160406-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.14 to 414.92.202606231112-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.15 to 415.92.202606030318-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.16 to 416.94.202606051757-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.17 to 417.94.202606250942-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.18 to 418.94.202606051320-0 or later.",
      "Upgrade Red Hat OpenShift Container Platform 4.19 to 4.19.9.6.202606031700-0 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.17 to 1791371080 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.17 to 1791371069 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.17 to 1791788287 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.17 to 1791970484 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.18 to 1791459707 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.18 to 1791459711 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.18 to 1791459759 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.18 to 1789029076 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.18 to 1791966259 or later.",
      "Upgrade Cert Manager support for Red Hat OpenShift release 1.20 to 1790598593 or later.",
      "Upgrade Cost Management 4 to 1780946239 or later.",
      "Upgrade Cost Management 4 to 1783539156 or later.",
      "Upgrade Red Hat AI Inference Server 3.2 to 1780681984 or later.",
      "Upgrade Red Hat AI Inference Server 3.3 to 1782352950 or later.",
      "Upgrade Red Hat AI Inference Server 3.3 to 1782352919 or later.",
      "Upgrade Red Hat AI Inference Server 3.3 to 1782353093 or later.",
      "Upgrade Red Hat AI Inference Server 3.3 to 1782352847 or later.",
      "Upgrade Red Hat Discovery 2 to 1778101579 or later.",
      "Upgrade Red Hat Discovery 2 to 1778156756 or later.",
      "Upgrade Red Hat Discovery 2 to 1782159791 or later.",
      "Upgrade Red Hat Discovery 2 to 1782166952 or later.",
      "Upgrade Red Hat Hardened Images to 2.78-1.1.hum1 or later.",
      "Upgrade Red Hat Insights proxy 1.5 to 1780420428 or later.",
      "Upgrade Red Hat OpenShift AI 3.4 to 1790703542 or later.",
      "Upgrade Red Hat OpenShift distributed tracing 3.9.3 to 1778056267 or later.",
      "Upgrade Red Hat OpenShift distributed tracing 3.9.3 to 1778056233 or later.",
      "Upgrade Red Hat OpenShift distributed tracing 3.9.3 to 1778056245 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1779798159 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1779798164 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1779798165 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1779798222 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1787241211 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1787135742 or later.",
      "Upgrade Red Hat Update Infrastructure 5 to 1787241260 or later."
    ],
    "workarounds": [
      "Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:12423"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:12441"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:13285"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:14162"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:14937"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:19130"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:19346"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:19456"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
