Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-59827 — Technical analysis and proof of concept for CVE-2026-59827, a critical unsafe Java deserialization vulnerability in Metabase leading to remote code execution. | Kitploit
工具/GitHubGitHub/gutierre0x80/cve-2026-59827
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingPayload Development
GitHubgutierre0x80/cve-2026-59827

CVE-2026-59827

Technical analysis and proof of concept for CVE-2026-59827, a critical unsafe Java deserialization vulnerability in Metabase leading to remote code execution.

查看仓库
18天前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2026-59827:Metabase 在 H2 原生查询中的不安全反序列化

严重性: 严重(CVSS 9.9)

CVE: CVE-2026-59827

安全公告: GHSA-w95f-x9v9-wv36

报告者: Matheus Gutierre (@Gutierre0x80)

发布时间: 2026年6月30日

漏洞摘要

通过利用 SELECT CAST(X'...' AS OTHER) 查询返回的 Java 对象的不安全反序列化,有权访问 H2 数据库上原生 SQL 查询的已认证用户可以在 Metabase 服务器上执行任意 Java 代码。

默认的 Metabase 安装包含一个 H2 示例数据库,这使得该漏洞可在所有默认部署中被利用。

受影响版本

  • Metabase >= 1.58.0, < 1.58.15
  • Metabase >= 1.59.0, < 1.59.12
  • Metabase >= 1.60.0, < 1.60.6.3
  • Metabase >= 1.61.0, < 1.61.1.4

已修补版本

  • Metabase 1.58.15
  • Metabase 1.59.12
  • Metabase 1.60.6.3
  • Metabase 1.61.1.4

安装

前提条件

  • Python 3.7+
  • requests 库:pip install requests
  • Java (OpenJDK 11+)
  • JAR 文件必须与 exploit.py 位于同一目录:
  • clojure-1.12.3.jar(payload 生成所需)

设置

确保所有前提条件都已安装并在 PATH 中可用:

root@kitploit:~
# Install Python requests library
pip install requests

# Verify Java is available (OpenJDK 11+)
java -version

# Verify Python 3.7+
python3 --version

然后从 poc/ 目录运行漏洞利用程序:

root@kitploit:~
cd poc/
python3 exploit.py <target_url> <username> <password> <command>

在执行之前,脚本会验证 clojure-1.12.3.jar 和 VarChainPayload.class 是否存在于工作目录中。


用法

root@kitploit:~
python3 exploit.py <target_url> <username> <password> <command>

参数

示例

root@kitploit:~
python3 exploit.py http://127.0.0.1:3000 [email protected] Admin1234! "id > /tmp/pwned.txt"

该命令将在 Metabase 进程的上下文中执行(通常是 Docker 中的 metabase 用户)。


技术细节

H2 的 OTHER 列类型使用不带 JEP-290 过滤的裸 ObjectInputStream 对 Java 对象进行反序列化,从而允许任意类实例化。

该 payload 使用基于 Clojure 可序列化类(clojure.core$apply、clojure.lang.Var$Serialized 和 PersistentList)并结合 Java 的 PriorityQueue 的 gadget chain,通过 clojure.core/eval 触发代码执行。

完整的技术分析请参阅 writeup/analysis.md。


参考资料

  • 官方公告:https://github.com/metabase/metabase/security/advisories/GHSA-w95f-x9v9-wv36
  • CVE 详情:https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-59827
下载工具
参数描述示例
target_urlMetabase 实例 URLhttp://127.0.0.1:3000
username已认证用户(管理员或具有原生查询访问权限的用户)[email protected]
password用户密码SecurePassword123!
command要执行的 Shell 命令id 或 whoami