---
cve: "CVE-2026-4878"
severity: "MEDIUM"
cvss: 6.7
epss: "21%"
vendor: "Red Hat"
kev: false
exploited: false
published: "2026-04-09 16:16:31"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-14T01:46:58+02:00"
---

# CVE-2026-4878

> 6.7 MEDIUM

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Hoch | good |
| PR Privilegien | Gering | warn |
| UI Interaktion | Erforderlich | good |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Referenzen

- <https://access.redhat.com/errata/RHSA-2026:12423>
- <https://access.redhat.com/errata/RHSA-2026:12441>
- <https://access.redhat.com/errata/RHSA-2026:13285>
- <https://access.redhat.com/errata/RHSA-2026:14162>
- <https://access.redhat.com/errata/RHSA-2026:14937>
- <https://access.redhat.com/errata/RHSA-2026:19130>
- <https://access.redhat.com/errata/RHSA-2026:19346>
- <https://access.redhat.com/errata/RHSA-2026:19456>
- <https://access.redhat.com/errata/RHSA-2026:19458>
- <https://access.redhat.com/errata/RHSA-2026:20595>
- <https://access.redhat.com/errata/RHSA-2026:21254>
- <https://access.redhat.com/errata/RHSA-2026:21275>
- <https://access.redhat.com/errata/RHSA-2026:22634>
- <https://access.redhat.com/errata/RHSA-2026:22957>
- <https://access.redhat.com/errata/RHSA-2026:23233>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-4878) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
