Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-92705 Overview
Aegisub, a cross-platform advanced subtitle editor, contains a vulnerability that enables arbitrary code execution when opening crafted ASS subtitle files. Versions 3.2.0 through 3.4.2 automatically load Automation scripts referenced in the Automation Scripts metadata of ASS projects without prompting the user to confirm trust. An attacker who distributes a crafted ASS file alongside a malicious Lua script can execute arbitrary code with the privileges of the Aegisub process. Versions 3.4.0 through 3.4.2 contain an additional attack path: inconsistent handling of embedded NUL characters between extension validation and filesystem operations allows a single-file ASS/Lua polyglot to reference and execute itself. The vulnerability is fixed in Aegisub 3.5.0.
Critical Impact
Opening a crafted subtitle file executes attacker-controlled Lua code with the user's privileges, enabling full compromise of the local account.
Affected Products
- Aegisub 3.2.0 through 3.4.2 (auto-loading of referenced Automation scripts)
- Aegisub 3.4.0 through 3.4.2 (NUL byte handling enabling ASS/Lua polyglot self-execution)
- Fixed in Aegisub 3.5.0
Discovery Timeline
- 2026-10-09 - CVE-2026-92705 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-92705
Vulnerability Analysis
The vulnerability combines two defects in Aegisub's handling of subtitle projects. First, the Automation subsystem loads Lua scripts named in the [Aegisub Project Garbage] section of an ASS file during open without any user confirmation. Second, in versions 3.4.0 through 3.4.2, the extension check in agi::fs::HasExtension operates on a C++ std::string that preserves embedded NUL bytes, while downstream filesystem operations use C string semantics that truncate at the first NUL. This mismatch allows a filename such as script.ass\0.lua to pass as a .lua script while being written and read as script.ass, producing a polyglot that is both a parseable subtitle and a valid Lua payload.
Root Cause
The primary root cause is a missing trust decision: auto4_base.cpp autoloaded scripts referenced by project metadata without warning the user. The secondary root cause is improper neutralization of null bytes [CWE-158] in path validation. The HasExtension function compared string lengths and suffixes against a std::string whose size() included characters past an embedded \0, while std::filesystem operations relied on the underlying C string and stopped at the NUL.
Attack Vector
Exploitation requires local user interaction. An attacker delivers a crafted .ass file, typically alongside a .lua script in the same directory, through phishing, file sharing, or subtitle repositories. When the victim opens the ASS file in a vulnerable Aegisub build, the referenced Automation script loads automatically and executes under the user's account. In the polyglot variant, a single file both parses as a subtitle and is loaded as its own Automation script, removing the need to deliver a second file.
// Patch: libaegisub/common/fs.cpp - respect NUL terminators in HasExtension
bool HasExtension(path const& p, std::string const& ext) {
- auto filename = p.filename().string();
+ std::string filename = p.filename().string().c_str(); // Be consistent with std::filesystem functions which use C strings internally
if (filename.size() < ext.size() + 1) return false;
if (filename[filename.size() - ext.size() - 1] != '.') return false;
return boost::iends_with(filename, ext);
}
// Source: https://github.com/TypesettingTools/Aegisub/commit/0a3073d59f10432eeebea65018b02ef4d0a87fff
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-92705
Indicators of Compromise
- ASS subtitle files containing an Automation Scripts entry in the [Aegisub Project Garbage] section that references a local .lua path.
- Filenames or script paths containing embedded NUL (\\x00) bytes, especially where the string suggests a dual .ass/.lua extension.
- Unexpected child processes spawned by aegisub or aegisub32/aegisub64 on Windows, Linux, or macOS shortly after a subtitle file is opened.
Detection Strategies
- Scan subtitle archives and shared storage for ASS files whose metadata references executable Automation scripts the project did not originate.
- Hunt for process-creation events where Aegisub is the parent of shells, scripting hosts, or network utilities.
- Inspect .ass files with a hex viewer for 0x00 bytes inside filename or path fields and flag any that embed Lua function definitions.
Monitoring Recommendations
- Collect endpoint telemetry on file writes to Aegisub's automation and configuration directories.
- Monitor outbound network connections initiated by the Aegisub process, which should not normally beacon to external hosts.
- Log subtitle file opens on multi-user editing workstations and correlate with user downloads from untrusted sources.
How to Mitigate CVE-2026-92705
Immediate Actions Required
- Upgrade all Aegisub installations to version 3.5.0 or later.
- Treat subtitle files from untrusted sources as potentially executable content until systems are patched.
- Review and remove untrusted entries from Aegisub's local Automation script directories.
Patch Information
The fix ships in Aegisub 3.5.0. Three upstream commits address the issue: commit 0a3073d5 makes agi::fs::HasExtension respect NUL terminators, commit b5bf2397 sanitizes NUL bytes when parsing Aegisub sections in ASS files, and commit e4099055 prompts the user before autoloading local scripts. See the GitHub Security Advisory GHSA-67hq-5vgg-6f23 for the full fix description.
Workarounds
- Do not open ASS files from untrusted senders in Aegisub versions 3.2.0 through 3.4.2.
- Open suspect subtitle files first in a plain-text editor and remove any Automation Scripts metadata lines before loading them in Aegisub.
- Run Aegisub inside a low-privilege user account or sandbox so that script execution is contained if a file is opened inadvertently.
# Strip Automation Scripts metadata from an ASS file before opening
sed -i '/^Automation Scripts:/d' suspect.ass
# Detect embedded NUL bytes in filenames or paths within ASS files
grep -lP '\\x00' *.ass
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

