{"id":"UBUNTU-CVE-2018-4022","details":"A use-after-free vulnerability exists in the way MKVToolNix MKVINFO v25.0.0 handles the MKV (matroska) file format. A specially crafted MKV file can cause arbitrary code execution in the context of the current user.","modified":"2026-05-20T16:03:39.765535587Z","published":"2018-10-26T17:29:00Z","upstream":["CVE-2018-4022"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-4022"},{"type":"REPORT","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2018-0694"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-4022"}],"affected":[{"package":{"name":"mkvtoolnix","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/mkvtoolnix?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.2.0-2","8.5.1-1","8.5.2-1","8.6.0-1","8.6.1-1","8.7.0-1","8.8.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"mkvtoolnix","binary_version":"8.8.0-1"},{"binary_name":"mkvtoolnix-gui","binary_version":"8.8.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-4022.json"}},{"package":{"name":"mkvtoolnix","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/mkvtoolnix?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15.0.0-1","15.0.0-1build1","17.0.0-2","18.0.0-1","19.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"mkvtoolnix","binary_version":"19.0.0-1"},{"binary_name":"mkvtoolnix-gui","binary_version":"19.0.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-4022.json"}},{"package":{"name":"mkvtoolnix","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/mkvtoolnix?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["37.0.0-1build1","38.0.0-1","39.0.0-1","40.0.0-1","40.0.0-3","41.0.0-1","42.0.0-1","43.0.0-1","43.0.0-1ubuntu1","43.0.0-1ubuntu2","44.0.0-1ubuntu1","45.0.0-1ubuntu1","45.0.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"mkvtoolnix","binary_version":"45.0.0-2"},{"binary_name":"mkvtoolnix-gui","binary_version":"45.0.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-4022.json"}},{"package":{"name":"mkvtoolnix","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/mkvtoolnix?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["60.0.0-2","62.0.0-1build1","63.0.0-1","64.0.0-1","65.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"mkvtoolnix","binary_version":"65.0.0-1"},{"binary_name":"mkvtoolnix-gui","binary_version":"65.0.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-4022.json"}},{"package":{"name":"mkvtoolnix","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/mkvtoolnix?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["78.0-2","79.0-1","80.0-1","81.0-1","81.0-1build1","82.0-1","82.0-1build1","82.0-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"mkvtoolnix","binary_version":"82.0-1build2"},{"binary_name":"mkvtoolnix-gui","binary_version":"82.0-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-4022.json"}},{"package":{"name":"mkvtoolnix","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/mkvtoolnix?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["90.0-1build1","92.0-1","92.0-1build2","94.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"94.0-1","binary_name":"mkvtoolnix"},{"binary_name":"mkvtoolnix-gui","binary_version":"94.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-4022.json"}},{"package":{"name":"mkvtoolnix","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/mkvtoolnix?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["94.0-1","95.0-1","96.0-1","97.0-1","97.0-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"97.0-1build1","binary_name":"mkvtoolnix"},{"binary_name":"mkvtoolnix-gui","binary_version":"97.0-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-4022.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}