{"id":"CVE-2025-57813","aliases":["CVE-2025-57813","GHSA-27r7-3m9x-r533","GO-2025-3913"],"related":[],"kind":"vulnerability","state":"published","title":"Insertion of Sensitive Information into Log File in github.com/traPtitech/traQ","summary":"traQ is a messenger application built for Digital Creators Club traP. Prior to version 3.25.0, a vulnerability exists where sensitive information, such as OAuth tokens, are recorded in log files when an error occurs during the execution of an SQL query. An attacker could intentionally trigger an SQL error by methods such as placing a high load on the database. This could allow an attacker who has the authority to view the log files to illicitly acquire the recorded sensitive information. This vulnerability has been patched in version 3.25.0. If upgrading is not possible, a temporary workaround involves reviewing access permissions for SQL error logs and strictly limiting access to prevent unauthorized users from viewing them.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"traQ is a messenger application built for Digital Creators Club traP. Prior to version 3.25.0, a vulnerability exists where sensitive information, such as OAuth tokens, are recorded in log files when an error occurs during the execution of an SQL query. An attacker could intentionally trigger an SQL error by methods such as placing a high load on the database. This could allow an attacker who has the authority to view the log files to illicitly acquire the recorded sensitive information. This vulnerability has been patched in version 3.25.0. If upgrading is not possible, a temporary workaround involves reviewing access permissions for SQL error logs and strictly limiting access to prevent unauthorized users from viewing them.","source":"cvelist"},{"lang":"en","text":"### Impact\nA vulnerability exists where sensitive information, such as OAuth tokens, is recorded in log files when an error occurs during the execution of an SQL query.\nAn attacker could intentionally trigger an SQL error by methods such as placing a high load on the database. This could allow an attacker who has the authority to view the log files to illicitly acquire the recorded sensitive information.\n\n### Patch\nThis vulnerability was temporarily fixed by #2787 and will be completely resolved by #2788. \n\nThis issue may have caused OAuth tokens to be leaked to users who can view logs on traQ instances using versions prior to v3.25.0.\n\nWhile it is possible that OAuth tokens for both human users and Bots were leaked, revoking Bot access tokens is not recommended as it may cause errors. This issue will be resolved in a future update.\n\nCurrently, the recommended mitigation is to invalidate the OAuth tokens of human users only. To apply this measure, please execute the following SQL statement directly:\n```sql\nUPDATE oauth2_tokens SET deleted_at = NOW() WHERE deleted_at IS NULL AND scopes != \"bot\"\n```\n\n### Workaround\nIf you cannot apply the update immediately, as a temporary workaround, please review access permissions for SQL error logs and strictly limit access to prevent unauthorized users from viewing them.","format":"markdown","source":"ghsa"},{"lang":"en","text":"traQ Allows Insertion of Sensitive Information into Log File in github.com/traPtitech/traQ.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/traPtitech/traQ before v3.25.0.","format":"markdown","source":"go"},{"lang":"es","text":"traQ es una aplicación de mensajería desarrollada para Digital Creators Club traP. Antes de la versión 3.25.0, existía una vulnerabilidad que permitía registrar información confidencial, como tokens OAuth, en archivos de registro cuando se producía un error durante la ejecución de una consulta SQL. Un atacante podría generar intencionalmente un error SQL mediante métodos como sobrecargar la base de datos. Esto podría permitir que un atacante con autorización para ver los archivos de registro adquiera ilícitamente la información confidencial registrada. Esta vulnerabilidad se ha corregido en la versión 3.25.0. Si no es posible actualizar, una solución temporal consiste en revisar los permisos de acceso a los registros de errores SQL y limitar estrictamente el acceso para evitar que usuarios no autorizados los vean.","source":"nvd"}],"published":"2025-08-26T16:06:41.220Z","modified":"2026-06-17T09:43:29.097Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"version":"< 3.25.0","status":"affected"}],"vendor":"traPtitech","product":"traQ","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.25.0"}],"ecosystem":"Go","package":"github.com/traPtitech/traQ","purl":"pkg:golang/github.com/traPtitech/traQ","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/traPtitech/traQ","purl":"pkg:golang/github.com/traPtitech/traQ","source":"go"}],"references":[{"url":"https://github.com/traPtitech/traQ/security/advisories/GHSA-27r7-3m9x-r533","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/traPtitech/traQ/pull/2787","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/traPtitech/traQ/commit/ce5da94f5d5a8348f9ecdc82140b6f53b3721698","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57813","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/traPtitech/traQ/pull/2788","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/traPtitech/traQ","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3913","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-08-26T20:37:40.419Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-57813","url":"https://www.cve.org/CVERecord?id=CVE-2025-57813","licence":"CVE Terms of Use","modified":"2025-08-26T20:37:52.226Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-27r7-3m9x-r533","url":"https://github.com/advisories/GHSA-27r7-3m9x-r533","licence":"CC-BY-4.0","modified":"2025-08-29T21:03:36.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3913","url":"https://pkg.go.dev/vuln/GO-2025-3913","licence":"CC-BY-4.0","modified":"2025-08-29T15:42:12.290Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-57813","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57813","licence":"Public domain","modified":"2026-06-17T09:43:29.097Z"}],"updatedAt":"2026-11-25T22:59:03.701Z","epss":{"score":0.00502,"percentile":0.44529,"date":"2026-12-01T12:00:22.000Z"}}