{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2021-40870 in the wild since at least 18 Jan 2022.","fix":"No fix has been published for CVE-2021-40870 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 1 Feb 2022.","what":"CVE-2021-40870 is a critical vulnerability in n/a, published on 13 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-40870 and fix it if it is affected.\n\nWhat it is: CVE-2021-40870 is a critical vulnerability in n/a, published on 13 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2021-40870 in the wild since at least 18 Jan 2022.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-40870/ (Markdown: https://insights.sbomify.com/CVE-2021-40870/index.md)","id":"CVE-2021-40870","markdown":"https://insights.sbomify.com/CVE-2021-40870/index.md","name":"CVE-2021-40870","record":{"aliases":["GHSA-w7mg-q4hh-m9cq"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Aviatrix Controller","requires_auth":"none","summary":"Unauthenticated attackers can upload malicious files to execute arbitrary code on the Aviatrix Controller via directory traversal.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"controller","vendor":"aviatrix"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"description":"An issue was discovered in Aviatrix Controller 6.x before 6.5-1804.1922. Unrestricted upload of a file with a dangerous type is possible, which allows an unauthenticated user to execute arbitrary code via directory traversal.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2021-10-07","github_poc":4,"max_poc_stars":15,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-10-07T17:19:12Z","kind":"github_poc","ref":"https://github.com/0xAgun/CVE-2021-40870","stars":15,"title":"Aviatrix Controller 6.x before 6.5-1804.1922. Unrestricted upload of a file which allows an unauthenticated user to execute arbitrary code via directory traversal"},{"date":"2021-10-07T21:34:00Z","kind":"github_poc","ref":"https://github.com/orangmuda/CVE-2021-40870","stars":3,"title":"Aviatrix allows an authenticated user to execute arbitrary code"},{"date":"2021-10-08T05:35:40Z","kind":"github_poc","ref":"https://github.com/JoyGhoshs/CVE-2021-40870","stars":2,"title":"Unrestricted upload of file with dangerous type in Aviatrix allows an authenticated user to execute arbitrary code"},{"date":"2021-10-07T08:53:19Z","kind":"github_poc","ref":"https://github.com/System00-Security/CVE-2021-40870","stars":0,"title":"Unrestricted upload of file with dangerous type in Aviatrix allows an authenticated user to execute arbitrary code"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-40870.yaml","stars":null,"title":"Aviatrix Controller 6.x before 6.5-1804.1922 - Remote Command Execution"}],"tier":"exploited"},"has_fix":null,"headline":"Aviatrix Controller Unrestricted Upload of File","id":"CVE-2021-40870","indexable":true,"kev":{"dateAdded":"2022-01-18","dueDate":"2022-02-01","knownRansomwareCampaignUse":"Unknown","product":"Aviatrix Controller","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Aviatrix","vulnerabilityName":"Aviatrix Controller Unrestricted Upload of File"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"file_upload","year":"2021"},"n_packages":0,"n_references":3,"next":{"headline":"Denial of service in n/a","id":"CVE-2021-40871"},"packages":[],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-40868"},"products":["n/a"],"published":"2021-09-13","related":[{"cvss_score":10,"headline":"Aviatrix Controllers OS Command Injection","id":"CVE-2024-50603","kev_date_added":"2025-01-16","published":"2025-01-08"},{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2020-26553","kev_date_added":null,"published":"2020-11-17"},{"cvss_score":9.8,"headline":"Privilege escalation in n/a","id":"CVE-2020-13417","kev_date_added":null,"published":"2020-05-22"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2020-26548","kev_date_added":null,"published":"2020-11-17"},{"cvss_score":8.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2020-13412","kev_date_added":null,"published":"2020-05-22"},{"cvss_score":7.5,"headline":"Misconfiguration in n/a","id":"CVE-2020-27568","kev_date_added":null,"published":"2021-04-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"Unauthenticated attackers can upload malicious files to execute arbitrary code on the Aviatrix Controller via directory traversal.","url":"https://insights.sbomify.com/CVE-2021-40870/"}