{"id":"UBUNTU-CVE-2023-40857","details":"Buffer Overflow vulnerability in VirusTotal yara v.4.3.2 allows a remote attacker to execute arbtirary code via the yr_execute_cod function in the exe.c component.","modified":"2026-04-22T14:11:18.374179Z","published":"2023-08-28T22:15:00Z","upstream":["CVE-2023-40857"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-40857"},{"type":"REPORT","url":"https://github.com/VirusTotal/yara/issues/1945"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-40857"}],"affected":[{"package":{"name":"yara","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/yara@3.4.0+dfsg-2ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0+dfsg-2","3.4.0+dfsg-2build1","3.4.0+dfsg-2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyara3","binary_version":"3.4.0+dfsg-2ubuntu0.1~esm1"},{"binary_name":"python-yara","binary_version":"3.4.0+dfsg-2ubuntu0.1~esm1"},{"binary_name":"python3-yara","binary_version":"3.4.0+dfsg-2ubuntu0.1~esm1"},{"binary_name":"yara","binary_version":"3.4.0+dfsg-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40857.json"}},{"package":{"name":"yara","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/yara@3.7.1-1ubuntu2+esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.3+dfsg-1ubuntu1","3.7.1-1ubuntu1","3.7.1-1ubuntu2","3.7.1-1ubuntu2+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyara3","binary_version":"3.7.1-1ubuntu2+esm1"},{"binary_name":"yara","binary_version":"3.7.1-1ubuntu2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40857.json"}},{"package":{"name":"yara","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/yara@3.9.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.9.0-1","3.9.0-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyara3","binary_version":"3.9.0-1ubuntu0.1~esm1"},{"binary_name":"yara","binary_version":"3.9.0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40857.json"}},{"package":{"name":"yara","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/yara@4.1.3-1build1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.0-1","4.1.3-1","4.1.3-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyara8","binary_version":"4.1.3-1build1"},{"binary_name":"yara","binary_version":"4.1.3-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40857.json"}},{"package":{"name":"yara","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/yara@4.5.0-1build2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3.2-1","4.4.0-1","4.5.0-1","4.5.0-1build1","4.5.0-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libyara10","binary_version":"4.5.0-1build2"},{"binary_name":"yara","binary_version":"4.5.0-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40857.json"}},{"package":{"name":"yara","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/yara@4.5.4-1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.2-1","4.5.3-1","4.5.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyara10","binary_version":"4.5.4-1"},{"binary_name":"yara","binary_version":"4.5.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-40857.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}