Insertion of Sensitive Information into Log File Affecting github.com/traptitech/traq/cmd package, versions <3.25.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insertion of Sensitive Information into Log File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMTRAPTITECHTRAQCMD-12224290
  • published28 Aug 2025
  • disclosed26 Aug 2025
  • creditKira Kawai

Introduced: 26 Aug 2025

NewCVE-2025-57813  (opens in a new tab)
CWE-532  (opens in a new tab)

How to fix?

Upgrade github.com/traPtitech/traQ/cmd to version 3.25.0 or higher.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File via the process of logging error details during SQL query execution. An attacker can obtain sensitive information by intentionally causing SQL errors and subsequently accessing the log files where this data is recorded.

Note: This is only exploitable if the attacker has permission to view the log files.

Workaround

This vulnerability can be mitigated by strictly limiting access permissions to SQL error logs to prevent unauthorized viewing.

CVSS Base Scores

version 4.0
version 3.1