Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2023-2603 EUVD-2023-34077GHSA-wp54-pwvg-rqq5

A vulnerability was found in libcap. This issue occurs in the _libcap_strdup() function and can lead to an integer overflow if the input st…

Published Jun 6, 2023 · Updated Dec 2, 2025 · Assigned by redhat

Description

A vulnerability was found in libcap. This issue occurs in the _libcap_strdup() function and can lead to an integer overflow if the input string is close to 4GiB.

Affected products

VendorProductAffectedFixed
— libcap NA —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcap2 1:2.66-4 —
Debian 13 libcap2 1:2.66-4 —
Debian 12 libcap2 1:2.66-4 —
Debian 11 libcap2 1:2.44-1+deb11u1 DLA-4092-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libcap2 1:2.44-1ubuntu0.22.04.1 USN-6166-1
Ubuntu 20.04 LTS libcap2 1:2.32-1ubuntu0.1 USN-6166-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libcap2 1:2.25-1.2ubuntu0.1~esm1 USN-6166-2
Ubuntu Pro 16.04 LTS libcap2 1:2.24-12ubuntu0.1~esm1 USN-6166-2
Ubuntu Pro 14.04 LTS libcap2 1:2.24-0ubuntu2+esm1 USN-6166-2
ReleasePackageFixed inAdvisory
RHEL 9 libcap +1 2.48-9.el9_2 RHSA-2023:5071
RHEL 8 libcap +1 2.48-5.el8_8 RHSA-2023:4524
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 EUS libcap +1 2.48-8.el9_0.1 RHSA-2024:0436
RHEL 8.6 EUS libcap +1 2.48-4.el8_6 RHSA-2023:7400

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libcap +1 2.48-9.el9_2 ALSA-2023:5071
AlmaLinux 8 libcap +1 2.48-5.el8_8 ALSA-2023:4524

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libcap 2.48-5.el8_8 RLSA-2023:4524
ReleasePackageFixed inAdvisory
SLES 15 SP5 libcap 2.63-150400.3.3.1 SUSE-SU-2023:2765-1
SLES 15 SP4 libcap 2.63-150400.3.3.1 SUSE-SU-2023:2765-1
SLES 12 SP5 libcap 2.26-14.9.1 SUSE-SU-2023:2764-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 libcap 2.26-14.9.1 SUSE-SU-2023:2764-1
SLE Real Time 15 SP3 libcap 2.26-150000.4.9.1 SUSE-SU-2023:2956-1
SLE Micro 5.4 libcap 2.63-150400.3.3.1 SUSE-SU-2023:2765-1
SLE Micro 5.3 libcap 2.63-150400.3.3.1 SUSE-SU-2023:2765-1
SLE Micro 5.2 libcap 2.26-150000.4.9.1 SUSE-SU-2023:2956-1
SLE Micro 5.1 libcap 2.26-150000.4.9.1 SUSE-SU-2023:2956-1
SUSE Manager Server 4.2 libcap 2.26-150000.4.9.1 SUSE-SU-2023:2956-1
SUSE Manager Proxy 4.2 libcap 2.26-150000.4.9.1 SUSE-SU-2023:2956-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 libcap 2.63-150400.3.3.1 SUSE-SU-2023:2765-1
openSUSE Leap 15.4 libcap 2.26-150000.4.9.1 SUSE-SU-2023:2956-1, SUSE-SU-2023:2765-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 libcap 2.63-150400.3.3.1 SUSE-SU-2023:2765-1
ReleasePackageFixed inAdvisory
Alpine v3.17 libcap 2.66-r1 —
Alpine v3.16 libcap 2.64-r1 —
Alpine v3.15 libcap 2.61-r1 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) libcap 2.60-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libcap +1 2.48-9.el9_2 ELSA-2023-5071
Oracle Linux 8 libcap +1 2.48-5.el8_8 ELSA-2023-4524

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 20

References