Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-5399

The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-5399
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:19 UTC · Revision 1

Source evidence

CVE-2016-5399

core-osv · Original source

Published 21 Apr 2017, 20:59 UTC

The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.

osv:CVE-2016-5399
Complete source record
{
  "id": "2b48da58cb9bd6011f751b119eb30ce1085145cea9edf1018ddb72d6ced175cd",
  "url": "https://osv.dev/vulnerability/CVE-2016-5399",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-5399",
    "summary": "The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.",
    "evidence": "osv:CVE-2016-5399",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-5399",
      "aliases": [
        "CVE-2016-5399"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/php/php-src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "d5747a70cf612e653b0e56dfa50efb29bbba273d"
                },
                {
                  "introduced": "fc1df8e7a6886e29a6ed5bef3f674ac61164e847"
                },
                {
                  "fixed": "38980c9ea4156ce52a53f9f3e1007ea3d787fa11"
                },
                {
                  "introduced": "60fffd296abce5fc071f3c173c25a2696cf683c6"
                },
                {
                  "fixed": "9d582eba7448f1495fae62b13d95d2844ce6b28a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "5.5.37"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0"
                      },
                      {
                        "fixed": "5.6.24"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.0.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "php-5.6.24RC1",
            "php-7.0.9RC1",
            "php-5.5.37",
            "POST_PHP7_NSAPI_REMOVAL",
            "PRE_PHP7_NSAPI_REMOVAL",
            "PRE_PHP7_EREG_MYSQL_REMOVALS",
            "PRE_PHP7_REMOVALS",
            "POST_PHP7_REMOVALS",
            "POST_AST_MERGE",
            "PRE_AST_MERGE",
            "POST_64BIT_BRANCH_MERGE",
            "PRE_64BIT_BRANCH_MERGE",
            "POST_PHPNG_MERGE"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5399.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-5399-b7259250",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "198011536025072107975883186380452148843",
                    "331728417024842654446570071457159069395",
                    "205456331668105326830182380336029223146",
                    "164282985402725457749299583506046134408",
                    "320137256578601229186691392718001358014"
                  ]
                },
                "source": "https://github.com/php/php-src/commit/9d582eba7448f1495fae62b13d95d2844ce6b28a",
                "target": {
                  "file": "ext/standard/basic_functions.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:12:10Z"
          }
        }
      ],
      "modified": "2026-10-24T14:12:10.871109710Z",
      "provider": "osv",
      "references": [
        "https://security.netapp.com/advisory/ntap-20180112-0001/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1358395",
        "https://bugs.php.net/bug.php?id=72613",
        "https://www.exploit-db.com/exploits/40155/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2016-5399",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443352,
  "published_at": "2017-04-21T20:59:00.837+00:00"
}