Privilege Escalation Vulnerability in libcap: Important Security Update

libcap Updated 01 May 2026

Summary

30/04/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:12423: Important: libcap security update. Affects libcap versions < 2.69-7.el10_1.1. Fixed in 2.69-7.el10_1.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Libcap is a crucial library that enables the management of POSIX.1e capabilities, allowing applications to grant specific privileges to processes without giving them full root access. This functionality is essential for enhancing security by minimizing the potential attack surface. However, vulnerabilities in such libraries can lead to severe security risks, including privilege escalation, which can compromise the entire system.

Vulnerability Detail

The vulnerability identified as CVE-2026-4878 is a privilege escalation issue stemming from a Time-of-Check to Time-of-Use (TOCTOU) race condition in the cap_set_file() function of libcap. This flaw allows an attacker to exploit the timing of operations to gain unauthorized privileges, potentially leading to full system compromise. The ramifications of this vulnerability are significant, as it undermines the security model that libcap is designed to enforce.

How To Fix

Minimum fixed version

2.69-7.el10_1.1

This is the first release that contains the fix.

sudo dnf update libcap

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can limit the use of the affected functions in environments where the vulnerability may be exploited until the package is updated. However, this is not a permanent solution and should not replace applying the necessary updates.

Conclusion

The libcap library is essential for managing process privileges in a secure manner. The identified vulnerability (CVE-2026-4878) poses a significant risk of privilege escalation, necessitating immediate action to update affected packages. Users are encouraged to apply the patch and utilize tools like Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for libcap →

Share this vulnerability

FAQ

CVE-2026-4878 is a vulnerability in the libcap library that allows for privilege escalation due to a TOCTOU race condition in the cap_set_file() function.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to analyze your manifest file for vulnerabilities without requiring any signup.

The primary risk is that an attacker could exploit this vulnerability to gain unauthorized privileges, potentially leading to a full system compromise.

Yes, a patch is available in version 2.69-7.el10_1.1 and later for both libcap and libcap-devel packages.

If immediate updates are not possible, consider implementing temporary workarounds to limit the use of the affected functions until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for libcap.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.69-7.el10_1.1

This is the first release that contains the fix.

sudo dnf update libcap

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback