Insertion of Sensitive Information into Log File in github.com/go-viper/mapstructure
CVE-2025-52893
- github.com/go-viper/mapstructure
- github.com/go-viper/mapstructure/v2
- github.com/go-Viper/mapstructure/v2
Summary
OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secrets, certificates, and keys. OpenBao prior to version 2.3.0 may leak sensitive information in logs when processing malformed data. This is separate from the earlier HCSEC-2025-09/CVE-2025-4166. Like with HCSEC-2025-09, there is no known workaround except to ensure properly formatted requests from all clients. The underlying vulnerability exists in the github.com/go-viper/mapstructure package, which is used as a dependency by OpenBao. As a result, OpenBao is also affected. This issue affects github.com/go-viper/mapstructure package versions prior to 2.3.0.
- LOW
- NETWORK
- NONE
- UNCHANGED
- REQUIRED
- HIGH
- HIGH
- NONE
CWE-532 - Insertion of Sensitive Information into Log File
It's quite common for applications to save logs. For example, whenever a user requests a resource from a particular website, the web server writes information about the request to a log file. These files are helpful for identifying abnormal system activity, bugs, and evaluating the security controls of the application. Security of log files is critical for the overall security of the application and its confidential resources. An application that lacks appropriate logging levels can expose sensitive user data and system information stored on the log files to malicious users. This info can be exploited to compromise your system.
Advisory Timeline
- Published