Impact
A flaw in the Repository Migration Handler of Forgejo uses the standard net.LookupIP routine without proper validation, allowing an attacker to supply an arbitrary hostname or IP address. When the import endpoint processes the value, Forgejo resolves the address and may establish outbound connections to that target, enabling the execution of a server‑side request forgery. This can reveal internal DNS records, access internal services, or exfiltrate data through the outbound connection. Based on the description, it is inferred that the vulnerable API does not require authentication, allowing a remote actor to trigger the flaw from anywhere that can reach the migration endpoint.
Affected Systems
Forgejo installations with version 15.0.4 or earlier are affected because the SSRF logic remains unpatched in those releases. The vulnerability is confined to the migration component and will impact any instance that continues to run the old logic. The patch commit b313bb83f5ff22bcc0378e0e0ca7bbd58303f168 removes the unvalidated net.LookupIP call.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate severity. The EPSS score is not available, leaving exploitation likelihood uncertain, but the vulnerability is publicly disclosed and a patch exists. The exploit can be performed remotely against the migration API, and based on the description it is inferred that no special privileges are needed to trigger it. The vulnerability is not listed in CISA KEV, yet its remote trigger and SSRF nature justify careful monitoring.
OpenCVE Enrichment