Original description
Forgejo through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through 17.0.1 contains an information disclosure vulnerability in the GetPublicKey API handler that lacks an ownership check on key lookups. Authenticated users with a read:user token or session can enumerate sequential key IDs to obtain titles, fingerprints and public key material of other users' SSH, deploy and principal keys.
Affected software
- Forgejo ≤ 15.0.11≥ 17.0.0 ≤ 17.0.1≥ 16.0.0 ≤ 16.0.7 repository or package match
Details
- Published
- 2026-10-30
- Last modified
- 2026-11-06
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N- CWE
- CWE-639
- EPSS (30-day exploit probability)
- 0.25% (percentile 17)
References
- cve.org/CVE-2026-119547
- nvd.nist.gov/vuln/detail/CVE-2026-119547
- codeberg.org/forgejo/forgejo/src/tag/v17.0.1/routers/api/v1/user/key.go#L191
- codeberg.org/forgejo/forgejo/src/tag/v17.0.1/models/asymkey/ssh_key.go#L139-L143
- abraxaslabs.tech/research/forgejo-keys-idor
- codeberg.org/forgejo/forgejo
- www.vulncheck.com/advisories/forgejo-through-15.0.11-16.0.7-and-17.0.1-information-disclos...
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.