Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach webhookd HTTP endpoint and satisfy configured auth
-
DeliverySend encoded ../ path to sibling interpreter
-
ExploitBypass strings.HasPrefix containment check
-
ExecutionInterpreter runs with request body as argument
-
ImpactExecute arbitrary code as webhookd user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The demonstrated unrestricted escape requires webhookd to be started with the valid but non-default '-hook-scripts .' option, which makes the containment prefix '.' and lets paths like '../../usr/bin/awk' pass the strings.HasPrefix check. Additional prerequisites: the HTTP service must be reachable; a suitable existing one-argument interpreter (e.g. /usr/bin/awk) must be present on the host; and the caller must satisfy any Basic-authentication or HTTP-signature middleware the operator configured (the report explicitly does not claim an authentication bypass). Limiting factors for defenders: the non-default scripts-directory configuration is the primary gate, exploitation is bounded to the webhookd service account's permissions (no root and no privilege escalation by itself), and operator-configured authentication further restricts who can reach the vulnerable handler. |
| Impact | Signals mostly align toward high priority but with an important scoping caveat. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) and the vuln.today 'act_now' decision label both treat this as network-reachable and high-impact (VC:H/VI:H/VA:H = full code execution as the service account). The AT:P (attack requirement present) and AC:H map directly to a stated precondition rather than an exploit-mechanism guess: the advisory confirms the demonstrated unrestricted escape requires the valid-but-non-default '-hook-scripts .' configuration. A complete working proof-of-concept (docker + curl, with observed 'id' output) is published in the GHSA advisory, so exploitability is proven, not theoretical. Countervailing: KEV status is not indicated in the input (no confirmed active exploitation) and no EPSS score was provided, so there is no probabilistic exploitation signal to weigh. Note a data tension - the GHSA body text says 'Fixed release: none known,' while the CVE range ('before 1.22.1'), the package metadata ('fixed in: 1.22.1'), and the referenced patch commit all confirm a fix exists in 1.22.1; treat 1.22.1 as the fixed version. Net: a real, patch-now priority for anyone running webhookd with 'hook-scripts .', but the non-default-config dependency means it is not a universal unauthenticated-RCE-against-default-install scenario. |
| Exploit ScenarioDerived | A caller who can reach the webhookd HTTP endpoint and satisfy any configured hook authentication sends a POST to an encoded traversal path (e.g. /%2e%2e/usr/bin/awk) with an interpreter payload in the request body, which webhookd executes outside the scripts directory as the webhookd user. A full working proof-of-concept exists in the GHSA advisory demonstrating direct code execution. The high attack complexity reflects the required non-default '-hook-scripts .' configuration and the presence of a suitable one-argument interpreter, not a timing or race condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Path traversal in ncarlier webhookd 1.21.0 through 1.22.0 lets a remote caller pass a percent-encoded '../' sequence that survives ResolveScript's strings.HasPrefix containment check, so the service executes a program outside the hook-scripts directory with the HTTP request body supplied as that program's first argument. The demonstrated unrestricted escape requires the valid but non-default '-hook-scripts .' setting, a reachable HTTP endpoint, an existing one-argument interpreter such as /usr/bin/awk, and satisfaction of any operator-configured Basic-auth or HTTP-signature middleware; the issue is not an authentication bypass and yields only the webhookd service account's privileges. The advisory publishes a proof-of-concept with reproduction steps and observed command output; no CISA KEV entry is associated, and vendor code fixes the flaw in 1.22.1 (package metadata: vulnerable >= 1.21.0, fixed in 1.22.1), with a priority label of act_now.
RemediationAI
Vendor-released patch: 1.22.1 - upgrade webhookd to 1.22.1 or later, which is the version identified in package metadata as the fix and which contains commit 9e66254 replacing the strings.HasPrefix containment check with a component-aware filepath.Rel check and rejecting decoded '.' and '..' path segments; the advisory is at https://github.com/ncarlier/webhookd/security/advisories/GHSA-9g3f-ppc3-jx8p. If upgrading immediately is not possible, stop starting the service with '-hook-scripts .' and instead point it at a dedicated absolute scripts directory, since the demonstrated unrestricted escape depends on that non-default configuration making the containment prefix '.'; note that this only addresses the reproduced variant and does not correct the underlying prefix-comparison flaw, which is why the patched release remains the complete fix. Because the flaw is reachable only by callers who satisfy any configured Basic-auth or HTTP-signature middleware, keep that authentication in place and restrict network access to the webhookd listener, accepting that authenticated callers retain the ability to trigger hooks by design. Also remove one-argument interpreters such as /usr/bin/awk from the service account's reachable executable set where operationally possible; the trade-off is that any legitimate hook depending on such a binary must be reimplemented. The advisory notes that with GODEBUG=httpmuxgo121=1 the demonstrated request returned HTTP 301 without execution, but this observed behavior is not a supported or tested mitigation and should not be relied on in place of upgrading.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
webhookd is a Go HTTP service that maps request paths to executable hook scripts. In pkg/api/index.go, triggerWebhook strips the leading slash from the decoded r.URL.Path and hands the remainder to hook.ResolveScript; in pkg/hook/helper.go that function joins and cleans the name against the hook directory and then validates containment with strings.HasPrefix(scriptPath, dir). Because a raw string prefix test is not path-component aware, a cleaned path that resolves outside the directory can still begin with the directory string when that string is '.', as with '-hook-scripts .' and a decoded '../../usr/bin/awk'. The accepted path is passed to exec.LookPath and exec.Command in pkg/hook/job.go, and the HTTP request body becomes the first argument of the selected program, which for an interpreter such as awk means attacker-supplied code. The root cause class is CWE-22 (improper limitation of a pathname to a restricted directory); the advisory's suggested fix replaces the prefix check with a component-aware filepath.Rel containment test and rejects decoded '.' and '..' segments, which is exactly what commit 9e66254 implements. Negative controls in the report show v1.20.2 returning HTTP 301 without execution, and v1.22.0 with GODEBUG=httpmuxgo121=1 also returning HTTP 301 without execution, indicating the escape also depends on the Go mux path-handling behavior in the affected releases.
Know when Webhookd gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable (AV:N) but requires the non-default '-hook-scripts .' config and an available interpreter, so AC:H; PR:N because default deployments impose no auth, and code runs as the unprivileged service account with no scope change (S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Ncarlier webhookd from 1.21.0 before 1.22.1 contains a path traversal vulnerability in ResolveScript() that allows remote attackers to execute programs outside the hook scripts directory by bypassing a strings.HasPrefix containment check. Attackers who satisfy configured hook authentication can send an encoded ../ path targeting a sibling directory sharing the scripts prefix, running executables with the request body as input as the webhookd user.
Technical POC Analysis
CWE-22 path traversal in github.com/ncarlier/webhookd.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical path-traversal vulnerability in webhookd (versions 1.21.0 through 1.22.0) could allow a remote caller to execute programs outside the intended hook-scripts directory, affecting any team operating this webhook automation service under a non-default configuration. Because webhookd frequently runs with credentials and network reach into internal systems, compromise could translate into unauthorized actions performed under the service account. Leadership should prioritize this given the critical severity, published proof-of-concept, and vendor's act_now guidance.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-141587
GHSA-8h9m-rx6h-pfg6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB