{"vuln_id":"CVE-2026-62336","aliases":["GHSA-xhv5-8fpq-g7hf"],"description":"qbee-agent: Local Privilege Escalation and Arbitrary File Tampering via Symlink Following in createFile helper","published_at":"2026-11-16T20:19:07.723000Z","modified_at":"2026-11-18T16:18:16.400000Z","first_seen_at":"2026-11-21T19:15:20.179984Z","severity":"high","severity_source":"nvd","cvss_score":8.5,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-22","CWE-59","CWE-367","CWE-377"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00178,"epss_percentile":0.07391,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-62336"},"matched_alias":null,"items":[{"id":10987,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-xhv5-8fpq-g7hf: qbee-agent: Local Privilege Escalation and Arbitrary File Tampering via Symlink Following in createFile helper","summary":"qbee-agent: Local Privilege Escalation and Arbitrary File Tampering via Symlink Following in createFile helper\n\nThis 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.\n\n### Impact\n\nAny managed device running qbee-agent up to the affected versions. The impact manifests in three distinct vectors:\n\n1. **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.\n\n2. **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.\n\n3. **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.\n\n### Patches\n\nThe 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.\n\nUsers should upgrade to version 2026.27 (or newer) to fully mitigate these vectors.\n\n### Workarounds\n\nIf upgrading immediately is not feasible, administrators can apply the following mitigations:\n\n1. 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.\n\n2. 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.\n\n3. 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 hom\n\nAffected: Go:go.qbee.io/agent\n\nFixed in: 0.0.0-20260615134032-0fdf8e411de5\n\nReferences:\nhttps://github.com/qbee-io/qbee-agent/security/advisories/GHSA-xhv5-8fpq-g7hf\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-62336\nhttps://github.com/qbee-io/qbee-agent/pull/131\nhttps://github.com/qbee-io/qbee-agent/commit/0fdf8e411de5d0c142ae2590cf1c54bdfc2e529a\nhttps://github.com/qbee-io/qbee-agent\nhttps://github.com/qbee-io/qbee-agent/releases/tag/2026.27","url":"https://osv.dev/vulnerability/GHSA-xhv5-8fpq-g7hf","published_at":"2026-11-17T20:48:02Z","updated_at":"2026-11-17T21:00:04.021633Z","fetched_at":"2026-11-21T19:15:55.946351Z","severity":"high","cvss_score":8.5,"epss":0.00178,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"go.qbee.io/agent","vuln_id":"CVE-2026-62336","vuln_ids":["CVE-2026-62336","GHSA-XHV5-8FPQ-G7HF"],"tags":["osv","go","fix-available"],"cluster_id":2360,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10987","html":"https://vulnwatch.ve1ve2.com/item/10987"}},{"id":2458,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-xhv5-8fpq-g7hf / CVE-2026-62336: qbee-agent: Local Privilege Escalation and Arbitrary File Tampering via Symlink Following in createFile helper","summary":"qbee-agent: Local Privilege Escalation and Arbitrary File Tampering via Symlink Following in createFile helper\n\nThis 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.\n\n### Impact\n\nAny managed device running qbee-agent up to the affected versions. The impact manifests in three distinct vectors:\n\n1. **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.\n\n2. **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.\n\n3. **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.\n\n### Patches\n\nThe 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.\n\nUsers should upgrade to version 2026.27 (or newer) to fully mitigate these vectors.\n\n### Workarounds\n\nIf upgrading immediately is not feasible, administrators can apply the following mitigations:\n\n1. 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.\n\n2. 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.\n\n3. 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 hom\n\nAffected packages: go:go.qbee.io/agent\nPatched: go.qbee.io/agent 0.0.0-20260615134032-0fdf8e411de5","url":"https://github.com/advisories/GHSA-xhv5-8fpq-g7hf","published_at":"2026-11-17T20:48:02Z","updated_at":"2026-11-17T20:48:03Z","fetched_at":"2026-11-21T19:15:18.416852Z","severity":"high","cvss_score":8.5,"epss":0.00178,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"go.qbee.io/agent","vuln_id":"CVE-2026-62336","vuln_ids":["CVE-2026-62336","GHSA-XHV5-8FPQ-G7HF"],"tags":["ghsa","go","CWE-22","CWE-59","CWE-367","CWE-377"],"cluster_id":2360,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2458","html":"https://vulnwatch.ve1ve2.com/item/2458"}},{"id":6262,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-62336: qbee-agent is the device agent component of the qbee.io IoT device management platform. Prior to 2026.27, the privileged createFile helper followed attacker-co…","summary":"qbee-agent is the device agent component of the qbee.io IoT device management platform. Prior to 2026.27, the privileged createFile helper followed attacker-controlled symbolic links during file creation. A local unprivileged user whose account is managed by the SSH Keys bundle could replace ~/.ssh with a link to /root/.ssh, causing the agent to write an authorized key for root. On systems using RAUC download mode with ineffective kernel symlink protection, the predictable /tmp/.bundle.raucb.part path could be linked to a system file and then overwritten or truncated during an update. A file-distribution destination beneath an attacker-controlled directory could similarly redirect the partial-download path so the agent changed ownership of a sensitive file. These vectors could result in root privilege escalation, arbitrary file modification, or denial of service. This issue is fixed in version 2026.27.\n\nReferences:\nhttps://github.com/qbee-io/qbee-agent/commit/0fdf8e411de5d0c142ae2590cf1c54bdfc2e529a\nhttps://github.com/qbee-io/qbee-agent/pull/131\nhttps://github.com/qbee-io/qbee-agent/releases/tag/2026.27\nhttps://github.com/qbee-io/qbee-agent/security/advisories/GHSA-xhv5-8fpq-g7hf","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62336","published_at":"2026-11-16T20:19:07.723000Z","updated_at":"2026-11-18T16:18:16.400000Z","fetched_at":"2026-11-21T19:15:31.482036Z","severity":"high","cvss_score":8.5,"epss":0.00178,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-62336","vuln_ids":["CVE-2026-62336","GHSA-XHV5-8FPQ-G7HF"],"tags":["CWE-22","CWE-59","CWE-367","CWE-377"],"cluster_id":2361,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6262","html":"https://vulnwatch.ve1ve2.com/item/6262"}}]}