{"schemaVersion":3,"id":"CVE-2021-40142","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"In OPC Foundation Local Discovery Server (LDS) before 1.04.402.463, remote attackers can cause a denial of service (DoS) by sending carefully crafted messages that lead to Access of a Memory Location After the End of a Buffer.","dates":{"published":"2021-08-27T06:51:28.000Z","modified":"2024-08-04T02:27:31.711Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AC:L/AV:N/A:H/C:N/I:N/PR:N/S:U/UI:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AC:L/AV:N/A:H/C:N/I:N/PR:N/S:U/UI:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02563,"percentile":0.84884,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02563},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02563,"percentile":0.84884}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02563,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02563,"percentile":0.84884}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"opcfoundation","product":"local_discover_server","name":"local discover server","label":"local_discover_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.04.402.463","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.04.402.463","eol":null,"hubHref":"/vendor/opcfoundation/local_discover_server"},{"vendor":"siemens","product":"simatic_net_pc","name":"simatic net pc","label":"simatic_net_pc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"14","noFixRecorded":false,"fixedIn":null},{"text":"15","noFixRecorded":false,"fixedIn":null},{"text":"16","noFixRecorded":false,"fixedIn":null},{"text":"17","noFixRecorded":false,"fixedIn":null}],"versionsText":"14 | 15 | 16 | 17","eol":null,"hubHref":"/vendor/siemens/simatic_net_pc"},{"vendor":"siemens","product":"simatic_process_historian_opc_ua_server_firmware","name":"simatic process historian opc ua server firmware","label":"simatic_process_historian_opc_ua_server_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 2022","noFixRecorded":false,"fixedIn":null},{"text":"2022","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2022 | 2022","eol":null,"hubHref":"/vendor/siemens/simatic_process_historian_opc_ua_server"},{"vendor":"siemens","product":"simatic_wincc","name":"simatic wincc","label":"simatic_wincc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/siemens/simatic_wincc"},{"vendor":"siemens","product":"simatic_wincc_runtime","name":"simatic wincc runtime","label":"simatic_wincc_runtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/siemens/simatic_wincc_runtime"},{"vendor":"siemens","product":"simatic_wincc_unified_scada_runtime","name":"simatic wincc unified scada runtime","label":"simatic_wincc_unified_scada_runtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/siemens/simatic_wincc_unified_scada_runtime"},{"vendor":"siemens","product":"telecontrol_server_basic","name":"telecontrol server basic","label":"telecontrol_server_basic","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.0","eol":null,"hubHref":"/vendor/siemens/telecontrol_server_basic"}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://opcfoundation.org/security-bulletins/","label":"opcfoundation.org/security-bulletins/","hostname":"opcfoundation.org","tags":["X Refsource MISC","Vendor Advisory"]},{"url":"https://files.opcfoundation.org/SecurityBulletins/OPC%20Foundation%20Security%20Bulletin%20CVE-2021-40142.pdf","label":"files.opcfoundation.org/SecurityBulletins/…","hostname":"files.opcfoundation.org","tags":["X Refsource MISC","Patch","Vendor Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-321292.pdf","label":"cert-portal.siemens.com/productcert/pdf/ssa-321292.pdf","hostname":"cert-portal.siemens.com","tags":["X Refsource CONFIRM","Patch","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-08-27T06:51:28.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:27:31.711Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:13:12.984Z","stale":false,"partial":false}}