{"id":"UBUNTU-CVE-2021-45423","details":"A Buffer Overflow vulnerabilityexists in Pev 0.81 via the pe_exports function from exports.c.. The array offsets_to_Names is dynamically allocated on the stack using exp-\u003eNumberOfFunctions as its size. However, the loop uses exp-\u003eNumberOfNames to iterate over it and set its components value. Therefore, the loop code assumes that exp-\u003eNumberOfFunctions is greater than ordinal at each iteration. This can lead to arbitrary code execution.","modified":"2025-10-24T04:50:38Z","published":"2023-03-13T18:15:00Z","upstream":["CVE-2021-45423"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-45423"},{"type":"REPORT","url":"https://github.com/merces/libpe/issues/35"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-45423"}],"affected":[{"package":{"name":"pev","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pev@0.40-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.40-1"],"ecosystem_specific":{"binaries":[{"binary_name":"pev","binary_version":"0.40-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45423.json"}},{"package":{"name":"pev","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pev@0.80-4build1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.80-3","0.80-4","0.80-4build1"],"ecosystem_specific":{"binaries":[{"binary_name":"pev","binary_version":"0.80-4build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45423.json"}},{"package":{"name":"pev","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pev@0.80-4build1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.80-4build1"],"ecosystem_specific":{"binaries":[{"binary_name":"pev","binary_version":"0.80-4build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45423.json"}},{"package":{"name":"pev","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pev@0.81-7?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.81-3","0.81-6","0.81-6build1","0.81-7"],"ecosystem_specific":{"binaries":[{"binary_name":"pev","binary_version":"0.81-7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-45423.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}