1. CVE archive
  2. 2025
  3. CVE-2025-32016

CVE-2025-32016

4.7 Medium severity CVSS v3.1 · source NVD CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N 4.7 – Medium

Description

Microsoft Identity Web is a library which contains a set of reusable classes used in conjunction with ASP.NET Core for integrating with the Microsoft identity platform (formerly Azure AD v2.0 endpoint) and AAD B2C. This vulnerability affects confidential client applications, including daemons, web apps, and web APIs. Under specific circumstances, sensitive information such as client secrets or certificate details may be exposed in the service logs of these applications. Service logs are intended to be handled securely. Service logs generated at the information level or credential descriptions containing local file paths with passwords, Base64 encoded values, or Client secret. Additionally, logs of services using Base64 encoded certificates or certificate paths with password credential descriptions are also affected if the certificates are invalid or expired, regardless of the log level. Note that these credentials are not usable due to their invalid or expired status. To mitigate this vulnerability, update to Microsoft.Identity.Web 3.8.2 or Microsoft.Identity.Abstractions 9.0.0.

Affected products

VendorProductVersionPlatform
azuread microsoft-identity-web >= 3.2.0, < 3.8.2 –

Vulnerability type

CWE-532 Insertion of Sensitive Information into Log File

The product writes sensitive information to a log file.

Impact on systems

ScopeImpact
Confidentiality Read Application Data
Logging sensitive user data, full path names, or system information often provides attackers with an additional, less-protected path to acquiring the information.

How to prevent it

Architecture and Design · Implementation Consider seriously the sensitivity of the information written into log files. Do not write secrets into the log files.
Distribution Remove debug log files before deploying the application into production.
Operation Protect log files against unauthorized read/write.
Implementation Adjust configurations appropriately when software is transitioned from a debug state to production.

All 1,339 CWE-532 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org