{
  "id": "cve-2025-64175",
  "title": "Gogs recovery-code validation permits cross-account two-factor bypass",
  "product": "Gogs",
  "ai_system": "GPT-5",
  "organization": "OpenAI Security Research / Gogs maintainers",
  "summary": "Gogs recovery-code validation ignored the authenticating user ID and searched globally for any unused code. An attacker who already knows a victim’s username and password could enter an unused recovery code from the attacker’s own account during the victim’s login, bypassing the victim’s second factor and logging in as that victim.",
  "ai_role": "The Gogs advisory embeds an OpenAI Security Research report naming OpenAI as discoverer and gives the case-specific timeline “Discovered via GPT5” followed by PoC reproduction and confirmation. The report does not establish autonomous discovery or a more detailed model workflow.",
  "disclosure_date": "2026-02-06",
  "ai_attribution_date": "2026-02-06",
  "classification": "disclosure",
  "classification_note": "The public maintainer advisory was published 2026-02-06. The report documents PoC reproduction; it does not report exploitation in the wild or establish whether defenders knew of the flaw before discovery.",
  "cves": [
    "CVE-2025-64175"
  ],
  "source_url": "https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj",
  "ai_source_url": "https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj",
  "advisory_url": "https://github.com/gogs/gogs/commit/d568e04",
  "remediation": "fix documented",
  "remediation_note": "The upstream commit scopes the recovery-code query to the authenticating user and marks that user’s code used. The maintainer advisory lists versions >=0.11.19 and <=0.13.3 as affected and 0.13.4 as patched.",
  "checked_date": "2026-11-17",
  "impacts": [
    {
      "cves": [
        "CVE-2025-64175"
      ],
      "consequences": [
        "authentication bypass"
      ],
      "conditions": "Attacker must already know the victim’s username and password, and the victim account must have two-factor authentication enabled. An unused recovery code belonging to another account can then complete the victim’s login.",
      "exploitation": "The embedded report describes a reproduced proof of concept; it does not report exploitation in the wild.",
      "source_url": "https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj",
      "checked_date": "2026-11-17"
    }
  ]
}
