Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-5096

Integer overflow in the fread function in ext/standard/file.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer in the second argument.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-5096
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:10 UTC · Revision 1

Source evidence

CVE-2016-5096

core-osv · Original source

Published 7 Aug 2016, 10:59 UTC

Integer overflow in the fread function in ext/standard/file.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer in the second argument.

osv:CVE-2016-5096
Complete source record
{
  "id": "c35f87a86a6883331dd5719c7a75da0580f09fd04489cd755bcba5511d1f36a7",
  "url": "https://osv.dev/vulnerability/CVE-2016-5096",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-5096",
    "summary": "Integer overflow in the fread function in ext/standard/file.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer in the second argument.",
    "evidence": "osv:CVE-2016-5096",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-5096",
      "aliases": [
        "CVE-2016-5096"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/php/php-src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "9d10b0109258e8ea797c8977c5932d162d6c6004"
                },
                {
                  "introduced": "8648f76bac2f78391a1539253f21d62f53d83022"
                },
                {
                  "last_affected": "50a8b9527a2317ba861ad0b660ff981f69941cfd"
                },
                {
                  "fixed": "abd159cce48f3e34f08e4751c568e09677d5ec9c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "5.5.35"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-alpha1"
                      },
                      {
                        "last_affected": "5.6.0-alpha1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-alpha2"
                      },
                      {
                        "last_affected": "5.6.0-alpha2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-alpha3"
                      },
                      {
                        "last_affected": "5.6.0-alpha3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-beta1"
                      },
                      {
                        "last_affected": "5.6.0-beta1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-beta2"
                      },
                      {
                        "last_affected": "5.6.0-beta2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-beta3"
                      },
                      {
                        "last_affected": "5.6.0-beta3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-beta4"
                      },
                      {
                        "last_affected": "5.6.0-beta4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.1"
                      },
                      {
                        "last_affected": "5.6.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.2"
                      },
                      {
                        "last_affected": "5.6.2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.3"
                      },
                      {
                        "last_affected": "5.6.3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.4"
                      },
                      {
                        "last_affected": "5.6.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.5"
                      },
                      {
                        "last_affected": "5.6.5"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.6"
                      },
                      {
                        "last_affected": "5.6.6"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.7"
                      },
                      {
                        "last_affected": "5.6.7"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.8"
                      },
                      {
                        "last_affected": "5.6.8"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.9:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.9"
                      },
                      {
                        "last_affected": "5.6.9"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.10"
                      },
                      {
                        "last_affected": "5.6.10"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.11:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.11"
                      },
                      {
                        "last_affected": "5.6.11"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.12"
                      },
                      {
                        "last_affected": "5.6.12"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.13:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.13"
                      },
                      {
                        "last_affected": "5.6.13"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.14"
                      },
                      {
                        "last_affected": "5.6.14"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.15:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.15"
                      },
                      {
                        "last_affected": "5.6.15"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.16"
                      },
                      {
                        "last_affected": "5.6.16"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.17:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.17"
                      },
                      {
                        "last_affected": "5.6.17"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.18:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.18"
                      },
                      {
                        "last_affected": "5.6.18"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.19:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.19"
                      },
                      {
                        "last_affected": "5.6.19"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.20:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.20"
                      },
                      {
                        "last_affected": "5.6.20"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.21:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.21"
                      },
                      {
                        "last_affected": "5.6.21"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "abd159cce48f3e34f08e4751c568e09677d5ec9c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.6.0-alpha1",
            "5.6.0-alpha2",
            "5.6.0-alpha3",
            "5.6.0-beta1",
            "5.6.0-beta2",
            "5.6.0-beta3",
            "5.6.0-beta4",
            "5.6.1",
            "5.6.10",
            "5.6.11",
            "5.6.12",
            "5.6.13",
            "5.6.14",
            "5.6.15",
            "5.6.16",
            "5.6.17",
            "5.6.18",
            "5.6.19",
            "5.6.2",
            "5.6.20",
            "5.6.21",
            "5.6.3",
            "5.6.4",
            "5.6.5",
            "5.6.6",
            "5.6.7",
            "5.6.8",
            "5.6.9",
            "php-5.6.21",
            "php-5.5.35",
            "php-5.6.21RC1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5096.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-5096-9cdc50fc",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "59658699804530916909432655870060592158",
                    "150474154856362723912272717948342756027",
                    "317588566651663129606302716960869322617"
                  ]
                },
                "source": "https://github.com/php/php-src/commit/abd159cce48f3e34f08e4751c568e09677d5ec9c",
                "target": {
                  "file": "ext/standard/file.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-5096-efa3368b",
                "digest": {
                  "length": 572,
                  "function_hash": "85333988347855488580493020040994606941"
                },
                "source": "https://github.com/php/php-src/commit/abd159cce48f3e34f08e4751c568e09677d5ec9c",
                "target": {
                  "file": "ext/standard/file.c",
                  "function": "PHP_FUNCTION"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:15:23Z"
          }
        }
      ],
      "modified": "2026-10-20T13:15:23.314855976Z",
      "provider": "osv",
      "references": [
        "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731",
        "https://github.com/php/php-src/commit/abd159cce48f3e34f08e4751c568e09677d5ec9c?w=1",
        "https://bugs.php.net/bug.php?id=72114"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:*",
              "cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*"
            ],
            "vendor_product": "php:php",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.6.0-alpha4"
                  },
                  {
                    "last_affected": "5.6.0-alpha4"
                  },
                  {
                    "introduced": "5.6.0-alpha5"
                  },
                  {
                    "last_affected": "5.6.0-alpha5"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-5096",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387397,
  "published_at": "2016-08-07T10:59:09.757+00:00"
}