CVE-2025-1390
pam_cap: Fix potential configuration parsing error
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.1
pam_cap: Fix potential configuration parsing error
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.
- Record
CVE-2025-1390- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N - Weakness
- CWE-284
- Updated
- 2026-11-02
EUVDEUVD-2025-4857
6.1
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.
- Record
EUVD-2025-4857- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-cq92-4vj3-mcq8
6.1
The PAM module pam_cap.so of libcap configuration supports group names starting with “@”, during...
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.
- Record
GHSA-cq92-4vj3-mcq8- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N - Weakness
- CWE-284
- Updated
- 2026-11-02
NVD
6.1
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.
- Record
CVE-2025-1390- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N - Weakness
- CWE-284
- Updated
- 2026-11-02
OSVBELL-CVE-2025-1390
6.1
- Record
BELL-CVE-2025-1390- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2025-1390
6.1
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.
- Record
DEBIAN-CVE-2025-1390- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N - Updated
- 2026-11-02
Show 7 moreShow less
OSVOESA-2025-1243
6.1
libcap security update
This is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.
Security Fix(es):
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.(CVE-2025-1390)
- Record
OESA-2025-1243- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-1390
6.1
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.
- Record
UBUNTU-CVE-2025-1390- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N - Updated
- 2026-11-02
OSVAZL-56916 No score
CVE-2025-1390 affecting package libcap for versions less than 2.60-3
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.
- Record
AZL-56916- Updated
- 2026-11-02
OSVAZL-57034 No score
CVE-2025-1390 affecting package libcap for versions less than 2.69-2
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.
- Record
AZL-57034- Updated
- 2026-11-05
OSV No score
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.
- Record
CVE-2025-1390- Updated
- 2026-11-02
OSVMGASA-2025-0082 No score
Updated libcap packages fix security vulnerability
pam_cap: Fix potential configuration parsing error. (CVE-2025-1390)
- Record
MGASA-2025-0082- Updated
- 2026-11-02
OSVUSN-7287-1 No score
libcap2 vulnerability
Tianjia Zhang discovered the libcap2 PAM module pam_cap incorrectly handled parsing group names in the configuration file. This could result in certain users being granted capabilities, contrary to expectations.
- Record
USN-7287-1- Updated
- 2026-11-02
Affected products
- openanolis anolis os
- siemens ruggedcom rst2428p
- siemens scalance xc-300/xr-300/xc-400/xr-500wg/xr-500 family
- siemens scalance xch328
- siemens scalance xcm324
- siemens scalance xcm328
- siemens scalance xcm332
- siemens scalance xrh334 (24 v dc, 8xfo, cc)
- siemens scalance xrm334 (230 v ac, 12xfo)
- siemens scalance xrm334 (230 v ac, 8xfo)
- siemens scalance xrm334 (230v ac, 2x10g, 24xsfp, 8xsfp+)
- siemens scalance xrm334 (24 v dc, 12xfo)
Show 8 moreShow less
- siemens scalance xrm334 (24 v dc, 8xfo)
- siemens scalance xrm334 (24v dc, 2x10g, 24xsfp, 8xsfp+)
- siemens scalance xrm334 (2x230 v ac, 12xfo)
- siemens scalance xrm334 (2x230 v ac, 8xfo)
- siemens scalance xrm334 (2x230v ac, 2x10g, 24xsfp, 8xsfp+)
- siemens simatic s7-1500 cpu 1518-4 pn/dp mfp
- siemens simatic s7-1500 cpu 1518f-4 pn/dp mfp
- siemens siplus s7-1500 cpu 1518-4 pn/dp mfp
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libcapAzure Linux:2 |
before 2.60-3 | 2.60-3 |
libcapAzure Linux:3 |
before 2.69-2 | 2.69-2 |
libcapAlpaquita:23 |
2.66-r0 and later | None known |
libcapAlpaquita:stream |
2.66-r0 up to 2.76-r0 | 2.76-r0 |
libcap2Debian:12 |
before 1:2.66-4+deb12u1, plus listed versions 1:2.66-4 |
1:2.66-4+deb12u1 |
libcap2Debian:13 |
before 1:2.73-4 | 1:2.73-4 |
libcap2Debian:14 |
before 1:2.73-4 | 1:2.73-4 |
libcap2Debian:11 From an advisory covering 3 CVEs |
before 1:2.44-1+deb11u1, plus listed versions 1:2.44-1 |
1:2.44-1+deb11u1 |
libcapMageia:9 |
before 2.52-5.1.mga9 | 2.52-5.1.mga9 |
libcapopenEuler:24.03-LTS |
before 2.69-4.oe2403sp1 | 2.69-4.oe2403sp1 |
Show 10 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libcapopenEuler:24.03-LTS-SP1 |
before 2.69-4.oe2403sp1 | 2.69-4.oe2403sp1 |
libcapopenEuler:20.03-LTS-SP4 |
before 2.32-8.oe2003sp4 | 2.32-8.oe2003sp4 |
libcapopenEuler:22.03-LTS-SP3 |
before 2.61-8.oe2203sp3 | 2.61-8.oe2203sp3 |
libcapopenEuler:22.03-LTS-SP4 |
before 2.61-8.oe2203sp4 | 2.61-8.oe2203sp4 |
libcap2Ubuntu:Pro:14.04:LTS |
All versions, plus listed versions 1:2.22-1.2ubuntu21:2.24-0ubuntu11:2.24-0ubuntu21:2.24-0ubuntu2+esm11:2.24-0ubuntu2+esm2 |
None known |
libcap2Ubuntu:Pro:16.04:LTS |
All versions, plus listed versions 1:2.24-91:2.24-121:2.24-12ubuntu0.1~esm11:2.24-12ubuntu0.1~esm2 |
None known |
libcap2Ubuntu:Pro:18.04:LTS |
All versions, plus listed versions 1:2.25-1.11:2.25-1.21:2.25-1.2ubuntu0.1~esm11:2.25-1.2ubuntu0.1~esm2 |
None known |
libcap2Ubuntu:20.04:LTS |
before 1:2.32-1ubuntu0.2, plus listed versions 1:2.25-21:2.27-11:2.32-11:2.32-1ubuntu0.1 |
1:2.32-1ubuntu0.2 |
libcap2Ubuntu:22.04:LTS |
before 1:2.44-1ubuntu0.22.04.2, plus listed versions 1:2.44-1build11:2.44-1build21:2.44-1build31:2.44-1ubuntu0.22.04.1 |
1:2.44-1ubuntu0.22.04.2 |
libcap2Ubuntu:24.04:LTS |
before 1:2.66-5ubuntu2.2, plus listed versions 1:2.66-4ubuntu11:2.66-5ubuntu11:2.66-5ubuntu21:2.66-5ubuntu2.1 |
1:2.66-5ubuntu2.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-1390 is a medium vulnerability (CVSS 6.1) in Openanolis Anolis Os, published February 18, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.18%, the 7th percentile. Fixed in libcap 2.60-3.
References
bugzilla.openanolis.cn/show_bug.cgi?id=18804
cert-portal.siemens.com/productcert/html/ssa-398330.html
cert-portal.siemens.com/productcert/html/ssa-089022.html
nvd.nist.gov/vuln/detail/CVE-2025-1390
github.com/advisories/GHSA-cq92-4vj3-mcq8
docs.bell-sw.com/security/cves/CVE-2025-1390
Show 7 moreShow less
security-tracker.debian.org/tracker/CVE-2025-1390
advisories.mageia.org/MGASA-2025-0082.html
bugs.mageia.org/show_bug.cgi?id=34048
ubuntu.com/security/notices/USN-7287-1
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1243
ubuntu.com/security/CVE-2025-1390
cve.org/CVERecord?id=CVE-2025-1390