CVEsforgejoCVE-2026-119547Published Oct 30, 11:31 · Updated Oct 30, 11:31 UTC
4.3
MediumCVSS 3.1 · from VulnCheck
CVE-2026-119547

Forgejo through 15.0.11, 16.0.7, and 17.0.1 Information Disclosure via /api/v1/user/keys/{id}

forgejo · Authorization bypass via user key · CWE-639
Affectedforgejo
FixNo fix listed yet.
PublishedOct 30, 11:31 · VulnCheck
ScoredOct 30 · 4.3 · VulnCheck
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:09 UTC

What we know

No known exploitation. CISA KEV, checked 22:09 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker needs network access and an account. CVSS: network, low privileges.

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.

From VulnCheck

Affected and fixed versions

ProductAffectedFixed inforgejoup to 15.0.11–forgejo16.0.0 – 16.0.7–forgejo17.0.0 – 17.0.1–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

codeberg.org/forgejo/forgejo/src/tag/v17.0.1/routers/api/v1/user/key.go#L191 · codeberg.orgtechnical descriptioncodeberg.org/forgejo/forgejo/src/tag/v17.0.1/models/asymkey/ssh_key.go#L139-L143 · codeberg.orgtechnical descriptionabraxaslabs.tech/research/forgejo-keys-idor · abraxaslabs.techthird party advisorycodeberg.org/forgejo/forgejo · codeberg.orgproductVulnCheck Advisory: Forgejo through 15.0.11, 16.0.7, and 17.0.1 Information Disclosure via /api/v1/user/keys/{id} · vulncheck.comthird party advisory

Other CVEs in forgejo

All 7 →
5.5Forgejo through 15.0.11, 16.0.7, and 17.0.1 Path Traversal via restore-repo · CVE-2026-119546Oct 305.3Forgejo through 15.0.11, 16.0.7, and 17.0.1 SSRF via OpenID Discovery · CVE-2026-119545Oct 304.3Forgejo 13.0.0 through 16.0.4, when "[federation] ENABLED = true" is set, has a spoofing issue that affects identity integrity but does not allow account… · CVE-2026-90679Sep 13