Skip to main content

ncarlier webhookd CVE-2026-142243

| EUVDEUVD-2026-141587 CRITICAL
Path Traversal (CWE-22)
2026-12-02 VulnCheck GHSA-8h9m-rx6h-pfg6
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach webhookd HTTP endpoint and satisfy configured auth
  2. Delivery
    Send encoded ../ path to sibling interpreter
  3. Exploit
    Bypass strings.HasPrefix containment check
  4. Execution
    Interpreter runs with request body as argument
  5. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 1.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

webhookd 1.21.0 <1.22.1

Affected Packages

euvd webhookd fix: 1.22.1

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

Vendor (VulnCheck) PRIMARY 9.2 CRITICAL
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
vuln.today AI 8.1 HIGH

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

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
1.7%
Top 22% exploitable
Prevalence
Low
niche open-source Go webhook daemon, limited enterprise footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 1.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy