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:19130: Important: libcap security update. Affects libcap versions < 2.69-7.el10_2.1. Fixed in 2.69-7.el10_2.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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 and processes, enhancing security by limiting the privileges of applications. However, a recent vulnerability has been identified that could allow unauthorized privilege escalation, posing a significant risk to systems utilizing this library.

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 the system between the time the system checks a file's capabilities and the time it actually uses them. If successfully exploited, this could lead to unauthorized access to sensitive system resources or data.

How To Fix

Minimum fixed version

2.69-7.el10_2.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, consider restricting access to the affected functionality or implementing additional security measures to monitor and control privilege escalation attempts until the package can be updated.

Conclusion

The identified vulnerability in libcap poses a significant risk due to its potential for privilege escalation. It is crucial for users to update their packages to the latest patched version to mitigate this risk. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

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 check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor vulnerabilities without requiring any installation.

If exploited, this vulnerability could allow an attacker to gain unauthorized access to system resources, potentially leading to data breaches or system compromise.

Yes, a patch is available in version 2.69-7.el10_2.1 of the libcap and libcap-devel packages.

If immediate updates are not possible, consider implementing additional security measures to monitor and restrict access to the affected functionalities.

Related vulnerabilities

Recent vulnerabilities recorded for libcap.

How To Fix

Minimum fixed version

2.69-7.el10_2.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