Intel

AIKIDO-2026-10376

Vanara is vulnerable to Untrusted Search Path

Untrusted Search Path Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 17, 2026

64

Medium Risk

This Affects:

DOTNETVanara
0.0.1 - 5.0.0
Fixed in 5.0.1
Are you affected? Scan for Free

TL;DR

Vanara assemblies use P/Invoke to load native Windows DLLs. Without an assembly-level search-path restriction, the .NET runtime resolves these DLLs using the default search order, which includes the application directory. An attacker who can place a malicious DLL with the same name in a directory searched before System32 can cause the application to load it, leading to local code execution. The fix adds [assembly: DefaultDllImportSearchPaths(DllImportSearchPath.System32)] in the shared AsmDef.cs so all built assemblies restrict native DLL resolution to the system directory, preventing DLL search-order hijacking.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

Vanara is vulnerable to Untrusted Search Path in versions 0.0.1 - 5.0.0.

How to fix this

Upgrade the Vanara library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform