Improper Access Control Affecting libcap package, versions <0:2.54-1.amzn2.0.3


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Access Control vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-LIBCAP-9514515
  • published26 Mar 2025
  • disclosed18 Feb 2025

Introduced: 18 Feb 2025

CVE-2025-1390  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 libcap to version 0:2.54-1.amzn2.0.3 or higher.
This issue was patched in ALAS2-2025-2796.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libcap package and not the libcap package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

The PAM module pam_cap.so of libcap configuration supports group names starting with “@”, during actual parsing, configurations not starting with “@” are incorrectly recognized as group names. This may result in nonintended users being granted an inherited capability set, potentially leading to security risks. Attackers can exploit this vulnerability to achieve local privilege escalation on systems where /etc/security/capability.conf is used to configure user inherited privileges by constructing specific usernames.

CVSS Base Scores

version 3.1