{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-6221 exists.","fix":"No fix has been published for CVE-2018-6221 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-6221 is a high-severity code injection vulnerability in Trend Micro Email Encryption Gateway, published on 15 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-6221 and fix it if it is affected.\n\nWhat it is: CVE-2018-6221 is a high-severity code injection vulnerability in Trend Micro Email Encryption Gateway, published on 15 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-6221 exists.\n\nAffected product: Trend Micro Email Encryption Gateway. 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-2018-6221/ (Markdown: https://insights.sbomify.com/CVE-2018-6221/index.md)","id":"CVE-2018-6221","markdown":"https://insights.sbomify.com/CVE-2018-6221/index.md","name":"CVE-2018-6221","record":{"aliases":["GHSA-v5jx-63r2-pgwj"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Email Encryption Gateway","requires_auth":"none","summary":"A man-in-the-middle attacker can tamper with software updates to inject malicious code into Trend Micro Email Encryption Gateway.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"trendmicro","cpe":[{"product":"email_encryption_gateway","vendor":"trendmicro"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"description":"An unvalidated software update vulnerability in Trend Micro Email Encryption Gateway 5.5 could allow a man-in-the-middle attacker to tamper with an update file and inject their own.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2018-02-22","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-02-22","kind":"exploitdb","ref":"44166","stars":null,"title":"Trend Micro Email Encryption Gateway 5.5 (Build 1111.00) - Multiple Vulnerabilities"}],"tier":"weaponised"},"has_fix":null,"headline":"Code injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-6221","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2018"},"n_packages":0,"n_references":3,"next":{"headline":"Command injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-6222"},"packages":[],"prev":{"headline":"File upload in Trend Micro Email Encryption Gateway","id":"CVE-2018-6220"},"products":["Trend Micro Email Encryption Gateway"],"published":"2018-03-15","related":[{"cvss_score":9.8,"headline":"File upload in Trend Micro Email Encryption Gateway","id":"CVE-2018-6220","kev_date_added":null,"published":"2018-03-15"},{"cvss_score":9.8,"headline":"Missing authorization in Trend Micro Email Encryption Gateway","id":"CVE-2018-6223","kev_date_added":null,"published":"2018-03-15"},{"cvss_score":9.8,"headline":"SQL injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-6228","kev_date_added":null,"published":"2018-03-15"},{"cvss_score":9.8,"headline":"SQL injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-6229","kev_date_added":null,"published":"2018-03-15"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2016-4351","kev_date_added":null,"published":"2016-05-05"},{"cvss_score":8.8,"headline":"SQL injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-10351","kev_date_added":null,"published":"2018-05-23"},{"cvss_score":8.8,"headline":"SQL injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-10352","kev_date_added":null,"published":"2018-05-23"}],"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["Trend Micro"]},"summary":"A man-in-the-middle attacker can tamper with software updates to inject malicious code into Trend Micro Email Encryption Gateway.","url":"https://insights.sbomify.com/CVE-2018-6221/"}