Advisory

GHSA-j6jp-78w8-34x6

Also known as: CVE-2026-30943, GO-2026-4696

Summary

Gokapi vulnerable to Privilege Escalation in File Replace

Details

Summary

An insufficient authorization check in the file replace API allows a user with only list visibility permission (UserPermListOtherUploads) to delete another user's file by abusing the deleteNewFile flag, bypassing the requirement for UserPermDeleteOtherUploads.

Impact

Any authenticated user with PERM_REPLACE (replace own files) and PERM_LIST (view other users' uploads) can delete any other user's file without needing PERM_DELETE.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-03-13 18:56 UTC
Modified
2026-03-24 21:16 UTC

Affected packages and fixes

github.com/forceu/gokapi

Go · All systems

Affected

  • introduced 0, fixed 2.2.4 (semver)

Fixed versions

2.2.4

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences