Description
A vulnerability was found in Forgejo up to 15.0.4. This issue affects the function net.LookupIP of the file services/migrations/allowlist/is_migrate_allowed.go of the component Repository Migration Handler. Performing a manipulation results in server-side request forgery. The attack can be initiated remotely. The exploit has been made public and could be used. The patch is named b313bb83f5ff22bcc0378e0e0ca7bbd58303f168. It is recommended to apply a patch to fix this issue. The project maintainer explains: "I don't intend to backport this to v15 or v16 as it is a breaking change."
Published: 2026-08-30
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Server‑Side Request Forgery
Action: Apply Patch
AI Analysis

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.

Generated by OpenCVE AI on August 30, 2026 at 20:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor patch associated with commit b313bb83f5ff22bcc0378e0e0ca7bbd58303f168 to the Repository Migration Handler.
  • Upgrade Forgejo to a release newer than 15.0.4 where the SSRF bug is resolved.
  • If an upgrade is not feasible, disable the Repository Migration feature or restrict its use to trusted administrators only.
  • Monitor outbound DNS and HTTP traffic for unusual requests that could indicate exploitation of the SSRF endpoint.

Generated by OpenCVE AI on August 30, 2026 at 20:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 01 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 31 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 30 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description A vulnerability was found in Forgejo up to 15.0.4. This issue affects the function net.LookupIP of the file services/migrations/allowlist/is_migrate_allowed.go of the component Repository Migration Handler. Performing a manipulation results in server-side request forgery. The attack can be initiated remotely. The exploit has been made public and could be used. The patch is named b313bb83f5ff22bcc0378e0e0ca7bbd58303f168. It is recommended to apply a patch to fix this issue. The project maintainer explains: "I don't intend to backport this to v15 or v16 as it is a breaking change."
Title Forgejo Repository Migration is_migrate_allowed.go net.LookupIP server-side request forgery
First Time appeared Forgejo
Forgejo forgejo
Weaknesses CWE-918
CPEs cpe:2.3:a:forgejo:forgejo:*:*:*:*:*:*:*:*
Vendors & Products Forgejo
Forgejo forgejo
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-08-31T18:36:39.909Z

Reserved: 2026-08-29T19:03:24.577Z

Link: CVE-2026-82556

cve-icon Vulnrichment

Updated: 2026-08-31T18:36:34.043Z

cve-icon NVD

Status : Deferred

Published: 2026-08-30T18:17:00.563

Modified: 2026-08-31T20:56:08.800

Link: CVE-2026-82556

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-30T17:45:08Z

Links: CVE-2026-82556 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-30T20:30:03Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)