The vulnerability allows an attacker with write access to any repository on a Gogs instance to access Git LFS objects from other, private repositories. This is due to a flaw in the LFS object upload process. When a user uploads an LFS object, Gogs checks if an object with the same Object ID (OID), a SHA256 hash of the content, already exists on the server. If it does, the system takes a shortcut (deduplication) and assumes the uploaded content is the same, linking the existing object to the attacker's repository without verifying the content of the upload. The patch addresses this by forcing a hash verification of the uploaded content even if the object already exists on disk. The analysis of the commit f35a767af74e05342bafc6fdda02c791816426f8 clearly shows the modification in the LocalStorage.Upload function in internal/lfsx/storage.go. The vulnerable code, which previously just discarded the request body, was replaced with code that calculates the hash of the incoming data and compares it to the OID. This confirms that LocalStorage.Upload is the vulnerable function.