CVE-2026-54371

attr < 2.6.0 Symlink Traversal Privilege Escalation via getfattr/setfattr

Published Jun 29, 2026 CVSS 4.0 · 8.4 High EPSS < 1% KEV · Not listed
Description
attr before version 2.6.0 contains a symlink traversal vulnerability in the getfattr and setfattr utilities that allows local attackers to escalate privileges by replacing a pathname component with a symbolic link during directory hierarchy traversal. Attackers who control a pathname component can redirect getfattr and setfattr operations to arbitrary files by substituting a symlink, leading to local privilege escalation when getfattr or setfattr is invoked by a privileged process over an attacker-controlled path.

Analysis

AI-generated

Technical impact

The vulnerability resides in the getfattr and setfattr utilities of the attr package prior to version 2.6.0. It allows a local attacker who can influence a pathname component to insert a symbolic link into the directory hierarchy. When a privileged process calls getfattr or setfattr with a path containing the attacker‑controlled symlink, the utility follows the link and operates on an arbitrary file. This permits a local attacker to modify or read attributes of files that should be protected, and therefore to execute actions with the privileges of the privileged process. The impact is an elevation of privileges with potential to compromise system integrity and confidentiality. This flaw is classified as CWE‑59, a Symlink Or Path Traversal vulnerability.

Affected Systems

The affected product is the attr utilities from the acl project. All releases of the attr package older than version 2.6.0 are vulnerable. This includes system installations that ship attr < 2.6.0, which may be part of various Linux distributions and other Unix-like operating systems.

Risk and Exploitability

The CVSS score of 8.4 marks the flaw as high severity. The EPSS score is not available, and it is not listed in the CISA KEV catalog. The attack requires local access to a pathname component; the attacker must have permission to create a symlink in a directory that will be traversed by a privileged instance of getfattr or setfattr. Because the utilities are often invoked by system processes or scripts with elevated privileges, a local attacker can achieve privilege escalation by crafting malicious paths. The combination of high CVSS and the ability to exploit the flaw via a local symlink makes the risk significant for systems that have not updated to a patched version.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update attr to version 2.6.0 or newer
  • If an update is delayed, ensure that getfattr and setfattr are run only with trusted, non‑interpolated paths and with the least privilege required
  • Configure the system to restrict write permissions on directories that may be traversed by getfattr/setfattr to prevent unauthorized symlink creation

Generated by OpenCVE AI on June 29, 2026 at 15:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Attr Project
Attr Project attr
CPEs cpe:2.3:a:attr_project:attr:*:*:*:*:*:*:*:*
Vendors & Products Attr Project
Attr Project attr
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Acl Project
Acl Project acl
Vendors & Products Acl Project
Acl Project acl
Type Values Removed Values Added
Description attr before version 2.6.0 contains a symlink traversal vulnerability in the getfattr and setfattr utilities that allows local attackers to escalate privileges by replacing a pathname component with a symbolic link during directory hierarchy traversal. Attackers who control a pathname component can redirect getfattr and setfattr operations to arbitrary files by substituting a symlink, leading to local privilege escalation when getfattr or setfattr is invoked by a privileged process over an attacker-controlled path.
Title attr < 2.6.0 Symlink Traversal Privilege Escalation via getfattr/setfattr
Weaknesses CWE-59
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 11, 2026, 12:08 PM
Reserved
Jun 12, 2026, 8:20 PM
Status
Deferred
Published
Jun 29, 2026, 2:16 PM
Modified
Oct 25, 2026, 9:10 PM
Severity
Important
Public date
Jun 29, 2026, 1:00 PM