HIGH · CVSS 4.0 EPSS 0.1% · 1th percentile CWE-22CWE-367CWE-377CWE-59

CVE-2026-62336: qbee-agent: Local Privilege Escalation and Arbitrary File Tampering via Symlink Following in createFile helper

Published 2026-11-17 · Updated 2026-11-23 · Also known as GHSA-xhv5-8fpq-g7hf, GO-2026-6989

Summary

A local privilege escalation and arbitrary file tampering vulnerability exists in the qbee-agent due to improper symlink handling in the createFile helper. Engineering teams and administrators managing devices with qbee-agent should upgrade to version 2026.27 or newer immediately.

Who is affected

Managed devices running qbee-agent up to the affected versions are vulnerable across three distinct vectors. Attackers with unprivileged local access can leverage symlinks in their home directories, predictable staging paths in /tmp, or file distribution configurations to escalate privileges to root, perform arbitrary file overwrites, or re-own system files.

Exploitability

The vulnerability requires local access with low privileges and no user interaction, but attack complexity is low and privileges required are low. The CVSS 4.0 base score is not computed, EPSS is 0.002 with a 0.074 percentile, and CISA Known Exploited Vulnerabilities status is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go go.qbee.io/agent >= 0, < 0.0.0-20260615134032-0fdf8e411de5 0.0.0-20260615134032-0fdf8e411de5 go get go.qbee.io/[email protected]

CVSS 4.0 vector

CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Attack vectorLocal
Attack complexityLow
Attack requirementsNone
Privileges requiredLow
User interactionNone
Confidentiality (vulnerable system)High
Integrity (vulnerable system)High
Availability (vulnerable system)High
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes the vulnerability in qbee-agent?

The vulnerability stems from improper symlink handling (CWE-59) and improper ownership management inside the qbee-agent file manager logic when creating files.

How can an attacker achieve root privilege escalation?

An unprivileged user can replace their ~/.ssh directory with a symlink pointing to /root/.ssh, causing the agent to write the server-provisioned public key directly into /root/.ssh/authorized_keys during a configuration apply.

What is the fixed version for this vulnerability?

Users should upgrade to version 2026.27 or newer to fully mitigate these vectors.

Original advisory description
This is a Local Privilege Escalation (LPE) vulnerability stemming from improper symlink handling (CWE-59: Link Following) and improper ownership management (CWE-282) inside the qbee-agent file manager logic. ### Impact Any managed device running qbee-agent up to the affected versions. The impact manifests in three distinct vectors: 1. **Primary Vector (Full Privilege Escalation to Root - Default Configuration)**: If an unprivileged user's account is managed by the SSH Keys bundle, they can replace or remove their own `~/.ssh` directory and create a symlink pointing to `/root/.ssh`. On the next configuration apply, qbee-agent follows the symlink and writes the user's server-provisioned public key directly into `/root/.ssh/authorized_keys`. Since the symlink resides inside the user's own home directory, kernel protections like `fs.protected_symlinks` do not block this execution. The attacker can then instantly log in as root via SSH. 2. **Secondary Vector (Arbitrary File Overwrite / DoS via RAUC Staging)**: On devices utilizing RAUC download mode, the agent uses a predictable, world-writable staging path (`/tmp/.bundle.raucb.part`). If `fs.protected_symlinks` is disabled `(0)`, an unprivileged user can symlink this path to a vital system file (e.g., `/etc/shadow` or `/etc/pam.d/*`), causing the agent to truncate or overwrite it with server-supplied update data during a RAUC update deployment. 3. **Tertiary Vector (Arbitrary File Re-ownership via File Distribution)**: If an operator configures a file-distribution/template destination under a directory owned by an unprivileged user, the attacker can create a symlink at the partial download path targeting a sensitive system file. The agent will then inadvertently execute `file.Chown()` on the targeted file, handing ownership over to the unprivileged attacker. ### Patches The vulnerability has been addressed by hardening file creation and directory traversal inside `app/configuration/file_manager.go`. Specifically, the agent now enforces `syscall.O_NOFOLLOW` and proper existence validation flags during privileged operations to prevent link resolution outside intended directories. Users should upgrade to version 2026.27 (or newer) to fully mitigate these vectors. ### Workarounds If upgrading immediately is not feasible, administrators can apply the following mitigations: 1. Disable the SSH Keys Bundle: Temporarily turn off SSH key management within the Qbee platform for non-trusted local accounts to eliminate the primary privilege escalation vector. 2. Restrict Local Home Directory Alterations: Enforce strict file permissions or monitoring on managed user home directories to block unprivileged users from deleting or replacing ~/.ssh with a symbolic link. 3. Enable Kernel Symlink Protection: Ensure that system-level symlink protections are active to mitigate the secondary `/tmp` vector by verifying that the following sysctl parameter is set to 1 (though note this does not fix the primary home directory vector): ```bash sysctl -w fs.protected_symlinks=1 ```

References

Source records: GHSA-xhv5-8fpq-g7hf, GO-2026-6989 (OSV.dev) · EPSS by FIRST, 2026-11-26.