CVE-2026-119547 Details
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.
An information disclosure vulnerability has been identified in Forgejo versions through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through 17.0.1. The vulnerability resides in the GetPublicKey API handler, which fails to perform an ownership check when retrieving key information. This allows authenticated users with a read:user token or session to enumerate key IDs and access titles, fingerprints, and public key materials of other users' SSH, deploy, and principal keys.
The vulnerability has been fixed in Forgejo version 17.0.1. Users should update to this version. Instructions for updating can be found in the Forgejo documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2026CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://abraxaslabs.tech/research/forgejo-keys-idor | CISA-ADP | ExploitTechnical Analysis |
| https://abraxaslabs.tech/research/forgejo-keys-idor | [email protected] | ExploitTechnical Analysis |
| https://codeberg.org/forgejo/forgejo | [email protected] | Source CodeVendor |
| https://codeberg.org/forgejo/forgejo/src/tag/v17.0.1/models/asymkey/ssh_key.go#L139-L143 | [email protected] | Source CodeVendor |
| https://codeberg.org/forgejo/forgejo/src/tag/v17.0.1/routers/api/v1/user/key.go#L191 | [email protected] | Source CodeVendor |
| https://www.vulncheck.com/advisories/forgejo-through-15.0.11-16.0.7-and-17.0.1-information-disclosure-via-api-v1-user-keys-id | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-639 | Authorization Bypass Through User-Controlled Key | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Forgejo | <= 15.0.11 (semver) >= 16.0.0, <= 16.0.7 (semver) >= 17.0.0, <= 17.0.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Oct 30, 2026 | New CVE Received | [email protected] |
Volerion