AploSec / Disclosures / CVE-2026-142243
Ncarlier webhookd 1.21.0 before 1.22.1 Path Traversal RCE via ResolveScript
CVE-2026-142243 · published 2026-12-02
In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). A fixed release is listed.
Summary
CVE-2026-142243 affects webhookd (Go) >= 1.21.0, < 1.22.1: Path Traversal RCE via ResolveScript (CWE-22). Fixed in 1.22.1. CVSS 4.0 base score 9.2 (Critical), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec), ashish-bhangale.
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
Upgrade webhookd to 1.22.1 or later. Releases in the affected range (>= 1.21.0, < 1.22.1) are vulnerable. See the linked advisory for details on affected release lines.
Timeline
- 2026-12-02 CVE published
References
- Referencehttps://github.com/ncarlier/webhookd/security/advisories/GHSA-9g3f-ppc3-jx8p
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/ncarlier-webhookd-1.21.0-before-1.22.1-path-traversal-rce-via-resolvescript
- Fix commithttps://github.com/ncarlier/webhookd/commit/9e6625444060735abea0c2bc250baff5d52c7537
- Vulnerable codehttps://github.com/ncarlier/webhookd/blob/v1.22.0/pkg/hook/helper.go#L11-L18
- Vulnerable codehttps://github.com/ncarlier/webhookd/blob/v1.22.0/pkg/hook/job.go#L197-L203
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142243
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-142243
- Severity
- Critical 9.2CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- webhookd
- Ecosystem
- Go
- Affected
- >= 1.21.0, < 1.22.1
- Fixed
- 1.22.1
- Weakness
- CWE-22
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finderashish-bhangalefinder