CVE-2018-1000201 Ruby-ffi has a DLL loading issue

High 7.8 Published Updated

Attackers can hijack DLL loading on Windows by using a Symbol as a DLL name, potentially leading to arbitrary code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-1000201?

CVE-2018-1000201 is a high-severity path traversal vulnerability in n/a, published on 22 Jun 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

ruby-ffi version 1.9.23 and earlier has a DLL loading issue which can be hijacked on Windows OS, when a Symbol is used as DLL name instead of a String This vulnerability appears to have been fixed in v1.9.24 and later.

Weakness: CWE-426

Which versions are affected by CVE-2018-1000201?

2 open source packages ship an affected version, including ffi. It affects 1 product.

PackageAffectedFixed in
ffi RubyGemsAll versions1.9.24
ffi RubyGemsAll versions1.9.24

Products include Ruby-Ffi Project Ruby-Ffi.

How do I fix CVE-2018-1000201?

Upgrade ffi to 1.9.24 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-1000201 being exploited?

There is no known exploitation of CVE-2018-1000201 in the wild and no public exploit code.

Sources

Also known as GHSA-2gw2-8q9w-cw8p.

Is CVE-2018-1000201 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free