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:12441: Important: libcap security update. Affects libcap versions < 2.48-10.el9_7.1. Fixed in 2.48-10.el9_7.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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Libcap is a library designed for managing POSIX.1e capabilities, which allow fine-grained control over the privileges of processes in Unix-like operating systems. It enables users to set and get capabilities for files, enhancing security by allowing specific privileges without granting full root access. However, a recent vulnerability has been identified that could allow unauthorized privilege escalation, posing a significant risk to system security.

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 can be exploited by an attacker to gain elevated privileges by manipulating the state of a file between the time it is checked for permissions and the time it is used. If successfully exploited, this could allow an attacker to execute arbitrary code with higher privileges, potentially compromising the entire system.

How To Fix

Minimum fixed version

2.48-10.el9_7.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 measure, you can restrict access to the affected functions or limit the use of libcap in sensitive applications until the update is applied. However, the best course of action is to apply the security update as soon as possible.

Conclusion

The identified vulnerability in libcap poses a serious risk of privilege escalation, which can be exploited by attackers to gain unauthorized access to systems. It is crucial to update to the latest patched version to safeguard against potential exploits. Regular monitoring and vulnerability management practices, such as using tools like Vulert, can help maintain system security.

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 open-source vulnerabilities in your software. By uploading your manifest file, you can check for vulnerabilities without needing to install any software.

If exploited, this vulnerability could allow an attacker to gain elevated privileges, potentially leading to unauthorized access and control over the system.

Yes, a patch is available in the form of an updated version of libcap and libcap-devel. Users should update to version 2.48-10.el9_7.1 or later.

If you cannot apply the update right away, consider implementing access restrictions to the affected functions as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libcap.

How To Fix

Minimum fixed version

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