CVE-2021-3840 Antilles Dependency Confusion Vulnerability

High 8.8 Published Updated

Attackers can execute remote code during installation by publishing malicious packages with names matching private dependencies to public repositories.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-3840?

CVE-2021-3840 is a high-severity vulnerability in Antilles, published on 12 Nov 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A dependency confusion vulnerability was reported in the Antilles open-source software prior to version 1.0.1 that could allow for remote code execution during installation due to a package listed in requirements.txt not existing in the public package index (PyPi). MITRE classifies this weakness as an Uncontrolled Search Path Element (CWE-427) in which a private package dependency may be replaced by an unauthorized package of the same name published to a well-known public repository such as PyPi. The configuration has been updated to only install components built by Antilles, removing all other public package indexes. Additionally, the antilles-tools dependency has been published to PyPi.

Weakness: CWE-427

Which versions are affected by CVE-2021-3840?

3 open source packages ship an affected version, including antilles-tools. It affects 1 product.

PackageAffectedFixed in
antilles-tools PyPIAll versions1.0.1
antilles-tools PyPIAll versions1.0.1
antilles-tools PyPIAll versions1.0.1

Products include Lenovo Antilles.

How do I fix CVE-2021-3840?

Upgrade antilles-tools to 1.0.1 or later.

Is CVE-2021-3840 being exploited?

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

Sources

Also known as GHSA-hgc3-hp6x-wpgx, PYSEC-2021-840.

Is CVE-2021-3840 in your software?

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

Check your SBOMs for free