{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-7987 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2018-7987 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-7987 is a medium-severity memory corruption vulnerability in Huawei P20, published on 4 Dec 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-7987 and fix it if it is affected.\n\nWhat it is: CVE-2018-7987 is a medium-severity memory corruption vulnerability in Huawei P20, published on 4 Dec 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-7987 in the wild and no public exploit code.\n\nAffected product: Huawei P20. 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-7987/ (Markdown: https://insights.sbomify.com/CVE-2018-7987/index.md)","id":"CVE-2018-7987","markdown":"https://insights.sbomify.com/CVE-2018-7987/index.md","name":"CVE-2018-7987","record":{"aliases":["GHSA-9jhh-f5r5-cq57"],"analysis":{"component_type":"mobile_application","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Huawei P20 smartphone","requires_auth":"none","summary":"An out-of-bounds write in Huawei P20 allows attackers to cause a denial of service via crafted messages during inquiry operations.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"huawei","cpe":[{"product":"p20_firmware","vendor":"huawei"}],"cvss":{"score":5.9,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"description":"There is an out-of-bounds write vulnerability on Huawei P20 smartphones with versions before 8.1.0.171(C00). The software does not handle the response message properly when the user doing certain inquiry operation, an attacker could send crafted message to the device, successful exploit could cause a denial of service condition.","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 Huawei P20","id":"CVE-2018-7987","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2018"},"n_packages":0,"n_references":1,"next":{"headline":"Auth bypass in Huawei nova 2 Plus, Huawei Mate9 Pro","id":"CVE-2018-7988"},"packages":[],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2018-7986"},"products":["Huawei P20"],"published":"2018-12-04","related":[{"cvss_score":5.7,"headline":"Other in P20","id":"CVE-2019-5211","kev_date_added":null,"published":"2019-11-29"},{"cvss_score":5.5,"headline":"Missing authorization in P20","id":"CVE-2019-5212","kev_date_added":null,"published":"2019-11-29"},{"cvss_score":4.6,"headline":"Security feature bypass in P20","id":"CVE-2019-5283","kev_date_added":null,"published":"2019-06-04"},{"cvss_score":4.6,"headline":"Security feature bypass in P20","id":"CVE-2019-5306","kev_date_added":null,"published":"2019-06-04"},{"cvss_score":2.4,"headline":"Auth bypass in P20","id":"CVE-2020-9073","kev_date_added":null,"published":"2020-05-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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["Huawei Technologies Co., Ltd."]},"summary":"An out-of-bounds write in Huawei P20 allows attackers to cause a denial of service via crafted messages during inquiry operations.","url":"https://insights.sbomify.com/CVE-2018-7987/"}