---
id: 2026-11-picoclaw-approval-hook-reload-fails-open-cve-2026-138106-fix-only-in-afjcjsbx-fork
title: "PicoClaw: a failed approval-hook reload leaves tools running with no approval (CVE-2026-138106); the fix is in the afjcjsbx fork, not sipeed/picoclaw"
date_disclosed: 2026-11-29
last_updated: 2026-11-29
severity: medium
status: active
ecosystems: [go, picoclaw, personal-agent, agent-framework]
tools_affected: ["sipeed/picoclaw through v0.3.1 with a process approval hook", "afjcjsbx/picoclaw v0.5.0 through v0.5.3 with a process approval hook"]
tags: [cve, vuldb, picoclaw, personal-agent, approval-bypass, fail-open, fork-only-fix, no-upstream-fix, stale-bot]
---

## TL;DR

In PicoClaw, a config reload that fails to restart the process approval hook still completes, and the gateway then runs tools with no approval, per [issue 3456](https://github.com/sipeed/picoclaw/issues/3456), tracked as [CVE-2026-138106](https://cveawg.mitre.org/api/cve/CVE-2026-138106). The issue tests `exec` and says file writes and cron command jobs share the gate. The record's fix, 0.5.4, exists only in the `afjcjsbx/picoclaw` fork. `sipeed/picoclaw` stops at v0.3.1 and has no fix. Restart after config changes and do not reload.

## What happened

A reporter opened [issue 3456](https://github.com/sipeed/picoclaw/issues/3456) on `sipeed/picoclaw` on 2026-11-04. The issue says a reload tears down the approval hook and starts the configured hooks again. If that start fails, the agent logs a warning, reports the reload as successful, and keeps serving with no hook mounted. The gate stays absent until the next successful reload or a restart. The issue lists affected versions as `<= 0.3.1` and no patched version.

No maintainer replied. The repository's stale bot labelled the issue on 2026-11-11 and closed it as not planned on 2026-11-18. The reporter wrote that they could not find a `SECURITY.md` or a private reporting entry.

VulDB published CVE-2026-138106 on 2026-11-29. The record and the upstream repository do not line up:

| Fact | `sipeed/picoclaw` | `afjcjsbx/picoclaw` |
|---|---|---|
| Stars, read 2026-11-29 | 30.2k | 68 |
| Newest tag on the Go module proxy | v0.3.1, 2026-06-26 | v0.5.7 |
| v0.5.3, the record's last affected version | does not exist | 2026-10-29 |
| v0.5.4, the record's fixed version | does not exist | 2026-11-08 |
| Fix commit `63bb557` and pull request 484 in the record's references | none | both |

The record's description says only "improper authorization" in `ReloadProviderAndConfig`. It names the vendor as Sipeed and says "Upgrading to version 0.5.4 is sufficient to resolve this issue." Its `affected` list is 0.5.0 through 0.5.3. Those are the fork's versions. The fork's README calls it the continuation of `sipeed/picoclaw`. Its [v0.5.4 release notes](https://github.com/afjcjsbx/picoclaw/releases/tag/v0.5.4) list a fix that keeps the previous approval hooks mounted when a reload fails.

VulDB scores the flaw 5.3 under CVSS 4.0 (`AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L`) and 6.3 under CVSS 3.1, read 2026-11-29. The issue's precondition is narrower than the vector: the hook must fail to start at reload time, for example through a missing binary or an invalid config.

## Am I affected?

You are affected if both are true:

- You run a build of `sipeed/picoclaw`, or of `afjcjsbx/picoclaw` below v0.5.4.
- A process approval hook is your tool gate, and the gateway reloads config at runtime.

Check which repository your binary or image was built from. An upgrade of `sipeed/picoclaw` cannot reach 0.5.4.

## If you are affected

1. Restart the gateway after any config change. A restart is one of the two events the issue says restores the gate.
2. After a reload, search the agent log for a hook start warning. Treat one as "tools ran ungated since that reload".
3. If tools ran ungated while the agent read untrusted input, follow [if-your-local-ai-agent-was-exploited.md](../playbooks/if-your-local-ai-agent-was-exploited.md).
4. Moving to the fork is a change of supplier. Read its commits before you build from it.

Steps 1, 2 and 4 are this file's caution. No vendor text gives steps.

## Prevention

- Do not rely on an approval hook as the only control for an agent that reads untrusted content. See [agent-sandboxing.md](../prevention/agent-sandboxing.md).
- Before acting on a CVE's "upgrade to" line, confirm the version exists in the repository you install from.

## Sources

- [CVE Services, CVE-2026-138106](https://cveawg.mitre.org/api/cve/CVE-2026-138106). Read 2026-11-29: CNA VulDB, published 2026-11-29, description, `affected` list, scores, references.
- [sipeed/picoclaw issue 3456](https://github.com/sipeed/picoclaw/issues/3456). Read 2026-11-29 through a summarizing fetch and paraphrased here: dates, state, bot comments, affected versions.
- [sipeed/picoclaw](https://github.com/sipeed/picoclaw) and [afjcjsbx/picoclaw](https://github.com/afjcjsbx/picoclaw). Read 2026-11-29: star counts, the fork's README.
- [afjcjsbx/picoclaw v0.5.4 release](https://github.com/afjcjsbx/picoclaw/releases/tag/v0.5.4). Read 2026-11-29 through a summarizing fetch.
- Go module proxy (`proxy.golang.org/github.com/<owner>/picoclaw/@v/list` and `<version>.info`). Read 2026-11-29: tags and dates for both module paths.
- Single source for the flaw: the reporter's issue, repeated by the CNA record. Sipeed has published nothing.
