{"id":"UBUNTU-CVE-2015-2331","details":"Integer overflow in the _zip_cdir_new function in zip_dirent.c in libzip 0.11.2 and earlier, as used in the ZIP extension in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 and other products, allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a ZIP archive that contains many entries, leading to a heap-based buffer overflow.","modified":"2025-07-16T08:17:41.901393Z","published":"2015-03-30T10:59:00Z","withdrawn":"2025-07-18T16:43:10Z","upstream":["CVE-2015-2331"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2015-2331"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2015/03/18/1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2015-2331"}],"affected":[{"package":{"name":"libzip","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/libzip@0.10.1-1.2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.1-1.2"}]}],"versions":["0.10.1-1.1ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libzip-dev","binary_version":"0.10.1-1.2"},{"binary_name":"libzip2","binary_version":"0.10.1-1.2"},{"binary_name":"zipcmp","binary_version":"0.10.1-1.2"},{"binary_name":"zipmerge","binary_version":"0.10.1-1.2"},{"binary_name":"ziptorrent","binary_version":"0.10.1-1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2015/UBUNTU-CVE-2015-2331.json"}},{"package":{"name":"php5","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/php5@5.5.9+dfsg-1ubuntu4.7?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.9+dfsg-1ubuntu4.7"}]}],"versions":["5.5.3+dfsg-1ubuntu2","5.5.3+dfsg-1ubuntu3","5.5.6+dfsg-1ubuntu1","5.5.6+dfsg-1ubuntu2","5.5.8+dfsg-2ubuntu1","5.5.9+dfsg-1ubuntu1","5.5.9+dfsg-1ubuntu2","5.5.9+dfsg-1ubuntu3","5.5.9+dfsg-1ubuntu4","5.5.9+dfsg-1ubuntu4.1","5.5.9+dfsg-1ubuntu4.2","5.5.9+dfsg-1ubuntu4.3","5.5.9+dfsg-1ubuntu4.4","5.5.9+dfsg-1ubuntu4.5","5.5.9+dfsg-1ubuntu4.6"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libapache2-mod-php5","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"libapache2-mod-php5filter","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"libphp5-embed","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php-pear","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-cgi","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-cli","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-common","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-curl","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-dbg","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-dev","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-enchant","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-fpm","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-gd","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-gmp","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-intl","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-ldap","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-mysql","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-mysqlnd","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-odbc","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-pgsql","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-pspell","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-readline","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-recode","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-snmp","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-sqlite","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-sybase","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-tidy","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-xmlrpc","binary_version":"5.5.9+dfsg-1ubuntu4.7"},{"binary_name":"php5-xsl","binary_version":"5.5.9+dfsg-1ubuntu4.7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2015/UBUNTU-CVE-2015-2331.json"}}],"schema_version":"1.7.3","severity":[{"type":"Ubuntu","score":"medium"}]}