CVE-2026-142243: Ncarlier webhookd 1.21.0 before 1.22.1 Path Traversal RCE via ResolveScript
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Ncarlier webhookdto a version that resolves this vulnerability.Fixed in 1.22.1
Event History
Frequently Asked Questions
Which deployments are affected?
Ncarlier webhookd versions 1.21.0 before 1.22.1 are affected. Version 1.22.1 is outside the stated affected range.
What does an attacker need to exploit this issue?
The attacker must be able to send requests to a hook and satisfy the hook authentication configured for that hook. They can use an encoded ../ path that bypasses the scripts-directory containment check.
What can an attacker do after successful exploitation?
An attacker can cause webhookd to execute a program outside the configured hook scripts directory, including from a sibling directory that shares the scripts path prefix. The program runs as the webhookd user and receives the request body as input.
How can I identify potential exposure?
Check whether webhookd is running a version from 1.21.0 through before 1.22.1, and review hooks reachable by authenticated requesters. Exposure is particularly relevant where executable files exist in sibling directories whose paths share the configured scripts-directory prefix.