Skip to main content
Menu
Advisories

Advisory

Unauthenticated artifact-to-repository oracle in raw Actions downloads

GHSA-F8PH-P9P5-VG2PPublished Updated GitHub

Description

The raw Actions artifact download endpoint looks up the artifact row before validating the signed URL. Without authentication, an invalid signature produces one response when the supplied global artifact ID belongs to the named repository (and is upload-confirmed or expired) and a different response when it does not. Because artifact IDs are global auto-incrementing integers, this lets an unauthenticated caller test whether a guessed artifact ID belongs to an already-named private repository.

Details

The signature check still protects artifact bytes; only the ordering of the row lookup and the signature check creates the distinguishable responses. The endpoint does not reveal whether the repository exists, since inaccessible and nonexistent repositories return the same status.

Impact

Unauthenticated confirmation of the association between an artifact ID and a known private repository. Artifact contents are not exposed.

Affected versions

Gitea <= 1.27.2.

Patches

Fixed in Gitea 1.27.3 (#39049, #39053).

Workarounds

None. Upgrade to 1.27.3.

Affected versions