Gogs Package Vulnerability: Potential Supply-Chain Attack Risk
An early warning has been issued regarding a potential vulnerability in the Gogs package that could allow attackers with repository write access to perform symlink attacks, leading to possible security breaches.
What happened
Reportedly, the Gogs package is vulnerable to a symlink attack where an attacker with repository write access can redirect writes through a previously-committed directory symlink. This could potentially lead to SSH footholds or remote code execution. The vulnerability appears to affect versions of Gogs introduced from version 0 and is fixed in version 0.14.3.
The issue is currently under investigation, and it is recommended that users upgrade to the latest version of Gogs and review repository access controls to prevent unauthorized write access. For more detailed information, consult the primary sources provided.
Professional software engineers assessing their exposure should check their Gogs installations against the affected version ranges and apply the necessary updates. Additionally, it is crucial to verify and tighten repository access controls to mitigate potential risks.
How 0Day mitigates this
gogs is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.