CVE-2025-66735

youlai-boot V2.21.1 is vulnerable to Incorrect Access Control

High · published December 22, 2025

CVSS v3.1
7.5
EPSS
0%
Percentile
37.2
In the wild
Unconfirmed
What it is

⚡ A simple oversight could let non-root users unlock the secrets of the kingdom! The getRoleForm function in youlai-boot V2.21.1 skips crucial permission checks, allowing access to root roles without the proper clearance. 🔓 Think of it as a hotel where anyone can waltz into the VIP lounge without a key card — only this time, the lounge holds the most powerful privileges. Without proper checks, it’s like the front desk just handing out keys to anyone who asks! An attacker could exploit this vulnerability to gain unauthorized access to crucial root roles, potentially altering settings, accessing sensitive data, or even compromising the entire system. This could lead to absolutely devastating consequences for your application's integrity and security.

Put simply

Think of it as a hotel where anyone can waltz into the VIP lounge without a key card — only this time, the lounge holds the most powerful privileges. Without proper checks, it’s like the front desk just handing out keys to anyone who asks! This vulnerability in youlai-boot stems from the getRoleForm function in SysRoleController.java, which fails to enforce access controls, allowing unauthorized users to access administrative functions.

What to do

An attacker could exploit this vulnerability to gain unauthorized access to crucial root roles, potentially altering settings, accessing sensitive data, or even compromising the entire system. This could lead to absolutely devastating consequences for your application's integrity and security. To protect against this, patch to version 2.21.2 immediately to ensure proper permission checks are enforced. Also, conduct a thorough audit of access control measures in your application to prevent similar vulnerabilities. You can tackle this! Follow the steps, patch up, and reinforce your defenses. 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00440 · 37.2th percentile
Published
2025-12-22T00:00Z
EPSS history
Timeline
  • 22 DEC 00:00Z
    youlai-boot V2.21.1 is vulnerable to Incorrect Access Control
    cvelistv5