HIGH 7.1

CVE-2026-54371: Symlink Traversal in attr getfattr/setfattr Before 2.6.0

CVE-2026-54371 is a local privilege escalation flaw in the attr package (getfattr and setfattr tools) versions before 2.6.0. An attacker with local access can exploit a symlink traversal weakness to redirect these utilities to operate on arbitrary files. When a privileged process runs getfattr or setfattr over a path the attacker controls, the attacker can substitute a symbolic link in the directory chain to make the operation target a different file—effectively gaining elevated privileges without additional authentication.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.1 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weaknesses (CWE)
CWE-59
Affected products
0 configuration(s)
Published / Modified
2026-06-29 / 2026-07-15

NVD description (verbatim)

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.

7 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in how getfattr and setfattr handle pathname traversal during extended attribute operations. The flaw allows local privilege escalation via symlink substitution (CWE-59, Improper Link Resolution Before File Access). An attacker with local system access can craft a directory structure where they control one or more pathname components. By replacing a component with a symbolic link during hierarchy traversal, they redirect the utility's file operations to targets of their choosing. The impact is realized when a privileged user or process invokes getfattr or setfattr over an attacker-controlled path, allowing the attacker to read sensitive attributes from or write attributes to protected files.

Business impact

This vulnerability enables unprivileged local users to gain elevated privileges, potentially leading to unauthorized data access, system compromise, and lateral movement within an organization. The risk is particularly acute in multi-user systems, shared hosting environments, and container deployments where local access isolation is a security boundary. Affected organizations may experience unauthorized modification of system configuration, exposure of sensitive metadata, or full system compromise depending on what files and attributes an attacker targets.

Affected systems

The attr package (containing getfattr and setfattr) versions before 2.6.0 are vulnerable. Users should verify their current version and check vendor advisories for precise patch availability across distributions (Linux distributions typically package attr, so patch availability varies by distro and release cycle).

Exploitability

Exploitation requires local system access and does not require special privileges to initiate (though the impact is amplified if a privileged process invokes the vulnerable utilities over an attacker-controlled path). The attack is straightforward from a technical standpoint: replace a pathname component with a symlink and trigger the operation. No user interaction or network access is needed. The CVSS score of 7.1 reflects the local-only attack vector and the requirement for initial local presence, balanced against the high confidentiality and integrity impact.

Remediation

Upgrade the attr package to version 2.6.0 or later. Administrators should prioritize this patch for systems where unprivileged local users have shell access or can influence directory structures that privileged processes traverse. Interim mitigation includes restricting local shell access and auditing which processes run getfattr or setfattr with elevated privileges over user-writable paths.

Patch guidance

Apply patches from your distribution's package repository or from the upstream attr project. Verify that your system has upgraded to attr 2.6.0 or newer by running `getfattr --version` or `setfattr --version`. Test the patch in non-production environments first, particularly in systems where getfattr or setfattr are integrated into automation or privileged workflows. Consult your vendor's official security advisory for backport availability if you cannot immediately upgrade to the latest version.

Detection guidance

Monitor for suspicious symlink creation in directories where getfattr or setfattr operations are performed. Audit privilege escalation attempts and review logs for getfattr/setfattr invocations on non-standard paths or with unexpected privilege levels. File integrity monitoring tools may detect unexpected changes to protected files if an attacker successfully redirects an operation. Consider using AppArmor, SELinux, or similar mandatory access controls to restrict where these utilities can operate.

Why prioritize this

Although the CVSS score is 7.1 (HIGH), the attack requires local system access and the impact depends on the specific usage patterns and privilege model of your environment. Prioritize this patch for systems with multiple unprivileged users, shared hosting platforms, containerized environments, or any system where elevated-privilege processes rely on getfattr or setfattr. Lower priority for single-user or tightly controlled systems with minimal local access, but should not be deferred indefinitely.

Risk score, explained

The CVSS 3.1 score of 7.1 reflects a local-only attack vector (AV:L), no special access requirements beyond local presence (PR:L), straightforward exploitation (AC:L), no user interaction needed (UI:N), and scoped to the affected user's scope (S:U). The high impact is due to confidentiality (C:H) and integrity (I:H) damage potential—an attacker can read sensitive attributes or modify system metadata. Availability is not directly impacted (A:N). The score appropriately captures a privilege escalation risk in local multi-user scenarios while excluding scenarios requiring network access or prior privilege.

Frequently asked questions

Do I need to patch if my system is single-user or I run attr without privilege delegation?

If getfattr and setfattr are only ever invoked by the same user account, or if they are never run over user-writable directory structures, your immediate risk is reduced. However, patch anyway as a defense-in-depth measure and to avoid future changes in process architecture that might create exposure.

How do I know if my distribution has released a patch for attr 2.6.0?

Check your distribution's security advisories and package repository. Ubuntu, Red Hat, Debian, and others maintain security update pages. Run `apt list attr` (Debian/Ubuntu) or `yum list attr` (RHEL/CentOS) to see available versions, or consult your vendor's changelog.

Can this vulnerability be exploited remotely?

No. The CVSS vector specifies AV:L (Attack Vector: Local), meaning the attacker must already have local system access. Remote users cannot directly exploit this vulnerability unless they can first gain local access through another means.

What should I do if I cannot upgrade immediately?

Restrict local shell access to trusted users only, audit which processes run getfattr or setfattr with elevated privileges, and avoid invoking these utilities over paths where untrusted users can create symlinks. Consider using SELinux or AppArmor policies to constrain where these tools can operate.

This analysis is based on CVE-2026-54371 public disclosure data and CVSS vector information as of the publication date. Patch availability and remediation steps vary by distribution; consult your vendor's official security advisory for definitive guidance. No exploit code or detailed weaponization steps are provided. Testing patches in non-production environments is strongly recommended before production deployment. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).