# CVE-2021-3840: Antilles Dependency Confusion Vulnerability

- Severity: High 8.8 (CVSS:3.1, scored by lenovo) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.04%, higher than 81% of CVEs (2026-12-01)
- Published: 2021-11-03T17:36:22.000Z
- Modified: 2026-07-08T06:29:27.141Z
- Also known as: GHSA-hgc3-hp6x-wpgx, PYSEC-2021-840
- Weaknesses: CWE-427
- Assigned by: lenovo

## 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.

(As written by CVE List.)

## Affected

- Antilles Antilles: from unspecified before 1.0.1
- antilles-tools (PyPI): before 1.0.1
- lenovo antilles: before 1.0.1

## Every score

- lenovo: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/lenovo/Antilles/security/advisories/GHSA-hgc3-hp6x-wpgx> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3840> (advisory)
- <https://github.com/lenovo/Antilles/commit/c7b9c5740908b343aceefe69733d9972e64df0b9> (web)
- <https://github.com/lenovo/Antilles> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/antilles-tools/PYSEC-2021-840.yaml> (web)

## Sources

- CVE List: [CVE-2021-3840](https://www.cve.org/CVERecord?id=CVE-2021-3840), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-hgc3-hp6x-wpgx](https://github.com/advisories/GHSA-hgc3-hp6x-wpgx), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-3840](https://nvd.nist.gov/vuln/detail/CVE-2021-3840), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-840](https://osv.dev/vulnerability/PYSEC-2021-840), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-3840 · Whole record: https://cve.day/CVE-2021-3840.json · Rebuilt by cve.day 2026-11-25T22:58:05.540Z
