github.com/argoproj/argo-workflows/v3
Affected
- introduced
0, fixed3.7.14(semver)
Fixed versions
3.7.14
Fix
- Fixed version
3.7.14go get github.com/argoproj/argo-workflows/[email protected]
Advisory
Also known as: BIT-argo-workflows-2026-42294, CVE-2026-42294, GO-2026-5462
Argo Vulnerable to Unauthenticated Memory Exhaustion (DoS) in Webhook Interceptor
Severity: Medium
Component: Webhook Interceptor (server/auth/webhook)
Vulnerability Type: Denial of Service (DoS)
Description
The Webhook Interceptor loads the entire request body into memory before authenticating the request or verifying its signature. This occurs on the /api/v1/events/ endpoint, which is publicly accessible (albeit intended for webhooks). An attacker can send a request with an extremely large body (e.g., multiple gigabytes), causing the Argo Server to allocate excessive memory, potentially leading to an Out-Of-Memory (OOM) crash and denial of service.
Vulnerable Code
In server/auth/webhook/interceptor.go:
func (i *WebhookInterceptor) addWebhookAuthorization(r *http.Request, kube kubernetes.Interface) error {
// ... basic checks ...
// Vulnerability: Reads entire body into memory unconditionally
buf, _ := io.ReadAll(r.Body)
defer func() { r.Body = io.NopCloser(bytes.NewBuffer(buf)) }()
// ... subsequent logic finds correct service account and secret ...
// ... verification happens later ...
}
The io.ReadAll call happens before the signature verification loop.
Impact
PoC (Conceptual)
POST /api/v1/events/some-namespaceContent-Length: 1000000000 (1GB) header.Recommendation
http.MaxBytesReader.High Basis: The source's own band: HIGH
0, fixed 3.7.14 (semver)3.7.14
3.7.14go get github.com/argoproj/argo-workflows/[email protected]4.0.0, fixed 4.0.5 (semver)4.0.5
4.0.5go get github.com/argoproj/argo-workflows/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0