HIGH · CVSS 3.1 8.2 EPSS 0.9% · 58th percentile CWE-22

CVE-2026-62331: praktor: Path traversal in Telegram file uploads allows writing outside the agent workspace uploads/ directory (stored instruction injection)

Published 2026-11-03 · Updated 2026-11-05 · Also known as GHSA-48v2-6jcm-fc99, GO-2026-6908

Summary

A path traversal vulnerability in praktor allows remote Telegram users to write files outside the intended uploads directory. Organizations using versions of praktor up to v0.9.0 should update to v0.9.1 immediately.

Who is affected

The flaw affects deployments where the praktor Telegram bot is enabled, as the application fails to sanitize filenames provided by users. An unauthenticated attacker can exploit this to perform stored instruction injection by writing malicious files, such as configuration or agent instruction files, directly into the workspace volume.

Exploitability

The vulnerability carries a high CVSS 3.1 base score of 8.2, reflecting its potential for significant integrity impact. It is remotely exploitable without authentication, though it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/mtzanidakis/praktor >= 0, < 0.9.1 0.9.1 go get github.com/mtzanidakis/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityLow
IntegrityHigh
AvailabilityNone

FAQ

Does this vulnerability require authentication to exploit?

No, by default the bot allows messages from any Telegram user unless an allowlist is configured, making it reachable without authentication.

What is the primary security risk of this path traversal?

The traversal allows an attacker to bypass the restricted uploads directory and overwrite sensitive files within the agent's workspace, leading to stored instruction injection.

Is this vulnerability actively being exploited in the wild?

There is no evidence of active exploitation, as the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Original advisory description
### Impact A remote Telegram user can write files to arbitrary paths inside an agent's persistent workspace volume (`praktor-wk-<workspace>`, mounted at `/workspace/agent`), escaping the documented `uploads/` directory. The attacker controls the Telegram document filename, which was concatenated into the destination path without sanitization (`internal/telegram/bot.go`, at both upload sites) and resolved with `path.Join`, which collapses `../` sequences. A filename like `../../../CLAUDE.md` resolved to the root of the agent workspace volume, outside `uploads/`. Because the agent workspace is the persistent working directory the Claude agent reads from and operates on across runs, writing outside `uploads/` lets an attacker plant or overwrite files the agent later consumes - e.g. `CLAUDE.md`, agent instruction/skill/hook files, or other config under `/workspace/agent`. This turns a file upload into a stored injection into the agent's instruction/execution surface (CWE-22 path traversal escalating to stored instruction injection). ### Reachability By default the bot has no user allowlist (`allow_from: []` means "allow all"), so the only precondition is that a user can message the bot. No authentication or prior privilege is required. ### Affected versions Through `v0.9.0` (and HEAD `3902d29`). ### Patched versions `v0.9.1`, containing PR #228. ### Workarounds Restrict `telegram.allow_from` to trusted user IDs to limit who can send uploads to the bot. Upgrading to `v0.9.1` is the recommended fix. ### Fix (defense in depth) - `internal/telegram/bot.go`: apply `path.Base()` to the attacker-controlled filename at both upload sites, stripping directory components and `..`. - `internal/container/manager.go`: `WriteVolumeBytes` now rejects any path that escapes `/vol` after `path.Join`, protecting future callers. ### Credit Reported privately by [tonghuaroot](https://github.com/tonghuaroot), who provided a detailed root-cause analysis, a deployed end-to-end proof of concept against the real `container.Manager`, and fix verification.

References

Source records: GHSA-48v2-6jcm-fc99, GO-2026-6908 (OSV.dev) · EPSS by FIRST, 2026-11-26.