{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-4016 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-4016 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-4016 is a medium-severity missing authorization vulnerability in Rapid7 Insight Agent, published on 21 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-4016 and fix it if it is affected.\n\nWhat it is: CVE-2021-4016 is a medium-severity missing authorization vulnerability in Rapid7 Insight Agent, published on 21 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-4016 in the wild and no public exploit code.\n\nAffected product: Rapid7 Insight Agent. 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-4016/ (Markdown: https://insights.sbomify.com/CVE-2021-4016/index.md)","id":"CVE-2021-4016","markdown":"https://insights.sbomify.com/CVE-2021-4016/index.md","name":"CVE-2021-4016","record":{"aliases":["GHSA-hr69-m797-3q5c"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Rapid7 Insight Agent","requires_auth":"none","summary":"An attacker can read and copy sensitive files from the snapshot directory due to improper access controls in Rapid7 Insight Agent.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"rapid7","cpe":[{"product":"insight_agent","vendor":"rapid7"}],"cvss":{"score":4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"description":"Rapid7 Insight Agent, versions prior to 3.1.3, suffer from an improper access control vulnerability whereby, the user has access to the snapshot directory. An attacker can access, read and copy any of the files in this directory e.g. asset_info.json or file_info.json, leading to a loss of confidentiality. This issue was fixed in Rapid7 Insight Agent 3.1.3.","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":"Rapid7 Insight Agent Improper Access Control","id":"CVE-2021-4016","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"Cross-Site Request Forgery (CSRF) in star7th/showdoc","id":"CVE-2021-4017"},"packages":[],"prev":{"headline":"Cross-Site Request Forgery (CSRF) in firefly-iii/firefly-iii","id":"CVE-2021-4015"},"products":["Insight Agent"],"published":"2022-01-21","related":[{"cvss_score":8.5,"headline":"Local Privilege Escalation via OpenSSL configuration file in Insight Agent","id":"CVE-2026-6482","kev_date_added":null,"published":"2026-04-17"},{"cvss_score":7.8,"headline":"Rapid7 Insight Agent Privilege Escalation","id":"CVE-2021-4007","kev_date_added":null,"published":"2021-12-14"},{"cvss_score":7.8,"headline":"Privilege escalation in Insight Agent","id":"CVE-2019-5629","kev_date_added":null,"published":"2019-07-13"},{"cvss_score":6.8,"headline":"Insight Agent Private Key Information Disclosure via Inherited File Permissions","id":"CVE-2026-4482","kev_date_added":null,"published":"2026-04-10"},{"cvss_score":6.6,"headline":"Eval Injection in Rapid7 Insight Agent","id":"CVE-2026-4837","kev_date_added":null,"published":"2026-04-08"},{"cvss_score":5.8,"headline":"Rapid7 Insight Agent Directory Traversal","id":"CVE-2023-2273","kev_date_added":null,"published":"2023-04-26"},{"cvss_score":4,"headline":"Rapid7 Insight Agent Privilege Escalation","id":"CVE-2022-0237","kev_date_added":null,"published":"2022-03-17"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Rapid7"]},"summary":"An attacker can read and copy sensitive files from the snapshot directory due to improper access controls in Rapid7 Insight Agent.","url":"https://insights.sbomify.com/CVE-2021-4016/"}