{
  "id": "CVE-2026-20896",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-20896",
  "published_at": "2026-07-03T20:19:29.588Z",
  "title": "Gitea Docker image trusts spoofable reverse-proxy headers by default",
  "vendor": "Gitea",
  "product": "Gitea Open Source Git Server",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-07-02T00:22:55Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -1.8,
    "repo": "kaleth4/CVE-2026-20896",
    "source": "github"
  },
  "poc_repo_count": 8,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Gitea Docker image versions up to and including 1.26.2 use REVERSE_PROXY_TRUSTED_PROXIES=* by default, allowing any source IP to impersonate a user when reverse-proxy authentication headers such as X-WEBAUTH-USER are enabled.",
  "cwe": "CWE-284",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "kaleth4/CVE-2026-20896",
      "url": "https://github.com/kaleth4/CVE-2026-20896",
      "created_at": "2026-07-02T00:22:55Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-06-18T13:44:29Z"
    },
    {
      "repo": "rz1027/CVE-2026-20896",
      "url": "https://github.com/rz1027/CVE-2026-20896",
      "created_at": "2026-07-05T17:35:09Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 6,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-07-25T21:26:59Z"
    },
    {
      "repo": "szybnev/cve-2026-20896-gitea-poc",
      "url": "https://github.com/szybnev/cve-2026-20896-gitea-poc",
      "created_at": "2026-07-07T20:31:16Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 10,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-09-20T13:05:08Z"
    },
    {
      "repo": "XaocZenon/CVE-2026-20896",
      "url": "https://github.com/XaocZenon/CVE-2026-20896",
      "created_at": "2026-07-16T13:11:04Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 6,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-08-09T23:19:01Z"
    },
    {
      "repo": "EQSTLab/CVE-2026-20896",
      "url": "https://github.com/EQSTLab/CVE-2026-20896",
      "created_at": "2026-07-29T07:23:54Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-10-25T15:10:45Z"
    },
    {
      "repo": "judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass",
      "url": "https://github.com/judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass",
      "created_at": "2026-08-15T19:01:05Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-07-29T22:40:17Z"
    },
    {
      "repo": "yym8538/CVE-2026-20896",
      "url": "https://github.com/yym8538/CVE-2026-20896",
      "created_at": "2026-08-21T04:18:46Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-09-04T01:29:07Z"
    },
    {
      "repo": "Raincombat/CVE-2026-20896-Gitea-CTF",
      "url": "https://github.com/Raincombat/CVE-2026-20896-Gitea-CTF",
      "created_at": "2026-10-15T09:49:48Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "README gives an archive password"
      ],
      "status": "analyzed",
      "owner_created_at": "2023-09-11T04:19:21Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Gitea",
        "product": "Gitea Open Source Git Server",
        "ranges": [
          "\u003c= 1.26.2"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "code.gitea.io/gitea",
        "ranges": [
          "\u003c 1.26.3"
        ],
        "fixed_in": [
          "1.26.3"
        ],
        "ecosystem": "Go",
        "advisory": "GHSA-f75j-4cw6-rmx4"
      }
    ],
    "upgrade": [
      "Upgrade code.gitea.io/gitea to 1.26.3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-f75j-4cw6-rmx4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/go-gitea/gitea/pull/38151"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/go-gitea/gitea/releases/tag/v1.26.3"
      },
      {
        "kind": "Release notes",
        "url": "https://blog.gitea.com/release-of-1.26.3-and-1.26.4/"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-20896.yaml",
      "source": "nuclei",
      "title": "nuclei template: Gitea Docker Image \u003c= 1.26.2 - Reverse Proxy Header Authentication Bypass",
      "published_at": "2026-08-03T07:44:19Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/",
      "headers": [
        {
          "name": "Authorization",
          "value": "token {var}"
        },
        {
          "name": "X-Webauth-User",
          "value": "$user"
        }
      ],
      "ports": [
        3000,
        10017
      ],
      "protocol": "http",
      "repos": [
        "Raincombat/CVE-2026-20896-Gitea-CTF",
        "szybnev/cve-2026-20896-gitea-poc"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:81",
        "szybnev/cve-2026-20896-gitea-poc/poc.sh:56",
        "szybnev/cve-2026-20896-gitea-poc/poc.sh:72"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/v1/version",
      "ports": [
        3000,
        10017
      ],
      "protocol": "http",
      "repos": [
        "Raincombat/CVE-2026-20896-Gitea-CTF",
        "kaleth4/CVE-2026-20896"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "Raincombat/CVE-2026-20896-Gitea-CTF/README.md:171",
        "Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:15",
        "kaleth4/CVE-2026-20896/CVE-2026-20896-CHECKER.py:18"
      ]
    },
    {
      "method": "GET",
      "path_template": "/gitea-admin/private-proof/raw/branch/main/proof.txt",
      "headers": [
        {
          "name": "X-Webauth-User",
          "value": "gitea-admin"
        }
      ],
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "EQSTLab/CVE-2026-20896",
        "yym8538/CVE-2026-20896"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "EQSTLab/CVE-2026-20896/README.md:41",
        "yym8538/CVE-2026-20896/README.md:41"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/v1/user",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "token ../../../../api/v1/users/admin/tokens/spoof_bypass"
        }
      ],
      "user_agents": [
        "Mozilla/5.0 (X11; Linux x86_64; rv:109.0)"
      ],
      "protocol": "http",
      "repos": [
        "kaleth4/CVE-2026-20896"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "kaleth4/CVE-2026-20896/README.md:66"
      ]
    },
    {
      "method": "DELETE",
      "path_template": "/api/v1/users/ctfuser/tokens/{var})",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "Raincombat/CVE-2026-20896-Gitea-CTF"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:117"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/healthz",
      "ports": [
        3000
      ],
      "protocol": "https",
      "repos": [
        "judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass/README.md:47"
      ]
    },
    {
      "method": "GET",
      "path_template": "/ctfuser/secret-project/raw/branch/main/flag.txt",
      "headers": [
        {
          "name": "X-Webauth-User",
          "value": "ctfuser"
        }
      ],
      "ports": [
        3000,
        10017
      ],
      "protocol": "http",
      "repos": [
        "Raincombat/CVE-2026-20896-Gitea-CTF"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Raincombat/CVE-2026-20896-Gitea-CTF/WRITEUP.md:68",
        "Raincombat/CVE-2026-20896-Gitea-CTF/WRITEUP.md:85",
        "Raincombat/CVE-2026-20896-Gitea-CTF/WRITEUP.md:105"
      ]
    },
    {
      "method": "GET",
      "path_template": "/user/settings",
      "ports": [
        3000
      ],
      "protocol": "https",
      "repos": [
        "XaocZenon/CVE-2026-20896"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "XaocZenon/CVE-2026-20896/poc.py:43"
      ]
    },
    {
      "method": "POST",
      "path_template": "/",
      "headers": [
        {
          "name": "Authorization",
          "value": "token {var}"
        }
      ],
      "body_markers": [
        "\"content\"",
        "\"message\":\"Initialize challenge data\"",
        "\"branch\":\"main\""
      ],
      "content_type": "application/json",
      "ports": [
        3000,
        10017
      ],
      "protocol": "http",
      "repos": [
        "Raincombat/CVE-2026-20896-Gitea-CTF"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:101"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/user/repos",
      "headers": [
        {
          "name": "Authorization",
          "value": "token {var}"
        }
      ],
      "body_markers": [
        "\"name\":\"secret-project\"",
        "\"private\"",
        "\"auto_init\"",
        "\"default_branch\":\"main\""
      ],
      "content_type": "application/json",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "Raincombat/CVE-2026-20896-Gitea-CTF"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:52"
      ]
    },
    {
      "method": "PUT",
      "path_template": "/",
      "headers": [
        {
          "name": "Authorization",
          "value": "token {var}"
        }
      ],
      "body_markers": [
        "\"content\"",
        "\"sha\"",
        "\"message\":\"Update challenge data\"",
        "\"branch\":\"main\""
      ],
      "content_type": "application/json",
      "ports": [
        3000,
        10017
      ],
      "protocol": "http",
      "repos": [
        "Raincombat/CVE-2026-20896-Gitea-CTF"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:91"
      ]
    }
  ],
  "rules": []
}
