Privilege Escalation Vulnerability in libcap: Important Security Update

libcap Updated 26 May 2026

Summary

19/05/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:19346: Important: libcap security update. Affects libcap versions < 2.48-10.el9_8.1. Fixed in 2.48-10.el9_8.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 library designed for managing POSIX.1e capabilities, which allow fine-grained control over the privileges of processes. It is widely used in Unix-like operating systems to enhance security by limiting the capabilities of applications. However, a recent vulnerability has been identified that could allow unauthorized privilege escalation, posing a significant risk to system integrity.

Vulnerability Detail

The vulnerability arises 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 difference between checking a file's capabilities and using them, potentially leading to unauthorized privilege escalation. If successfully exploited, this could allow an attacker to gain elevated permissions, compromising the security of the entire system.

How To Fix

Minimum fixed version

2.48-10.el9_8.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 cap_set_file() function in their applications until the update is applied. Additionally, reviewing file permissions and capabilities can help mitigate the risk until a patch is implemented.

Conclusion

The identified vulnerability in libcap poses a serious risk of privilege escalation due to a TOCTOU race condition. It is crucial for users to update to the patched version to safeguard their systems. Utilizing tools like Vulert can help monitor for such vulnerabilities effectively.

See every vulnerability recorded for libcap →

Share this vulnerability

FAQ

The vulnerability is a privilege escalation issue caused by a TOCTOU race condition in the cap_set_file() function.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

If exploited, this vulnerability could allow an attacker to gain elevated privileges, potentially compromising the entire system's security.

Yes, a patch is available in version 2.48-10.el9_8.1 of the libcap and libcap-devel packages.

As a temporary measure, limit the use of the cap_set_file() function and review file permissions to reduce the risk until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for libcap.

How To Fix

Minimum fixed version

2.48-10.el9_8.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