CVE-2026-58369

Woodpecker < 3.15.0 - Unauthenticated NULL Pointer Dereference in /api/orgs/lookup Enables Log-Flooding Denial of Service

Published Jun 30, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
Woodpecker before 3.15.0 registers the /api/orgs/lookup/*org_full_name endpoint without authentication middleware, and the LookupOrg handler unconditionally dereferences the session user (user.ForgeID, via ForgeFromUser) when selecting the forge to query. For an unauthenticated request session.User returns nil, so any unauthenticated HTTP request triggers a NULL pointer dereference in the handler. The panic is recovered by gin recovery middleware and the server continues serving (returning HTTP 500), but each request writes a multi-line panic stack trace to the error log. A low-bandwidth unauthenticated attacker can repeatedly probe the endpoint to flood the logs (about 37 lines per request), inflating disk usage and downstream log-ingestion cost and burying legitimate log events.

Analysis

AI-generated

Technical impact

An unauthenticated HTTP request to /api/orgs/lookup/*org_full_name in Woodpecker versions prior to 3.15.0 forces the LookupOrg handler to dereference a nil session user, causing a null‑pointer exception. The panic is caught by gin's recovery middleware, the server returns a 500 response, and the full stack trace is written to the error log with each request. Repeating this behavior floods the log file with about 37 lines per request, quickly consuming disk space and inflating the cost of downstream log ingestion services. The result is a denial‑of‑service condition in which legitimate log entries are buried and infrastructure resources are exhausted.

Affected Systems

Woodpecker CI (woodpecker-ci:woodpecker) version 3.14 and earlier are vulnerable. The issue was discovered in a commit on October 13, 2023, and a fix was included in the 3.15.0 release. Systems running any version below 3.15.0 without appropriate access controls to the /api/orgs/lookup endpoint are affected.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity, and the vulnerability is accessible without authentication, making exploitation trivial for any external actor with network visibility to the server. While the EPSS score is not recorded, the lack of authentication and the straightforward nature of the attack vector suggest a non‑negligible exploitation probability. The vulnerability is not currently listed in CISA's KEV catalog, but the potential for resource exhaustion and cost inflation warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Woodpecker 3.15.0 or later, which adds authentication middleware to /api/orgs/lookup and removes the null‑pointer dereference.
  • If an upgrade cannot be performed immediately, block or restrict the /api/orgs/lookup endpoint to authenticated users via network ACLs, reverse proxy rules, or an admission controller that enforces authentication before the request reaches the application.
  • Implement log rotation and apply a hard limit on log file size to prevent the log flooding from exhausting disk space and to keep legitimate logs from being buried.

Generated by OpenCVE AI on June 30, 2026 at 17:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Woodpecker before 3.15.0 registers the /api/orgs/lookup/*org_full_name endpoint without authentication middleware, and the LookupOrg handler unconditionally dereferences the session user (user.ForgeID, via ForgeFromUser) when selecting the forge to query. For an unauthenticated request session.User returns nil, so any unauthenticated HTTP request triggers a NULL pointer dereference in the handler. The panic is recovered by gin recovery middleware and the server continues serving (returning HTTP 500), but each request writes a multi-line panic stack trace to the error log. A low-bandwidth unauthenticated attacker can repeatedly probe the endpoint to flood the logs (about 37 lines per request), inflating disk usage and downstream log-ingestion cost and burying legitimate log events.
Title Woodpecker < 3.15.0 - Unauthenticated NULL Pointer Dereference in /api/orgs/lookup Enables Log-Flooding Denial of Service
First Time appeared Woodpecker-ci
Woodpecker-ci woodpecker
Weaknesses CWE-476
CPEs cpe:2.3:a:woodpecker-ci:woodpecker:*:*:*:*:*:*:*:*
Vendors & Products Woodpecker-ci
Woodpecker-ci woodpecker
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:06 PM
Reserved
Jun 30, 2026, 12:13 PM
Status
Deferred
Published
Jun 30, 2026, 5:16 PM
Modified
Oct 25, 2026, 9:10 PM