Skip to main content

NSIS CVE-2026-42171

| EUVDEUVD-2026-25637 HIGH
Uncontrolled Search Path Element (CWE-427)
2026-04-24 mitre
7.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Gain local low-priv foothold
  2. Delivery
    Plant payload in c:\Windows\Temp\Low
  3. Exploit
    Force my_GetTempFileName to return 0
  4. Execution
    SYSTEM installer falls back to Low IL dir
  5. Persist
    Elevated stub consumes attacker content
  6. Impact
    Gain SYSTEM privileges

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

Exploitation requires (1) an NSIS-built installer from an affected version (3.06.1 to <3.12) actually running elevated as SYSTEM - this is the UI:R/local trigger, not a remote attack; (2) the attacker to force the fallback path by causing my_GetTempFileName to return 0 (a 'sometimes' condition, per the description, tied to temp-file allocation failure); and (3) local write access to the shared Low Integrity temp directory (c:\Windows\Temp\Low). Limiting factors: the vector is purely local (AV:L), it does not fire in default success paths (the fallback is exceptional, not routine), and it yields nothing unless a SYSTEM-context installer executes - so environments that never run NSIS installers as SYSTEM are not exposed.

Impact

The provided CVSS 3.1 base score is 7.8 (High) with vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, reflecting local access with total confidentiality/integrity/availability impact via SYSTEM compromise. However, several signals point to genuinely low real-world urgency: EPSS is 0.01% (0th percentile), CISA SSVC lists Exploitation 'none' and Automatable 'no' (though Technical Impact 'total'), the CVE is not in CISA KEV, and no public exploit is identified. There is also tension in the raw vector: the description states the fault only occurs 'sometimes' and specifically 'if they can cause my_GetTempFileName to return 0,' which implies a race/resource-exhaustion precondition better modeled as AC:H rather than the input's AC:L - verify against the referenced bug report. Net assessment: a legitimate SYSTEM-to-attacker trust-boundary bug worth patching in build pipelines, but not an emergency; it is not automatable, not actively exploited, and requires a local attacker plus an elevated installer run.

Exploit ScenarioDerived

A standard (low-privileged) user on a shared Windows host pre-stages malicious files in the world-writable c:\Windows\Temp\Low directory and then arranges conditions (e.g., resource exhaustion) that force my_GetTempFileName to return 0. When an NSIS-built installer subsequently runs as SYSTEM - for instance, a software-deployment or update job - the elevated stub falls back to that shared directory and consumes the attacker's content, escalating the local attacker to SYSTEM. No public exploit is identified at time of analysis, though the referenced bug #1326 describes the triggering condition.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 24, 2026

Local privilege escalation in Nullsoft Scriptable Install System (NSIS) 3.06.1 before 3.12 arises because an installer running as SYSTEM can fall back to the world-writable Low Integrity temp directory (c:\Windows\Temp\Low) when temp-file creation fails, letting a local low-privileged attacker plant content that the SYSTEM process trusts and thereby gain SYSTEM privileges. Exploitation requires an elevated NSIS installer to execute (UI:R) and hinges on forcing my_GetTempFileName to return 0, per the referenced bug #1326. There is no public exploit identified at time of analysis and EPSS is negligible (0.01%), consistent with SSVC exploitation status 'none'.

RemediationAI

Vendor-released patch: NSIS 3.12 - upgrade the NSIS toolchain to 3.12 or later and rebuild/redistribute all installers so the fixed exehead stub (which skips the Low IL temp directory when elevated) is embedded; see the v3.12 change log at https://nsis.sourceforge.io/Docs/AppendixF.html#v3.12-cl and the fix commit https://github.com/NSIS-Dev/nsis/commit/8e6f02205d5f22da6c7855dbfe59b2af667330ca . Simply updating the toolchain is not enough for already-shipped products - previously built installers remain vulnerable until recompiled with 3.12+. As a compensating control where immediate rebuild is impossible, avoid running affected NSIS installers under the SYSTEM account (e.g., do not push them as SYSTEM via management tooling), and harden or remove the shared c:\Windows\Temp\Low directory's writability for untrusted local users, noting this may break other low-integrity applications that legitimately rely on that path.

Affected VersionsENISA

Nullsoft Scriptable Install System 3.06.1 <3.12

Affected Packages

euvd nullsoft_scriptable_install_system fix: 3.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

NSIS is a widely used script-driven installer authoring toolkit for Windows; the affected component is the installer stub (exehead) shipped inside every generated installer, specifically the temp-directory selection logic in Source/exehead/util.c (my_GetTempFileName) and the startup path in Source/exehead/Main.c. The root cause maps to CWE-427 (Uncontrolled Search Path Element): when the primary temp-file allocation fails, the stub falls back to the shared Low Integrity temp location (c:\Windows\Temp\Low), which is writable by low-integrity/low-privileged processes. If the installer is itself running elevated (as SYSTEM), it then reads or executes attacker-controllable content from that shared directory, crossing a trust boundary. The fix commit (8e6f02205d) adds a UserIsAdminGrpMember() check so an elevated process skips the Low IL directory entirely.

Know when Nullsoft Scriptable Install System 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 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 6.7 MEDIUM

Local attacker needs an unprivileged account (PR:L) and must win a non-default fallback/race to force my_GetTempFileName=0 (AC:H) while an elevated installer runs (UI:R); success yields full SYSTEM compromise (C/I/A:H).

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

3
Patch released
Apr 27, 2026 - 18:57 nvd
Patch available
Patch available
Apr 24, 2026 - 23:02 EUVD
CVE Published
Apr 24, 2026 - 21:20 nvd
HIGH 7.8

DescriptionCVE.org

NSIS (Nullsoft Scriptable Install System) 3.06.1 before 3.12 sometimes uses the Low IL temp directory when executing as SYSTEM, allowing local attackers to gain privileges (if they can cause my_GetTempFileName to return 0, as shown in the references).

Executive ViewAI

Why It Matters

NSIS installer platform versions 3.06.1-3.11 enable local privilege escalation to SYSTEM access through failed temp file handling, affecting any organization performing software deployment via NSIS. This vulnerability creates a risk window during patches and updates when installers run with elevated privileges.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Prevalence
High
extremely popular Windows installer toolkit used by countless software vendors
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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