{"id":"CVE-2021-3840","aliases":["CVE-2021-3840","GHSA-hgc3-hp6x-wpgx","PYSEC-2021-840"],"related":[],"kind":"vulnerability","state":"published","title":"Antilles Dependency Confusion Vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Potential Impact: \nRemote code execution.\n\n### Scope of Impact: \nOpen-source project specific.\n\n### Summary Description:\nA 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). \nMITRE 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.\nThe 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.\n\n### Mitigation Strategy for Customers (what you should do to protect yourself):\nRemove previous versions of Antilles as a precautionary measure and Update to version 1.0.1 or later.\n\n### Acknowledgement:\nThe Antilles team thanks Kotko Vladyslav for reporting this issue.\n\n### References:\nhttps://github.com/lenovo/Antilles/commit/c7b9c5740908b343aceefe69733d9972e64df0b9","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se ha informado de una vulnerabilidad de confusión de dependencias en el software de código abierto Antilles versiones anteriores a 1.0.1, que podría permitir una ejecución de código remota durante la instalación debido a que un paquete enumerado en el archivo requirements.txt no se presenta en el índice de paquetes públicos (PyPi). MITRE clasifica esta debilidad como un elemento de ruta de búsqueda no controlada (CWE-427) en el que una dependencia de un paquete privado puede ser sustituida por un paquete no autorizado del mismo nombre publicado en un repositorio público conocido como PyPi. La configuración ha sido actualizada para instalar únicamente componentes construidos por Antilles, eliminando todos los demás índices de paquetes públicos. Además, la dependencia de antilles-tools ha sido publicada en PyPi","source":"nvd"}],"published":"2021-11-03T17:36:22.000Z","modified":"2026-07-08T06:29:27.141Z","severity":{"scorer":"lenovo","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"lenovo","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-427"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.0.1","status":"affected"}],"vendor":"Antilles","product":"Antilles","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"PyPI","package":"antilles-tools","purl":"pkg:pypi/antilles-tools","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.1"}],"vendor":"lenovo","product":"antilles","cpe":"cpe:2.3:a:lenovo:antilles:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.1"}],"ecosystem":"PyPI","package":"antilles-tools","purl":"pkg:pypi/antilles-tools","source":"pysec"}],"references":[{"url":"https://github.com/lenovo/Antilles/security/advisories/GHSA-hgc3-hp6x-wpgx","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3840","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lenovo/Antilles/commit/c7b9c5740908b343aceefe69733d9972e64df0b9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lenovo/Antilles","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/antilles-tools/PYSEC-2021-840.yaml","tags":["web"],"sources":["ghsa"]}],"credits":["The Antilles team thanks Kotko Vladyslav for reporting this issue."],"assigner":"lenovo","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3840","url":"https://www.cve.org/CVERecord?id=CVE-2021-3840","licence":"CVE Terms of Use","modified":"2024-08-03T17:09:09.548Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hgc3-hp6x-wpgx","url":"https://github.com/advisories/GHSA-hgc3-hp6x-wpgx","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:27.141Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3840","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3840","licence":"Public domain","modified":"2026-06-17T04:05:52.400Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-840","url":"https://osv.dev/vulnerability/PYSEC-2021-840","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:27.573Z"}],"updatedAt":"2026-11-25T22:58:05.540Z","epss":{"score":0.02036,"percentile":0.81659,"date":"2026-12-01T12:00:22.000Z"}}