一、 漏洞 CVE-2025-22235 基础信息
漏洞信息
                                        # 如果未开放actuator结束点,Spring Boot EndpointRequest.to()会产生错误的匹配规则

## 概述
Spring Security 中的 `EndpointRequest.to()` 方法在为禁用或未暴露的端点创建请求时会生成一个匹配器,该匹配器匹配 `null/**`,从而可能导致安全漏洞。

## 影响版本
无具体影响版本信息

## 细节
当以下所有条件同时满足时,你的应用程序会受到影响:
- 你使用了 Spring Security
- 在 Spring Security 链式配置中使用了 `EndpointRequest.to()`
- `EndpointRequest` 引用的端点已禁用或未通过 Web 暴露
- 你的应用程序处理了对 `/null` 的请求且需要对该路径进行保护

你不受影响的情形包括:
- 你未使用 Spring Security
- 你未使用 `EndpointRequest.to()`
- `EndpointRequest.to()` 引用的端点已启用且已暴露
- 你的应用程序不处理 `/null` 的请求或该路径无需保护

## 影响
存在安全风险的路径 `/null` 可能会被未授权访问,导致潜在的安全问题。
                                        
神龙判断

是否为 Web 类漏洞:

判断理由:

是。这个漏洞影响Spring Security框架的配置,当特定的Actuator端点被禁用或未通过Web暴露时,`EndpointRequest.to()`方法会创建一个匹配`null/**`的模式。这可能导致对`/null`路径的请求处理不当,进而影响应用的安全性。如果上述条件均满足,则应用程序存在潜在的安全风险。
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed
来源:美国国家漏洞数据库 NVD
漏洞描述信息
EndpointRequest.to() creates a matcher for null/** if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed. Your application may be affected by this if all the following conditions are met: * You use Spring Security * EndpointRequest.to() has been used in a Spring Security chain configuration * The endpoint which EndpointRequest references is disabled or not exposed via web * Your application handles requests to /null and this path needs protection You are not affected if any of the following is true: * You don't use Spring Security * You don't use EndpointRequest.to() * The endpoint which EndpointRequest.to() refers to is enabled and is exposed * Your application does not handle requests to /null or this path does not need protection
来源:美国国家漏洞数据库 NVD
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
来源:美国国家漏洞数据库 NVD
漏洞类别
输入验证不恰当
来源:美国国家漏洞数据库 NVD
漏洞标题
VMware Spring Boot 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
VMware Spring Boot是美国威睿(VMware)公司的一套开源框架。 VMware Spring Boot存在安全漏洞,该漏洞源于EndpointRequest.to在端点禁用或未暴露时创建null/**匹配器,可能导致安全约束绕过。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-22235 的公开POC
# POC 描述 源链接 神龙链接
1 None https://github.com/idealzh/cve-2025-22235-demo POC详情
三、漏洞 CVE-2025-22235 的情报信息
四、漏洞 CVE-2025-22235 的评论

暂无评论


发表评论