Privilege Escalation Vulnerability in libcap: Important Security Update Required

libcap Updated 06 May 2026

Summary

06/05/2026
N/A
Yes i
Medium
6.7

RLSA-2026:13285: Important: libcap security update. Affects libcap versions < 0:2.48-6.el8_10.1. Fixed in 0:2.48-6.el8_10.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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Libcap is a crucial library that enables the management of POSIX.1e capabilities, allowing processes to have specific privileges without needing full root access. This library is widely used in various Linux distributions, including Rocky Linux, to enhance security by enabling fine-grained control over permissions. However, it is susceptible to vulnerabilities that can lead to privilege escalation, compromising system security.

Vulnerability Detail

The vulnerability identified as CVE-2026-4878 in libcap arises from a Time-of-Check to Time-of-Use (TOCTOU) race condition in the cap_set_file() function. This flaw allows an attacker to exploit the timing of checks and changes in file capabilities, potentially leading to unauthorized privilege escalation. If successfully exploited, an attacker could gain elevated privileges, allowing them to perform actions that should be restricted, thereby jeopardizing the integrity and confidentiality of the system.

How To Fix

Minimum fixed version

0:2.48-6.el8_10.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 restrict access to the affected functionalities of libcap until the package is updated. This may involve modifying permissions or using alternative methods to manage capabilities, but it is recommended to apply the patch as soon as possible for complete protection.

Conclusion

The libcap library is essential for managing capabilities in Linux systems, but the identified vulnerability (CVE-2026-4878) poses a serious risk of privilege escalation. It is crucial for users to update to the latest patched version to protect their systems from potential exploitation. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for vulnerabilities.

See every vulnerability recorded for libcap →

Share this vulnerability

FAQ

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

If exploited, this vulnerability can allow an attacker to gain elevated privileges, potentially compromising system security and allowing unauthorized actions.

You should update your libcap package to version 0:2.48-6.el8_10.1 or later to mitigate the vulnerability.

Yes, you can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software without requiring installation. Visit Vulert Scanner to check if your application is affected.

The CVSS score for this vulnerability is 6.7, indicating a significant risk that should be addressed promptly.

Related vulnerabilities

Recent vulnerabilities recorded for libcap.

How To Fix

Minimum fixed version

0:2.48-6.el8_10.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