When an unpatched Windows 11 host loads a theme file referencing an msstyles file, Windows loads the msstyles file, and if that file's PACKME_VERSION is `999`, it then attempts to load an accompanying dll file ending in `_vrf.dll` Before loading that file, it verifies that the file is signed. It does this by opening the file for reading and verifying the signature before opening the file for execution. Because this action is performed in two discrete operations, it opens the procedure for a time of check to time of use vulnerability. By embedding a UNC file path to an SMB server we control, the SMB server can serve a legitimate, signed dll when queried for the read, but then serve a different file of the same name when the host intends to load/execute the dll.
Exploit database
Vulnerability
CVE-2023-38146
Windows Themes Remote Code Execution Vulnerability
Vulnerability details
- Score
- 8.8
- Severity
- high
CVSS 3.1 · microsoft
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:CDescription
Windows Themes Remote Code Execution Vulnerability
CVE ProgramExploit source choices
8 sourcesThemebleed- Windows 11 Themes Arbitrary Code Execution CVE-2023-38146
2023-09-13theme_dll_hijack_cve_2023_38146.rb
aneasystone/github-trending
使用 Github Actions 跟踪 Github 趋势项目。
2022-08-0955 files · 213 stars
exploits-forsale/themebleed
Proof-of-Concept for CVE-2023-38146 ("ThemeBleed")
2023-09-1311 files · 206 stars
jnnshschl/cve-2023-38146
PoC for the ThemeBleed Windows 11 CVE-2023-38146 written in python using impacket. https://jnns.de/posts/cve-2023-38146-poc/
2023-10-137 files · 27 stars
durge5/themebleedpy
A proof of concept using python for the CVE-2023-38146 "ThemeBleed"
2023-12-126 files · 2 stars
ankitosh/temp
ankitosh/temp source repository
2023-10-015 files · 0 stars
calegarimindsec/htb_writeups
My HTB Writeups
2022-09-114,346 files · 0 stars
ch0ico/cve-2023-38146-poc
Better POC
2026-07-128 files · 0 stars