{"schemaVersion":3,"id":"CVE-2019-5063","aliases":["GHSA-m6vm-8g8v-xfjh","PYSEC-2026-2801","PYSEC-2026-2826","PYSEC-2026-2840","PYSEC-2026-724","UBUNTU-CVE-2019-5063","DEBIAN-CVE-2019-5063"],"status":"published","duplicateOf":null,"title":null,"description":"An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV 4.1.0. A specially crafted XML file can cause a buffer overflow, resulting in multiple heap corruptions and potential code execution. An attacker can provide a specially crafted file to trigger this vulnerability.","dates":{"published":"2020-01-03T16:57:31.000Z","modified":"2024-08-04T19:47:56.691Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.21108,"percentile":0.97556,"severity":"high","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.21108},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.21108,"percentile":0.97556}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.21108,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.21108,"percentile":0.97556}]},"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":[{"id":"REF_81AD4A393E348E47","name":"Exploit Reference (talosintelligence.com)","source":"reference","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0852","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"opencv","name":"opencv","label":"opencv","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/opencv","purlType":"deb","versions":[{"text":"< 4.2.0+dfsg-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.0+dfsg-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"opencv","name":"opencv","label":"opencv","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/opencv","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"opencv","product":"opencv","name":"opencv","label":"opencv","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.1.0","eol":null,"hubHref":"/vendor/opencv/opencv"},{"vendor":"oracle","product":"application_testing_suite","name":"application testing suite","label":"application_testing_suite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"13.3.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"13.3.0.1","eol":null,"hubHref":"/vendor/oracle/application_testing_suite"},{"vendor":"oracle","product":"big_data_spatial_and_graph","name":"big data spatial and graph","label":"big_data_spatial_and_graph","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0","eol":null,"hubHref":"/vendor/oracle/big_data_spatial_and_graph"},{"vendor":"oracle","product":"enterprise_manager_base_platform","name":"enterprise manager base platform","label":"enterprise_manager_base_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"13.4.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"13.4.0.0","eol":null,"hubHref":"/vendor/oracle/enterprise_manager_base_platform"},{"vendor":"PyPI","product":"opencv-contrib-python","name":"opencv-contrib-python","label":"opencv-contrib-python","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/opencv-contrib-python","purlType":"pypi","versions":[{"text":"≤ 4.1.0.25","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.1.0.25","eol":null,"hubHref":null},{"vendor":"PyPI","product":"opencv-contrib-python-headless","name":"opencv-contrib-python-headless","label":"opencv-contrib-python-headless","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/opencv-contrib-python-headless","purlType":"pypi","versions":[{"text":"≤ 4.1.0.25","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.1.0.25","eol":null,"hubHref":null},{"vendor":"PyPI","product":"opencv-python","name":"opencv-python","label":"opencv-python","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/opencv-python","purlType":"pypi","versions":[{"text":"≤ 4.1.0.25","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.1.0.25","eol":null,"hubHref":null},{"vendor":"PyPI","product":"opencv-python-headless","name":"opencv-python-headless","label":"opencv-python-headless","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/opencv-python-headless","purlType":"pypi","versions":[{"text":"≤ 4.1.0.25","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.1.0.25","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","label":"www.oracle.com/security-alerts/cpuApr2021.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0852","label":"talosintelligence.com/vulnerability_reports/TALOS-2019-0852","hostname":"talosintelligence.com","tags":["X Refsource MISC","WEB","REPORT","Exploit","Third Party Advisory"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","label":"www.oracle.com//security-alerts/cpujul2021.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5063","label":"nvd.nist.gov/vuln/detail/CVE-2019-5063","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/opencv/opencv/issues/16951","label":"github.com/opencv/opencv/issues/16951","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/opencv/opencv-python","label":"github.com/opencv/opencv-python","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/opencv/opencv-python/releases/tag/25","label":"github.com/opencv/opencv-python/releases/tag/25","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/opencv-contrib-python","label":"pypi.org/project/opencv-contrib-python","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-m6vm-8g8v-xfjh","label":"github.com/advisories/GHSA-m6vm-8g8v-xfjh","hostname":"github.com","tags":["Advisory"]},{"url":"https://pypi.org/project/opencv-python","label":"pypi.org/project/opencv-python","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://pypi.org/project/opencv-python-headless","label":"pypi.org/project/opencv-python-headless","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://pypi.org/project/opencv-contrib-python-headless","label":"pypi.org/project/opencv-contrib-python-headless","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2019-5063","label":"ubuntu.com/security/CVE-2019-5063","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/opencv/opencv/issues/15857","label":"github.com/opencv/opencv/issues/15857","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-5063","label":"www.cve.org/CVERecord?id=CVE-2019-5063","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-5063","label":"security-tracker.debian.org/tracker/CVE-2019-5063","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-01-03T16:57:31.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T19:47:56.691Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":49,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T10:07:20.556Z","stale":false,"partial":false}}