{"id":"CVE-2026-70357","title":"Gitea validates a repository migration hostname against its network allow and block lists before invoking Git, but the Git subprocess independently resolves the hostname when connecting","summary":"Gitea validates a repository migration hostname against its network allow and block lists before invoking Git, but the Git subprocess independently resolves the hostname when connecting. An attacker who can start a migration and control …","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","cwe":["CWE-918"],"vendor":"gitea","product":"gitea","affected":["gitea < 28.0.0"],"patched":["gitea 28.0.0"],"published":"2026-10-06","updated":"2026-10-13","sourceUpdated":"2026-10-13T17:16:32.907","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-70357","references":[{"url":"https://blog.gitea.com/release-of-28.0.0/","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/pull/39426","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.0.0","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-p3pc-g8m5-hrrr","label":"88ee5874-cf24-4952-aea0-31affedb7ff2"}],"tags":["nvd","cve.org"],"epss":0.00367,"epssPercentile":0.30417,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-07T20:12:28.154573Z"},"ingestedAt":"2026-10-06T20:16:42.496Z","slug":"CVE-2026-70357","body":"## Overview\n\nGitea validates a repository migration hostname against its network allow and block lists before invoking Git, but the Git subprocess independently resolves the hostname when connecting. An attacker who can start a migration and control the destination's DNS can change the address between validation and connection to reach a blocked internal address. The affected path is the Git clone operation; validation in the migration HTTP client's dialer does not protect the independently connecting Git subprocess.\n\n## Affected\n\n- `gitea < 28.0.0`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `gitea 28.0.0`","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":217753,"id":"CVE-2026-70357","ts":1791406432205,"field":"cvss","old":null,"new":"7.5"},{"seq":217752,"id":"CVE-2026-70357","ts":1791406432205,"field":"severity","old":"none","new":"high"}]}