CVE-2026-145172: Erugo before 0.3.0 Authentication Bypass via Spoofable tusd Hook IP Check
Erugo before 0.3.0 contains an authentication bypass vulnerability in TusdHooksController::handleHook that allows unauthenticated attackers to call POST /api/tusd-hooks by passing a private-range source IP check. Attackers behind common reverse proxy or Docker deployments can forge post-finish events with chosen file metadata or post-terminate events deleting File and UploadSession records.
Other sources
Erugo before 0.3.0 contains an authentication bypass vulnerability in TusdHooksController::handleHook that allows unauthenticated attackers to call POST /api/tusd-hooks by relying solely on private source IP prefixes. Attackers whose requests are forwarded through a reverse proxy or Docker port mapping can forge post-finish events with chosen metadata or post-terminate events deleting File and UploadSession records.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.3.0
Event History
Frequently Asked Questions
Which deployments are most likely to be exposed?
Deployments where Erugo is behind a common reverse proxy or running in Docker are specifically identified as susceptible, because an attacker can forge the source IP information used by the hook endpoint's private-range check.
What does an attacker need to exploit this issue?
No authentication or user interaction is required. The attacker must be able to send a POST request to /api/tusd-hooks and spoof the source IP so it passes the private-range validation.
What can an attacker do after bypassing the check?
An attacker can forge post-finish events with attacker-chosen file metadata. They can also forge post-terminate events that delete File and UploadSession records.
What version fixes the issue?
Upgrade Erugo to version 0.3.0 or later. Versions before 0.3.0 are affected.