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.
Published: 2026-06-29
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 29 Jun 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Acl Project
Acl Project acl
Vendors & Products Acl Project
Acl Project acl

Mon, 29 Jun 2026 13:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-06-29T12:39:23.594Z

Reserved: 2026-06-12T20:20:02.948Z

Link: CVE-2026-54371

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-29T18:15:03Z

Weaknesses
  • CWE-59

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