CVE-2025-57813
JSON

5.9medium

Insertion of Sensitive Information into Log File in github.com/traPtitech/traQ

Severity
5.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.50% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-27r7-3m9x-r533GO-2025-3913

Description

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.

Affected

Product or packageVersionsReported by
traPtitech traQ< 3.25.0CVE List
github.com/traPtitech/traQ (Go)before 3.25.0, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-532

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

A 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. 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.

Patch

This vulnerability was temporarily fixed by #2787 and will be completely resolved by #2788.

This 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.

While 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.

Currently, the recommended mitigation is to invalidate the OAuth tokens of human users only. To apply this measure, please execute the following SQL statement directly:

UPDATE oauth2_tokens SET deleted_at = NOW() WHERE deleted_at IS NULL AND scopes != "bot"
Workaround

If 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.

Go Vulnerability Database

traQ Allows Insertion of Sensitive Information into Log File in github.com/traPtitech/traQ.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/traPtitech/traQ before v3.25.0.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-57813 changed 2025-08-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-27r7-3m9x-r533 changed 2025-08-29CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3913 changed 2025-08-29CC-BY-4.0
NVDCVE-2025-57813 changed 2026-06-17Public domain