Skip to main content

Sublime Text 3 CVE-2025-65741

CRITICAL
Uncontrolled Search Path Element (CWE-427)
2025-12-09 cve@mitre.org
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local access to macOS host
  2. Delivery
    Compile malicious .dylib payload
  3. Exploit
    Plant library in Sublime Text load path
  4. Execution
    User launches Sublime Text 3
  5. Impact
    Execute arbitrary code in application context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
Exploitation Conditions

Requires local access to a macOS system running Sublime Text 3 Build 3208 or prior, the ability to write an attacker-compiled .dylib into a location Sublime Text searches when loading libraries, and the user subsequently launching the application so the library is loaded and executed. Limiting factors: the attacker must already have local filesystem access (not satisfied by the network vector claimed in the input CVSS), the target must be the legacy Sublime Text 3 branch on macOS specifically, and the injected code runs only with the privileges of the user who runs the editor. This local, platform- and version-specific precondition is the main constraint on realistic risk despite the 9.8 score.

Impact

The input lists a CVSS 3.1 base score of 9.8 with vector AV:N/AC:L/PR:N/UI:N, which asserts remote, unauthenticated, network-reachable exploitation. This directly conflicts with the described mechanism: CWE-427 dylib injection, where 'an attacker could compile a .dylib file and force the execution of this library in the context of the Sublime Text application.' Loading an attacker-supplied dylib into a local desktop application requires the attacker to place that library somewhere Sublime Text searches and for the local user to launch the app - this is a local-access condition, not a network vector. I therefore treat the AV:N/PR:N labeling as inconsistent with the mechanism: CVSS indicates a network vector but the description implies local filesystem access - verify with vendor. There is no KEV listing (not confirmed actively exploited) and no EPSS value supplied, so widespread or automated exploitation cannot be asserted from the data. A public PoC reference exists (the vinicius-batistella GitHub repo) but it is not verified as working exploit code. The vuln.today Decision label is act_now, which signals urgency, yet the underlying signals (no KEV, EPSS absent, unverified PoC, local mechanism) are weaker and partly conflicting; the realistic priority is a local code-execution/persistence risk on macOS endpoints still running the legacy Sublime Text 3, not an internet-facing 9.8 emergency. Resolving the AV discrepancy with the vendor should precede any 9.8-driven prioritization.

Exploit ScenarioDerived

An attacker with local access to a macOS host compiles a malicious .dylib and places it where Sublime Text 3 (Build 3208 or prior) resolves and loads libraries; when the user next launches the editor, the planted library executes arbitrary code in the context of the Sublime Text process, inheriting that user's privileges. A public PoC reference exists for this technique but is not verified as working exploit code. Exploitation realistically depends on prior local access to the filesystem rather than the remote network vector the CVSS vector implies.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 04, 2026

Local dylib injection in Sublime Text 3 Build 3208 and earlier on macOS can execute attacker-supplied code with the privileges of the user running the editor. Exploitation requires local filesystem access to plant an attacker-compiled .dylib in a location the application searches at launch, and the provided assessment therefore does not support the input 9.8 network vector; the practical risk is local and version-specific. A public PoC reference exists; it is not verified as working exploit code, and the provided data does not confirm active exploitation.

RemediationAI

No specific fixed build is identified in the provided data, so upgrade to a currently supported Sublime Text release from https://www.sublimetext.com/3 and verify the installed build against the vendor's release notes. Because exploitation depends on placing a .dylib in a location Sublime Text searches, restrict local filesystem write access to the application bundle and its library search locations to trusted users, and avoid launching the legacy Sublime Text 3 build from directories or environments writable by untrusted accounts; these are compensating controls only and do not replace a vendor fix. Review the public PoC reference at https://github.com/vinicius-batistella/CVE-2025-65741/ for any additional indicators, but note it is not verified as working exploit code.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-427 (uncontrolled search path element) affecting the macOS build of Sublime Text 3, corresponding to CPE cpe:2.3:a:sublimetext:sublime_text_3:*:*:*:*:*:macos:*:*. macOS loads dynamic libraries (.dylib) for Mach-O applications, and the assessed condition is that Sublime Text searches locations for libraries that a local attacker can write to; an attacker who can place a compiled .dylib in such a location can have code run inside the Sublime Text process when the user launches it. The independent assessment sets the vector to AV:L/AC:L/PR:L/UI:N, meaning local access and low privileges on the host are required, with code executing at the user's privilege level; it does not substantiate the input AV:N/PR:N/UI:N claim. The trigger details beyond this local search-path placement are not described in the available sources.

Know when Sublime Text 3 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Dylib injection requires local access and write to a search-path location, so AV:L and PR:L; code runs fully in the app context, giving C:H/I:H/A:H with unchanged scope.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Sublime Text 3 Build 3208 or prior for MacOS is vulnerable to Dylib Injection. An attacker could compile a .dylib file and force the execution of this library in the context of the Sublime Text application.

Executive ViewAI

Why It Matters

A critical-severity local code execution vulnerability (CVE-2025-65741) affects Sublime Text 3 Build 3208 and earlier on macOS, allowing an attacker with local filesystem access to execute code under the logged-in user's privileges. While the CVSS score is 9.8, the practical risk is local and version-specific, requiring a foothold on the endpoint; leadership should prioritize inventory of macOS developer endpoints and transition to a supported, patched Sublime Text release.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include restricting local filesystem write access to application directories, enforcing application allow-listing, and monitoring for unauthorized dylib placement.

Threat Intelligence Overview

EPSS Score
0.5%
Top 55% exploitable
Prevalence
Medium
popular developer editor but legacy ST3 build, macOS-only
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

70
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Affected Products (CPE)CVE.org

cpe:2.3:a:sublimetext:sublime_text_3:*:*:*:*:*:macos:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy