{"answers":{"affected":"It affects 11 products.","exploited":"There is no known exploitation of CVE-2021-40158 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-40158 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-40158 is a high-severity memory corruption vulnerability in Autodesk Advance Steel, published on 25 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-40158 and fix it if it is affected.\n\nWhat it is: CVE-2021-40158 is a high-severity memory corruption vulnerability in Autodesk Advance Steel, published on 25 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-40158 in the wild and no public exploit code.\n\nAffected product: Autodesk Advance Steel. 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-40158/ (Markdown: https://insights.sbomify.com/CVE-2021-40158/index.md)","id":"CVE-2021-40158","markdown":"https://insights.sbomify.com/CVE-2021-40158/index.md","name":"CVE-2021-40158","record":{"aliases":["GHSA-8pc8-96q3-294c"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Autodesk CAD software","requires_auth":"none","summary":"Attackers can execute arbitrary code by tricking users into opening malicious JT files in Autodesk Inventor or AutoCAD.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"autodesk","cpe":[{"product":"advance_steel","vendor":"autodesk"},{"product":"autocad","vendor":"autodesk"},{"product":"autocad_architecture","vendor":"autodesk"},{"product":"autocad_electrical","vendor":"autodesk"},{"product":"autocad_lt","vendor":"autodesk"},{"product":"autocad_map_3d","vendor":"autodesk"},{"product":"autocad_mechanical","vendor":"autodesk"},{"product":"autocad_mep","vendor":"autodesk"},{"product":"autocad_plant_3d","vendor":"autodesk"},{"product":"civil_3d","vendor":"autodesk"},{"product":"inventor","vendor":"autodesk"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"A maliciously crafted JT file in Autodesk Inventor 2022, 2021, 2020, 2019 and AutoCAD 2022 may be forced to read beyond allocated boundaries when parsing the JT file. This vulnerability in conjunction with other vulnerabilities could lead to code execution in the context of the current process.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Memory corruption in Inventor","id":"CVE-2021-40158","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"autodesk:advance_steel","products":["autodesk:advance_steel","autodesk:autocad","autodesk:autocad_architecture","autodesk:autocad_electrical","autodesk:autocad_lt","autodesk:autocad_map_3d","autodesk:autocad_mechanical","autodesk:autocad_mep","autodesk:autocad_plant_3d","autodesk:civil_3d"],"type":"memory_corruption","year":"2021"},"n_packages":0,"n_references":22,"next":{"headline":"Information disclosure in Inventor","id":"CVE-2021-40159"},"packages":[],"prev":{"headline":"Memory corruption in Autodesk FBX Review","id":"CVE-2021-40157"},"products":["Inventor"],"published":"2022-01-25","related":[{"cvss_score":7.8,"headline":"BMP File Parsing Untrusted Pointer Dereference in certain Autodesk products","id":"CVE-2026-7406","kev_date_added":null,"published":"2026-08-06"},{"cvss_score":7.8,"headline":"DXF File Parsing Heap-Based Overflow in Autodesk AutoCAD","id":"CVE-2026-16463","kev_date_added":null,"published":"2026-07-29"},{"cvss_score":7.8,"headline":"PDF File Parsing Out-of-Bounds Write Vulnerability","id":"CVE-2025-8893","kev_date_added":null,"published":"2025-09-16"},{"cvss_score":7.8,"headline":"PDF File Parsing Heap-Based Buffer Overflow Vulnerability","id":"CVE-2025-8894","kev_date_added":null,"published":"2025-09-16"},{"cvss_score":7.8,"headline":"DGN File Parsing Out-of-Bounds Read Vulnerability","id":"CVE-2025-5046","kev_date_added":null,"published":"2025-08-15"},{"cvss_score":7.8,"headline":"DGN File Parsing Uninitialized Variable Vulnerability","id":"CVE-2025-5047","kev_date_added":null,"published":"2025-08-15"},{"cvss_score":7.8,"headline":"DGN File Parsing Memory Corruption Vulnerability","id":"CVE-2025-5048","kev_date_added":null,"published":"2025-08-15"}],"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by tricking users into opening malicious JT files in Autodesk Inventor or AutoCAD.","url":"https://insights.sbomify.com/CVE-2021-40158/"}