CVE catalog

CVE-2015-8865

file: CVE-2015-8865

[CVE catalog]

Severity
Medium · CVSS 5.6CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
5.48% · Oct 27, 2026

The file_check_mem function in funcs.c in file before 5.23, as used in the Fileinfo component in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5, mishandles continuation-level jumps, which allows context-dependent attackers to cause a denial of service (buffer overflow and application crash) or possibly execute arbitrary code via a crafted magic file.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianfilesid1:5.47-4fixed
Debianfileforky1:5.47-4fixed
Debianfiletrixie1:5.46-5fixed
Debianfilebookworm1:5.44-3fixed
Ubuntufile14.045.11-2ubuntu4vulnerable
Ubuntufile14.041:5.14-2ubuntu1vulnerable
Ubuntufile14.041:5.14-2ubuntu2vulnerable
Ubuntufile14.041:5.14-2ubuntu3vulnerable
Ubuntufile14.041:5.14-2ubuntu3.1vulnerable
Ubuntufile14.041:5.14-2ubuntu3.2vulnerable
Ubuntufile14.041:5.14-2ubuntu3.3vulnerable
Ubuntufile14.041:5.14-2ubuntu3.4fixed
Ubuntuphp514.045.5.3+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.3+dfsg-1ubuntu3vulnerable
Ubuntuphp514.045.5.6+dfsg-1ubuntu1vulnerable
Ubuntuphp514.045.5.6+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.8+dfsg-2ubuntu1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu3vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.2vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.3vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.4vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.5vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.6vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.7vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.9vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.11vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.12vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.13vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.14vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.16fixed
Ubuntuphp7.016.047.0.1-5vulnerable
Ubuntuphp7.016.047.0.1-6vulnerable
Ubuntuphp7.016.047.0.2-1vulnerable
Ubuntuphp7.016.047.0.2-3vulnerable
Ubuntuphp7.016.047.0.2-4vulnerable
Ubuntuphp7.016.047.0.2-5vulnerable
Ubuntuphp7.016.047.0.3-2vulnerable
Ubuntuphp7.016.047.0.3-3vulnerable
Ubuntuphp7.016.047.0.3-9ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-5ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-5ubuntu2vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu2vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu2.1fixed
Ubuntuphp514.045.5.3+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.3+dfsg-1ubuntu3vulnerable
Ubuntuphp514.045.5.6+dfsg-1ubuntu1vulnerable
Ubuntuphp514.045.5.6+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.8+dfsg-2ubuntu1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu2vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu3vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.1vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.2vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.3vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.4vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.5vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.6vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.7vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.9vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.11vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.12vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.13vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.14vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.16vulnerable
Ubuntuphp514.045.5.9+dfsg-1ubuntu4.17fixed
Ubuntuphp7.016.047.0.1-5vulnerable
Ubuntuphp7.016.047.0.1-6vulnerable
Ubuntuphp7.016.047.0.2-1vulnerable
Ubuntuphp7.016.047.0.2-3vulnerable
Ubuntuphp7.016.047.0.2-4vulnerable
Ubuntuphp7.016.047.0.2-5vulnerable
Ubuntuphp7.016.047.0.3-2vulnerable
Ubuntuphp7.016.047.0.3-3vulnerable
Ubuntuphp7.016.047.0.3-9ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-5ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-5ubuntu2vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu1vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu2vulnerable
Ubuntuphp7.016.047.0.4-7ubuntu2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianfilesourcesid1:5.24-1not yet assignedNot reported[827377]
Debianfilesourceforky1:5.24-1not yet assignedNot reported[827377]
Debianfilesourcetrixie1:5.24-1not yet assignedNot reported[827377]
Debianfilesourcebookworm1:5.24-1not yet assignedNot reported[827377]
Ubuntufiledeb14.041:5.14-2ubuntu3.4Not reportedUBUNTU-CVE-2015-8865Not reported
Ubuntuphp5deb14.045.5.9+dfsg-1ubuntu4.16Not reportedUBUNTU-CVE-2015-8865Not reported
Ubuntuphp7.0deb16.047.0.4-7ubuntu2.1Not reportedUBUNTU-CVE-2015-8865Not reported
Ubuntuphp5deb14.045.5.9+dfsg-1ubuntu4.17Not reportedUSN-2984-1Not reported
Ubuntuphp7.0deb16.047.0.4-7ubuntu2.1Not reportedUSN-2984-1Not reported

[Debian bug #827377]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [file]Fixed
    Details (2)
    • 1:5.44-3 · amd64 · bookworm

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · bookworm; dsa · file · debian · 12

    • 1:5.44-3 · arm64 · bookworm

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · bookworm; dsa · file · debian · 12

  • [libmagic1]Fixed

    Source package: [file]

    Details (2)
    • 1:5.44-3 · amd64 · bookworm

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · bookworm; dsa · file · debian · 12

    • 1:5.44-3 · arm64 · bookworm

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · bookworm; dsa · file · debian · 12

  • Source package: [file]

    Details (2)
    • 1:5.44-3 · amd64 · bookworm

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · bookworm; dsa · file · debian · 12

    • 1:5.44-3 · arm64 · bookworm

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · bookworm; dsa · file · debian · 12

  • Source package: [file]

    Details (2)
    • 1:5.44-3 · amd64 · bookworm

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · bookworm; dsa · file · debian · 12

    • 1:5.44-3 · arm64 · bookworm

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · bookworm; dsa · file · debian · 12

[Debian 13 (Trixie)]

  • [file]Fixed
    Details (2)
    • 1:5.46-5 · amd64 · trixie

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · 13

    • 1:5.46-5 · arm64 · trixie

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · 13

  • Source package: [file]

    Details (2)
    • 1:5.46-5 · amd64 · trixie

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · 13

    • 1:5.46-5 · arm64 · trixie

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · 13

  • Source package: [file]

    Details (2)
    • 1:5.46-5 · amd64 · trixie

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · 13

    • 1:5.46-5 · arm64 · trixie

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · 13

  • Source package: [file]

    Details (2)
    • 1:5.46-5 · amd64 · trixie

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · 13

    • 1:5.46-5 · arm64 · trixie

      Fixed · Fixed: 1:5.24-1

      dsa · file · debian · 13

Observed:

References