CVE-2025-45616
Java vulnerability analysis and mitigation

Overview

Incorrect access control vulnerability in the /admin/** API of brcc v1.2.0 was discovered on March 16, 2025, and is tracked as CVE-2025-45616. The vulnerability affects brcc versions up to and including v1.2.0, allowing attackers to gain unauthorized access to Admin rights through crafted requests. The issue has received a CVSS v3.1 base score of 9.8 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and is classified under CWE-284 (Improper Access Control) (NVD, Wiz).

Technical details

The vulnerability exists in the UserAuthFilter class within the com.baidu.brcc.config package, specifically in the doFilter function. The issue stems from improper handling of request.getRequestURI() which does not properly parse special symbols in the request path. When developers configure the servlet contextPath as a prefix that matches patterns in noAuths (e.g., /v2), it can lead to authorization bypass. For example, if the context-path is configured as /v2 in the application.yml and /v2 is listed in noAuths, accessing http://127.0.0.1:8080/v2/admin/queryUser will expose private information to unauthorized users (GitHub Issue).

Impact

The vulnerability allows unauthorized attackers to bypass authentication and gain access to administrative functions through the /admin/** API. This could lead to exposure of sensitive information and unauthorized administrative access to the system (GitHub Issue, Wiz).

Mitigation and workarounds

Users should review their servlet contextPath configurations and ensure they do not include patterns that match those in noAuths. The vulnerability affects brcc version 1.2.0 and earlier versions (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management