CVE-2026-129237

CVE-2026-129237 is a medium-severity path traversal vulnerability in go.qbee.io/agent (go), affecting versions < 0.0.0-20260908095235-eb7875f0a849. It is fixed in 0.0.0-20260908095235-eb7875f0a849.

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: Docker Compose build context Zip Slip writes outside context directory

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:

strings.HasPrefix(targetPath, destdirClean)

This 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.

The issue is reachable through the Docker Compose build context path when UseContext is enabled.

Details

Code references below were verified against qbee-io/qbee-agent commit:

  • 1d8bdbb7422adb4ca563d3114cbe2817d6ba3581

Affected repository:

  • qbee-io/qbee-agent

Affected files:

  • app/utils/tar.go
  • Docker Compose context path in app/configuration/bundle_docker_compose.go

The vulnerable extraction code:

  • app/utils/tar.go:89-93
targetPath := filepath.Clean(filepath.Join(destPath, header.Name))
destdirClean := filepath.Clean(destPath)

if !strings.HasPrefix(targetPath, destdirClean) {
    return fmt.Errorf("tar entry %s is outside of destination directory %s", targetPath, destdirClean)
}

The file is then created at the accepted targetPath:

  • app/utils/tar.go:96-109
case tar.TypeDir:
    if err := os.MkdirAll(targetPath, 0755); err != nil {
        return err
    }
case tar.TypeReg:
    targetFile, err := os.Create(targetPath)

Docker Compose build contexts reach this extractor:

  • app/configuration/bundle_docker_compose.go:238-270

The context archive is downloaded and then unpacked into the compose project context directory with utils.UnpackTar.

Archive source and role evidence:

  • app/configuration/compose.go:14 defines the Docker Compose build context as the remote configuration field Context string.
  • app/configuration/compose.go:26 enables this path with UseContext.
  • 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.
  • Qbee's Docker Compose documentation lists "Build Context" as a Docker Compose configuration option: https://docs.qbee.io/configuration-docker-compose.html
  • 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
  • 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

Trust-boundary requirement:

  • The vulnerable primitive is clear: qbee-agent writes a regular file outside the intended context extraction directory.
  • The security boundary is present when the archive supplier is less privileged than the local qbee-agent process and is not supposed to write arbitrary sibling files in qbee-agent's Docker Compose cache/project area.
  • The public code and documentation support this boundary for tenants that delegate configuration and/or file-manager access to limited users or CI automation.
  • If a deployment allows only full device/fleet administrators to provide Docker Compose context archives, the finding should be treated as hardening for that deployment.

PoC

Two failing regression tests add.

The utility-level test proves the extractor bug directly:

  • app/utils/tar_test.go:132
  • Test_TarZipSlipSiblingPrefixBypass

Command:

wsl -e sh -lc 'cd /mnt/c/Users/kwak0/Documents/Qbee/targets/qbee-agent; /mnt/c/Users/kwak0/Documents/Qbee/.tools/go1.26.4-linux/go/bin/go test ./app/utils -run Test_TarZipSlipSiblingPrefixBypass -count=1 -v'

Observed result:

=== RUN   Test_TarZipSlipSiblingPrefixBypass
    tar_test.go:169: expected unpackTar to reject sibling-prefix traversal archive
    tar_test.go:174: path traversal: payload was written outside destPath at /tmp/.../context-outside/payload.txt; got "zip-slip-sibling-prefix"
--- FAIL: Test_TarZipSlipSiblingPrefixBypass (0.00s)
FAIL

The Docker Compose bundle-path test proves reachability through Compose.getContext():

  • app/configuration/bundle_docker_compose_context_zip_slip_test.go:13
  • Test_ComposeContextRejectsSiblingPrefixZipSlip

Command:

wsl -e sh -lc 'cd /mnt/c/Users/kwak0/Documents/Qbee/targets/qbee-agent; /mnt/c/Users/kwak0/Documents/Qbee/.tools/go1.26.4-linux/go/bin/go test ./app/configuration -run Test_ComposeContextRejectsSiblingPrefixZipSlip -count=1 -v'

Observed result:

=== RUN   Test_ComposeContextRejectsSiblingPrefixZipSlip
    bundle_docker_compose_context_zip_slip_test.go:66: expected compose context unpack to reject sibling-prefix traversal archive
    bundle_docker_compose_context_zip_slip_test.go:75: compose context path traversal wrote outside context dir at /tmp/.../cache/docker_compose/project-a/context-outside/payload.txt; got "compose-context-zip-slip"
--- FAIL: Test_ComposeContextRejectsSiblingPrefixZipSlip (0.00s)
FAIL

Impact

An attacker-controlled Docker Compose build context archive can create directories and regular files outside qbee-agent's intended context extraction directory, with qbee-agent process privileges.

The demonstrated impact is constrained path traversal:

  • It can write sibling-prefix paths such as cache/docker_compose/<project>/context-outside/payload.txt.
  • It does not demonstrate writing arbitrary paths such as /etc/passwd; those do not pass the current string-prefix check.
  • It can corrupt or alter files in nearby qbee-agent Docker Compose cache/project paths if their cleaned path shares the destination prefix.
  • It may affect integrity or availability of qbee-agent-managed Docker Compose state, depending on the project/cache layout.

This report does not claim direct RCE.

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.

CVE-2026-129237 has a CVSS score of 5.4 (Medium). The vector is network-reachable, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (0.0.0-20260908095235-eb7875f0a849); upgrading removes the vulnerable code path.

Affected versions

go.qbee.io/agent (< 0.0.0-20260908095235-eb7875f0a849)

Security releases

go.qbee.io/agent → 0.0.0-20260908095235-eb7875f0a849 (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

Upgrade go.qbee.io/agent to 0.0.0-20260908095235-eb7875f0a849 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2026-129237? CVE-2026-129237 is a medium-severity path traversal vulnerability in go.qbee.io/agent (go), affecting versions < 0.0.0-20260908095235-eb7875f0a849. It is fixed in 0.0.0-20260908095235-eb7875f0a849. Input manipulates file paths to reach files outside the intended directory, such as configuration or credential files.
  2. How severe is CVE-2026-129237? CVE-2026-129237 has a CVSS score of 5.4 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of go.qbee.io/agent are affected by CVE-2026-129237? go.qbee.io/agent (go) versions < 0.0.0-20260908095235-eb7875f0a849 is affected.
  4. Is there a fix for CVE-2026-129237? Yes. CVE-2026-129237 is fixed in 0.0.0-20260908095235-eb7875f0a849. Upgrade to this version or later.
  5. Is CVE-2026-129237 exploitable, and should I be worried? Whether CVE-2026-129237 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
  6. What actually determines whether CVE-2026-129237 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.
  7. How do I fix CVE-2026-129237? Upgrade go.qbee.io/agent to 0.0.0-20260908095235-eb7875f0a849 or later.

Other vulnerabilities in go.qbee.io/agent

Stop the waste.
Protect your environment with Kodem.