CVE-2026-62336

CVE-2026-62336 is a high-severity path traversal vulnerability in go.qbee.io/agent (go), affecting versions < 0.0.0-20260615134032-0fdf8e411de5. It is fixed in 0.0.0-20260615134032-0fdf8e411de5.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

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

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.

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):

sysctl -w fs.protected_symlinks=1

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.

Input manipulates file paths to reach files outside the intended directory, such as configuration or credential files. Typical impact: unauthorized file read or write outside the intended directory.

Affected versions

go.qbee.io/agent (< 0.0.0-20260615134032-0fdf8e411de5)

Security releases

go.qbee.io/agent → 0.0.0-20260615134032-0fdf8e411de5 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

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.

Frequently Asked Questions

  1. What is CVE-2026-62336? CVE-2026-62336 is a high-severity path traversal vulnerability in go.qbee.io/agent (go), affecting versions < 0.0.0-20260615134032-0fdf8e411de5. It is fixed in 0.0.0-20260615134032-0fdf8e411de5. Input manipulates file paths to reach files outside the intended directory, such as configuration or credential files.
  2. Which versions of go.qbee.io/agent are affected by CVE-2026-62336? go.qbee.io/agent (go) versions < 0.0.0-20260615134032-0fdf8e411de5 is affected.
  3. Is there a fix for CVE-2026-62336? Yes. CVE-2026-62336 is fixed in 0.0.0-20260615134032-0fdf8e411de5. Upgrade to this version or later.
  4. Is CVE-2026-62336 exploitable, and should I be worried? Whether CVE-2026-62336 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2026-62336 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2026-62336? Upgrade go.qbee.io/agent to 0.0.0-20260615134032-0fdf8e411de5 or later.

Other vulnerabilities in go.qbee.io/agent

Stop the waste.
Protect your environment with Kodem.