{
  "id": "ghsa-744p-w4gc-m3gh",
  "title": "Trilogy#escape can permit unauthenticated SQL injection with multibyte string encodings",
  "product": "Trilogy Ruby database driver",
  "ai_system": "Anthropic OSS Scanner (model unspecified)",
  "organization": "Anthropic and project maintainers",
  "summary": "Trilogy#escape mishandles strings in Shift_JIS, Windows-31J, Big5, GBK, and GB18030 because a multibyte continuation byte can overlap ASCII syntax. Applications are affected when attackers control the encoding of strings being escaped, or when using unsupported connection encodings. The advisory identifies unauthenticated SQL injection in affected Rails and Rack applications.",
  "ai_role": "The primary Trilogy maintainer advisory labels the report AI-assisted and directly credits Anthropic OSS Scanner as discovering it under ANT-2026-9KOHJMNW. Anthropic’s primary scanner page says it scans with its strongest models; the Oct 8 launch post names Claude Mythos among those models. No item-specific model is stated.",
  "disclosure_date": "2026-10-29",
  "ai_attribution_date": "2026-10-29",
  "classification": "disclosure",
  "classification_note": "The primary maintainer published GHSA-744p-w4gc-m3gh on 2026-10-29 and directly credits Anthropic OSS Scanner (ANT-2026-9KOHJMNW); no CVE was assigned in the advisory.",
  "cves": [],
  "source_url": "https://github.com/trilogy-libraries/trilogy/security/advisories/GHSA-744p-w4gc-m3gh",
  "ai_source_url": "https://red.anthropic.com/oss-scanner/",
  "remediation": "fix documented",
  "remediation_note": "Trilogy 2.13.2 rejects the unsupported legacy connection encodings and fixes escaping. Projects unable to update can enforce encodings for strings passed to escape/query, as described by the advisory.",
  "advisory_url": "https://github.com/trilogy-libraries/trilogy/security/advisories/GHSA-744p-w4gc-m3gh",
  "checked_date": "2026-11-14",
  "impacts": [
    {
      "cves": [],
      "consequences": [
        "other"
      ],
      "conditions": "Apps are affected when attacker-influenced strings are escaped under non-ASCII-compatible encodings or the connection uses such an encoding; the advisory documents unauthenticated SQL injection in those cases but does not specify resulting reads or writes.",
      "exploitation": "Exploitation in the wild is not established by the cited description.",
      "source_url": "https://github.com/trilogy-libraries/trilogy/security/advisories/GHSA-744p-w4gc-m3gh",
      "checked_date": "2026-11-16"
    }
  ]
}
