{"vuln_id":"GHSA-vx32-xf7g-9ghr","aliases":["CVE-2026-129237"],"description":"qbee-agent: Docker Compose build context Zip Slip writes outside context directory","published_at":"2026-11-16T22:35:40Z","modified_at":"2026-11-16T22:45:03.072290Z","first_seen_at":"2026-11-21T19:15:20.232397Z","severity":"medium","severity_source":"ghsa","cvss_score":5.4,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","cwe":["CWE-22"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-vx32-xf7g-9ghr"},"matched_alias":null,"items":[{"id":10992,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-vx32-xf7g-9ghr: qbee-agent: Docker Compose build context Zip Slip writes outside context directory","summary":"qbee-agent: Docker Compose build context Zip Slip writes outside context directory\n\n## Summary\n\n`qbee-agent` contains a Zip Slip vulnerability in `app/utils/tar.go`. The tar extractor checks whether an entry remains inside the destination directory with:\n\n```go\nstrings.HasPrefix(targetPath, destdirClean)\n```\n\nThis does not enforce a path separator boundary. If the destination directory is `/tmp/.../context`, a tar entry such as `../context-outside/payload.txt` cleans to `/tmp/.../context-outside/payload.txt` and still passes the prefix check. qbee-agent then creates the outside directory and writes the payload outside the intended extraction root.\n\nThe issue is reachable through the Docker Compose build context path when `UseContext` is enabled.\n\n## Details\n\nCode references below were verified against `qbee-io/qbee-agent` commit:\n\n- `1d8bdbb7422adb4ca563d3114cbe2817d6ba3581`\n\nAffected repository:\n\n- `qbee-io/qbee-agent`\n\nAffected files:\n\n- `app/utils/tar.go`\n- Docker Compose context path in `app/configuration/bundle_docker_compose.go`\n\nThe vulnerable extraction code:\n\n- `app/utils/tar.go:89-93`\n\n```go\ntargetPath := filepath.Clean(filepath.Join(destPath, header.Name))\ndestdirClean := filepath.Clean(destPath)\n\nif !strings.HasPrefix(targetPath, destdirClean) {\n    return fmt.Errorf(\"tar entry %s is outside of destination directory %s\", targetPath, destdirClean)\n}\n```\n\nThe file is then created at the accepted `targetPath`:\n\n- `app/utils/tar.go:96-109`\n\n```go\ncase tar.TypeDir:\n    if err := os.MkdirAll(targetPath, 0755); err != nil {\n        return err\n    }\ncase tar.TypeReg:\n    targetFile, err := os.Create(targetPath)\n```\n\nDocker Compose build contexts reach this extractor:\n\n- `app/configuration/bundle_docker_compose.go:238-270`\n\nThe context archive is downloaded and then unpacked into the compose project context directory with `utils.UnpackTar`.\n\nArchive source and role evidence:\n\n- `app/configuration/compose.go:14` defines the Docker Compose build context as the remote configuration field `Context string`.\n- `app/configuration/compose.go:26` enables this path with `UseContext`.\n- `app/configuration/file_manager.go:240-246` and `app/configuration/file_manager.go:281-287` show that context sources are resolved either from `file://` local files or from the Qbee file-manager API.\n- Qbee's Docker Compose documentation lists \"Build Context\" as a Docker Compose configuration option: https://docs.qbee.io/configuration-docker-compose.html\n- Qbee's RBAC documentation separates `configuration:manage` from `files:manage`, and maps \"Configure -> Modify configuration\" to `configuration:manage` while \"Files manager -> Write access\" maps to `files:manage`: https://docs.qbee.io/account-users-and-roles.html\n- Qbee's CI/CD documentation describes using a dedicated Qbee user with a role restricted to configuration changes to push and commit deployment configuration: https://docs.qbee.io/tutorial-iot-container-deployment-with-ci-cd-devops.html\n\nTrust-boundary requirement:\n\n- The vulnerable primitive is clear: qbee-agent writes a regular file outside \n\nAffected: Go:go.qbee.io/agent\n\nFixed in: 0.0.0-20260908095235-eb7875f0a849\n\nReferences:\nhttps://github.com/qbee-io/qbee-agent/security/advisories/GHSA-vx32-xf7g-9ghr\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-129237\nhttps://github.com/qbee-io/qbee-agent/pull/148\nhttps://github.com/qbee-io/qbee-agent/commit/eb7875f0a849cb33325956d0b75e27061d7a7fa3\nhttps://github.com/qbee-io/qbee-agent\nhttps://github.com/qbee-io/qbee-agent/releases/tag/2026.41","url":"https://osv.dev/vulnerability/GHSA-vx32-xf7g-9ghr","published_at":"2026-11-16T22:35:40Z","updated_at":"2026-11-16T22:45:03.072290Z","fetched_at":"2026-11-21T19:15:55.946354Z","severity":"medium","cvss_score":5.4,"epss":0.00474,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"go.qbee.io/agent","vuln_id":"CVE-2026-129237","vuln_ids":["CVE-2026-129237","GHSA-VX32-XF7G-9GHR"],"tags":["osv","go","fix-available"],"cluster_id":2379,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10992","html":"https://vulnwatch.ve1ve2.com/item/10992"}},{"id":2468,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-vx32-xf7g-9ghr / CVE-2026-129237: qbee-agent: Docker Compose build context Zip Slip writes outside context directory","summary":"qbee-agent: Docker Compose build context Zip Slip writes outside context directory\n\n## Summary\n\n`qbee-agent` contains a Zip Slip vulnerability in `app/utils/tar.go`. The tar extractor checks whether an entry remains inside the destination directory with:\n\n```go\nstrings.HasPrefix(targetPath, destdirClean)\n```\n\nThis does not enforce a path separator boundary. If the destination directory is `/tmp/.../context`, a tar entry such as `../context-outside/payload.txt` cleans to `/tmp/.../context-outside/payload.txt` and still passes the prefix check. qbee-agent then creates the outside directory and writes the payload outside the intended extraction root.\n\nThe issue is reachable through the Docker Compose build context path when `UseContext` is enabled.\n\n## Details\n\nCode references below were verified against `qbee-io/qbee-agent` commit:\n\n- `1d8bdbb7422adb4ca563d3114cbe2817d6ba3581`\n\nAffected repository:\n\n- `qbee-io/qbee-agent`\n\nAffected files:\n\n- `app/utils/tar.go`\n- Docker Compose context path in `app/configuration/bundle_docker_compose.go`\n\nThe vulnerable extraction code:\n\n- `app/utils/tar.go:89-93`\n\n```go\ntargetPath := filepath.Clean(filepath.Join(destPath, header.Name))\ndestdirClean := filepath.Clean(destPath)\n\nif !strings.HasPrefix(targetPath, destdirClean) {\n    return fmt.Errorf(\"tar entry %s is outside of destination directory %s\", targetPath, destdirClean)\n}\n```\n\nThe file is then created at the accepted `targetPath`:\n\n- `app/utils/tar.go:96-109`\n\n```go\ncase tar.TypeDir:\n    if err := os.MkdirAll(targetPath, 0755); err != nil {\n        return err\n    }\ncase tar.TypeReg:\n    targetFile, err := os.Create(targetPath)\n```\n\nDocker Compose build contexts reach this extractor:\n\n- `app/configuration/bundle_docker_compose.go:238-270`\n\nThe context archive is downloaded and then unpacked into the compose project context directory with `utils.UnpackTar`.\n\nArchive source and role evidence:\n\n- `app/configuration/compose.go:14` defines the Docker Compose build context as the remote configuration field `Context string`.\n- `app/configuration/compose.go:26` enables this path with `UseContext`.\n- `app/configuration/file_manager.go:240-246` and `app/configuration/file_manager.go:281-287` show that context sources are resolved either from `file://` local files or from the Qbee file-manager API.\n- Qbee's Docker Compose documentation lists \"Build Context\" as a Docker Compose configuration option: https://docs.qbee.io/configuration-docker-compose.html\n- Qbee's RBAC documentation separates `configuration:manage` from `files:manage`, and maps \"Configure -> Modify configuration\" to `configuration:manage` while \"Files manager -> Write access\" maps to `files:manage`: https://docs.qbee.io/account-users-and-roles.html\n- Qbee's CI/CD documentation describes using a dedicated Qbee user with a role restricted to configuration changes to push and commit deployment configuration: https://docs.qbee.io/tutorial-iot-container-deployment-with-ci-cd-devops.html\n\nTrust-boundary requirement:\n\n- The vulnerable primitive is clear: qbee-agent writes a regular file outside \n\nAffected packages: go:go.qbee.io/agent\nPatched: go.qbee.io/agent 0.0.0-20260908095235-eb7875f0a849","url":"https://github.com/advisories/GHSA-vx32-xf7g-9ghr","published_at":"2026-11-16T22:35:40Z","updated_at":"2026-11-16T22:35:40Z","fetched_at":"2026-11-21T19:15:18.416860Z","severity":"medium","cvss_score":5.4,"epss":0.00474,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"go.qbee.io/agent","vuln_id":"CVE-2026-129237","vuln_ids":["CVE-2026-129237","GHSA-VX32-XF7G-9GHR"],"tags":["ghsa","go","CWE-22"],"cluster_id":2379,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2468","html":"https://vulnwatch.ve1ve2.com/item/2468"}},{"id":6194,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-129237: qbee-agent is the device agent component of the qbee.io IoT device management platform. Prior to 2026.41, the unpackTar extraction logic in app/utils/tar.go va…","summary":"qbee-agent is the device agent component of the qbee.io IoT device management platform. Prior to 2026.41, the unpackTar extraction logic in app/utils/tar.go validates cleaned archive entry paths with strings.HasPrefix(targetPath, destdirClean) without enforcing a path-separator boundary. When UseContext enables the Docker Compose build context path in app/configuration/bundle_docker_compose.go, a less-privileged archive supplier with delegated configuration and/or file-manager access can provide a sibling-prefix traversal entry that passes the check, causing utils.UnpackTar to create directories and regular files outside the intended context extraction directory with qbee-agent process privileges, despite the supplier lacking authority to write those sibling files. In deployments where only full device or fleet administrators can provide Docker Compose context archives, this behavior is hardening rather than a crossed security boundary. The demonstrated impact is limited to nearby cache or project paths sharing the destination prefix, may affect integrity or availability of qbee-agent-managed Docker Compose state, and does not establish arbitrary absolute-path writes or direct code execution. This issue is fixed in version 2026.41.\n\nReferences:\nhttps://github.com/qbee-io/qbee-agent/commit/eb7875f0a849cb33325956d0b75e27061d7a7fa3\nhttps://github.com/qbee-io/qbee-agent/pull/148\nhttps://github.com/qbee-io/qbee-agent/releases/tag/2026.41\nhttps://github.com/qbee-io/qbee-agent/security/advisories/GHSA-vx32-xf7g-9ghr\nhttps://github.com/qbee-io/qbee-agent/security/advisories/GHSA-vx32-xf7g-9ghr","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129237","published_at":"2026-11-16T17:17:31.470000Z","updated_at":"2026-11-18T15:17:38.080000Z","fetched_at":"2026-11-21T19:15:31.481964Z","severity":"medium","cvss_score":5.4,"epss":0.00474,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-129237","vuln_ids":["CVE-2026-129237","GHSA-VX32-XF7G-9GHR"],"tags":["CWE-22"],"cluster_id":2380,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6194","html":"https://vulnwatch.ve1ve2.com/item/6194"}}]}