{"schema":"threatline.record/2","record":{"id":"CVE-2026-70402","aliases":["GHSA-pq8x-xpgp-rvmh"],"summary":"Gitea local code execution through writable Git hooks","details":"Gitea creates server-side Git hook directories and scripts with mode 0777 and relies on the process umask to restrict access. With a permissive umask such as 0000 or 0002, another local user who can reach the repository storage may modify a hook or add an executable to a writable hook directory. A later Git operation can execute that file as the Gitea service account.","categories":["Unclassified"],"product":"Gitea","vendor":"Gitea","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-70402","source_modified_at":"2026-10-14T15:03:17.928Z","fetched_at":"2026-10-23T18:48:36.087640Z","product":"Gitea","vendor":"Gitea","versions":[{"lessThanOrEqual":"1.27.2","status":"affected","version":"0","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"GitHub Advisory Database","source_url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","source_modified_at":"2026-08-29T19:16:02Z","fetched_at":"2026-10-23T19:58:35.668311Z","package":{"ecosystem":"go","name":"code.gitea.io/gitea"},"range":"<= 1.27.2"}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","source_modified_at":"2026-08-29T19:16:02Z","fetched_at":"2026-10-23T19:58:35.668311Z","package":{"ecosystem":"go","name":"code.gitea.io/gitea"},"version":"1.27.3"}],"cvss":5.8,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00189,"percentile":0.08153,"score_date":"2026-10-23"},"published_at":"2026-10-14T14:36:46.774Z","modified_at":"2026-10-14T15:03:17.928Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-70402","fetched_at":"2026-10-23T18:48:36.087640Z","source_modified_at":"2026-10-14T15:03:17.928Z"},{"source":"GitHub Advisory Database","url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","fetched_at":"2026-10-23T19:58:35.668311Z","source_modified_at":"2026-08-29T19:16:02Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-70402","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","GitHub Advisory Database","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh","tags":["vendor-advisory"]},{"source":"CVE List","url":"https://blog.gitea.com/release-of-1.27.3/","tags":["release-notes"]},{"source":"CVE List","url":"https://github.com/go-gitea/gitea/pull/39008","tags":["patch"]},{"source":"CVE List","url":"https://github.com/go-gitea/gitea/pull/39016","tags":["patch"]},{"source":"CVE List","url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.3","tags":["release-notes"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CISA ADP","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-14T14:55:28.839489Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-14T15:03:17.928Z","content_hash":"759e87036faf30ccbb6b60248da999027b8dc5b642bb36c5c1b22f480996fd2d"}}
