{"id":"CVE-2026-142243","state":"PUBLISHED","title":"Ncarlier webhookd 1.21.0 before 1.22.1 Path Traversal RCE via ResolveScript","description":"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.","publishedAt":"2026-12-02T16:49:59.197Z","updatedAt":"2026-12-02T22:35:11.025Z","severity":{"score":9.2,"label":"Critical","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["ncarlier webhookd"],"affected":[{"vendor":"ncarlier","product":"webhookd","packageURL":"pkg:golang/github.com/ncarlier/webhookd","defaultStatus":"unaffected","versions":[{"version":"1.21.0","status":"affected","lessThan":"1.22.1","versionType":"semver"}],"repo":"https://github.com/ncarlier/webhookd"}],"references":["https://github.com/ncarlier/webhookd/security/advisories/GHSA-9g3f-ppc3-jx8p","https://github.com/ncarlier/webhookd/commit/9e6625444060735abea0c2bc250baff5d52c7537","https://github.com/ncarlier/webhookd/blob/v1.22.0/pkg/hook/helper.go#L11-L18","https://github.com/ncarlier/webhookd/blob/v1.22.0/pkg/hook/job.go#L197-L203","https://www.vulncheck.com/advisories/ncarlier-webhookd-1.21.0-before-1.22.1-path-traversal-rce-via-resolvescript"],"weaknesses":["CWE-22"],"ingestedAt":"2026-12-02T22:38:06.035Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/142xxx/CVE-2026-142243.json","commit":"23669dfe9f35cce00649fa424f0d3d224056db77","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142243","state":"PUBLISHED","datePublished":"2026-12-02T16:49:59.197Z","dateUpdated":"2026-12-02T22:35:11.025Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-12-02T15:28:54.835Z"},"containers":{"cna":{"title":"Ncarlier webhookd 1.21.0 before 1.22.1 Path Traversal RCE via ResolveScript","descriptions":[{"lang":"en","value":"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":[{"vendor":"ncarlier","product":"webhookd","packageURL":"pkg:golang/github.com/ncarlier/webhookd","defaultStatus":"unaffected","versions":[{"version":"1.21.0","status":"affected","lessThan":"1.22.1","versionType":"semver"}],"repo":"https://github.com/ncarlier/webhookd"}],"references":[{"url":"https://github.com/ncarlier/webhookd/security/advisories/GHSA-9g3f-ppc3-jx8p","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-9g3f-ppc3-jx8p)"},{"url":"https://github.com/ncarlier/webhookd/commit/9e6625444060735abea0c2bc250baff5d52c7537","tags":["patch"]},{"url":"https://github.com/ncarlier/webhookd/blob/v1.22.0/pkg/hook/helper.go#L11-L18","tags":["technical-description"]},{"url":"https://github.com/ncarlier/webhookd/blob/v1.22.0/pkg/hook/job.go#L197-L203","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/ncarlier-webhookd-1.21.0-before-1.22.1-path-traversal-rce-via-resolvescript","name":"VulnCheck Advisory: Ncarlier webhookd 1.21.0 before 1.22.1 Path Traversal RCE via ResolveScript","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.2,"baseSeverity":"CRITICAL"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-12-02T16:49:59.197Z"},"datePublic":"2026-10-22T00:00:00.000Z","credits":[{"lang":"en","value":"Zachariah Mithani (AploSec)","type":"finder"},{"lang":"en","value":"ashish-bhangale","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ncarlier/webhookd/security/advisories/GHSA-9g3f-ppc3-jx8p","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-12-02T22:34:37.547226Z","id":"CVE-2026-142243","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-12-02T22:35:11.025Z"}}]}}}