{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2018-7502 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2018-7502 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-7502 is a high-severity vulnerability in ICS-CERT Beckhoff TwinCAT PLC products, published on 23 Mar 2018. 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-2018-7502 and fix it if it is affected.\n\nWhat it is: CVE-2018-7502 is a high-severity vulnerability in ICS-CERT Beckhoff TwinCAT PLC products, published on 23 Mar 2018. 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-2018-7502 in the wild and no public exploit code.\n\nAffected product: ICS-CERT Beckhoff TwinCAT PLC products. 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-7502/ (Markdown: https://insights.sbomify.com/CVE-2018-7502/index.md)","id":"CVE-2018-7502","markdown":"https://insights.sbomify.com/CVE-2018-7502/index.md","name":"CVE-2018-7502","record":{"aliases":["CVE-2017-14776","CVE-2017-14777","CVE-2017-14778","CVE-2017-14779","CVE-2017-14780","CVE-2017-14781","CVE-2017-14782","CVE-2017-14783","CVE-2017-14784","CVE-2017-14785","CVE-2017-14786","CVE-2017-14787","CVE-2017-14788","CVE-2017-14789","CVE-2017-14790","CVE-2017-14791","CVE-2017-14792","CVE-2017-14793","CVE-2017-14794","GHSA-v98p-fx5c-967q"],"analysis":{"component_type":"ics_ot","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Beckhoff TwinCAT PLC","requires_auth":"low_privilege","summary":"Attackers with local code execution can exploit improper pointer validation in TwinCAT kernel drivers to gain SYSTEM privileges.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"icscert","cpe":[{"product":"twincat","vendor":"beckhoff"},{"product":"twincat_c\\+\\+","vendor":"beckhoff"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-822","name":"Untrusted Pointer Dereference"}],"description":"Kernel drivers in Beckhoff TwinCAT 3.1 Build 4022.4, TwinCAT 2.11 R3 2259, and TwinCAT 3.1 lack proper validation of user-supplied pointer values. An attacker who is able to execute code on the target may be able to exploit this vulnerability to obtain SYSTEM privileges.","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":"Privilege escalation in Beckhoff TwinCAT PLC products","id":"CVE-2018-7502","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2018"},"n_packages":0,"n_references":4,"next":{"headline":"Path traversal in WebAccess","id":"CVE-2018-7503"},"packages":[],"prev":{"headline":"SQL injection in WebAccess","id":"CVE-2018-7501"},"products":["Beckhoff TwinCAT PLC products"],"published":"2018-03-23","related":[{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2019-16871","kev_date_added":null,"published":"2019-12-19"},{"cvss_score":9.1,"headline":"Weak cryptography in Beckhoff TwinCAT","id":"CVE-2017-16726","kev_date_added":null,"published":"2018-06-27"},{"cvss_score":7.5,"headline":"Beckhoff TwinCAT Profinet Driver Divide-by-Zero Denial of Service","id":"CVE-2019-5637","kev_date_added":null,"published":"2019-11-21"},{"cvss_score":5.9,"headline":"Weak cryptography in Beckhoff TwinCAT","id":"CVE-2017-16718","kev_date_added":null,"published":"2018-06-27"},{"cvss_score":5.3,"headline":"Beckhoff: Etherleak in TwinCAT RT network driver","id":"CVE-2020-12494","kev_date_added":null,"published":"2020-06-16"},{"cvss_score":5.3,"headline":"Beckhoff TwinCAT Discovery Service Denial of Service","id":"CVE-2019-5636","kev_date_added":null,"published":"2019-11-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":"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":["ICS-CERT"]},"summary":"Attackers with local code execution can exploit improper pointer validation in TwinCAT kernel drivers to gain SYSTEM privileges.","url":"https://insights.sbomify.com/CVE-2018-7502/"}