Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-10159

Integer overflow in the phar_parse_pharfile function in ext/phar/phar.c in PHP before 5.6.30 and 7.0.x before 7.0.15 allows remote attackers to cause a denial of service (memory consumption or application crash) via a truncated manifest entry in a PHAR archive.

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

Source evidence

CVE-2016-10159

core-osv · Original source

Published 24 Jan 2017, 21:59 UTC

Integer overflow in the phar_parse_pharfile function in ext/phar/phar.c in PHP before 5.6.30 and 7.0.x before 7.0.15 allows remote attackers to cause a denial of service (memory consumption or application crash) via a truncated manifest entry in a PHAR archive.

osv:CVE-2016-10159
Complete source record
{
  "id": "8f2274034737dcc417ea068358f2f83ba012bc8636c100d24a086de3479de9d5",
  "url": "https://osv.dev/vulnerability/CVE-2016-10159",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-10159",
    "summary": "Integer overflow in the phar_parse_pharfile function in ext/phar/phar.c in PHP before 5.6.30 and 7.0.x before 7.0.15 allows remote attackers to cause a denial of service (memory consumption or application crash) via a truncated manifest entry in a PHAR archive.",
    "evidence": "osv:CVE-2016-10159",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-10159",
      "aliases": [
        "CVE-2016-10159"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/php/php-src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "b4e4201c1c18eff67450b7d73ff028b81610e749"
                },
                {
                  "introduced": "60fffd296abce5fc071f3c173c25a2696cf683c6"
                },
                {
                  "fixed": "cc766d7730bdec064e32f8009154fa672b34ef9b"
                },
                {
                  "introduced": "0221e9f827632942225586687a33cfd554860d5e"
                },
                {
                  "last_affected": "0221e9f827632942225586687a33cfd554860d5e"
                },
                {
                  "fixed": "ca46d0acbce55019b970fcd4c1e8a10edfdded93"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "5.6.29"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.0.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.1.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.1.0-NA"
                      },
                      {
                        "last_affected": "7.1.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ca46d0acbce55019b970fcd4c1e8a10edfdded93"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "7.1.0-NA",
            "php-7.0.15RC1",
            "php-5.6.29",
            "php-5.6.29RC1",
            "php-7.1.0",
            "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-10159.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-10159-c6d30f0a",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "121052452896400164276001498621023313905",
                    "262168943274424758961694766712839997290",
                    "35360108606078329448889142211054414706",
                    "145313471589252137248472230406309010104",
                    "314417463545681779499062229029939122698",
                    "74004429412006798345526032305741375125",
                    "36646184072252867127774558500130006594",
                    "331527402370172640660609847974879528962"
                  ]
                },
                "source": "https://github.com/php/php-src/commit/ca46d0acbce55019b970fcd4c1e8a10edfdded93",
                "target": {
                  "file": "ext/phar/phar.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:11:54Z"
          }
        }
      ],
      "modified": "2026-10-24T14:11:54.515692876Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2018:1296",
        "https://security.gentoo.org/glsa/201702-29",
        "https://security.netapp.com/advisory/ntap-20180112-0001/",
        "https://www.tenable.com/security/tns-2017-04",
        "https://bugs.php.net/bug.php?id=73764",
        "https://github.com/php/php-src/commit/ca46d0acbce55019b970fcd4c1e8a10edfdded93"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-10159",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443273,
  "published_at": "2017-01-24T21:59:00.18+00:00"
}