CVE-2016-5768

Source
https://cve.org/CVERecord?id=CVE-2016-5768
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5768.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-5768
Downstream
Related
Published
2016-08-07T10:59:16.007Z
Modified
2026-04-16T06:22:05.115528768Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Double free vulnerability in the phpmbregexeregreplaceexec function in php_mbregex.c in the mbstring extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by leveraging a callback exception.

References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.5.36"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-alpha1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-alpha2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-alpha3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-beta1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-beta2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-beta3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-beta4"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.4"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.5"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.6"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.7"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.8"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.9"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.10"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.11"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.12"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.13"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.14"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.15"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.16"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.17"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.18"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.19"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.20"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.21"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.22"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.4"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.5"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.6"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.7"
        }
    ]
}

Affected versions

Other
POST_64BIT_BRANCH_MERGE
POST_AST_MERGE
POST_PHP7_NSAPI_REMOVAL
POST_PHP7_REMOVALS
POST_PHPNG_MERGE
PRE_64BIT_BRANCH_MERGE
PRE_AST_MERGE
PRE_PHP7_EREG_MYSQL_REMOVALS
PRE_PHP7_NSAPI_REMOVAL
PRE_PHP7_REMOVALS
php-5.*
php-5.5.36
php-5.6.0alpha1
php-5.6.0alpha2
php-5.6.0alpha3
php-5.6.0beta1
php-5.6.0beta2
php-5.6.0beta3
php-5.6.0beta4
php-5.6.1
php-5.6.10
php-5.6.10RC1
php-5.6.11
php-5.6.11RC1
php-5.6.12
php-5.6.12RC1
php-5.6.13
php-5.6.13RC1
php-5.6.14
php-5.6.14RC1
php-5.6.15
php-5.6.15RC1
php-5.6.16
php-5.6.16RC1
php-5.6.17
php-5.6.17RC1
php-5.6.18
php-5.6.19
php-5.6.19RC1
php-5.6.1RC1
php-5.6.2
php-5.6.20
php-5.6.20RC1
php-5.6.21
php-5.6.21RC1
php-5.6.22
php-5.6.22RC1
php-5.6.3
php-5.6.3RC1
php-5.6.4
php-5.6.4RC1
php-5.6.5
php-5.6.5RC1
php-5.6.6
php-5.6.6RC1
php-5.6.7
php-5.6.7RC1
php-5.6.8
php-5.6.8RC1
php-5.6.9
php-5.6.9RC1
php-7.*
php-7.0.0
php-7.0.0RC1
php-7.0.0RC2
php-7.0.0RC3
php-7.0.0RC4
php-7.0.0RC5
php-7.0.0RC6
php-7.0.0RC7
php-7.0.0RC8
php-7.0.0alpha1
php-7.0.0alpha2
php-7.0.0beta1
php-7.0.0beta2
php-7.0.0beta3
php-7.0.1
php-7.0.1RC1
php-7.0.2
php-7.0.2RC1
php-7.0.3
php-7.0.4
php-7.0.4RC1
php-7.0.5
php-7.0.5RC1
php-7.0.6
php-7.0.6RC1
php-7.0.7
php-7.0.7RC1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5768.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.6.0-alpha4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.6.0-alpha5"
            }
        ]
    }
]
vanir_signatures_modified
"2026-04-11T04:02:24Z"
vanir_signatures
[
    {
        "signature_type": "Function",
        "digest": {
            "length": 4778.0,
            "function_hash": "80211644445470177327357614177420692722"
        },
        "source": "https://github.com/php/php-src/commit/5b597a2e5b28e2d5a52fc1be13f425f08f47cb62",
        "target": {
            "file": "ext/mbstring/php_mbregex.c",
            "function": "_php_mb_regex_ereg_replace_exec"
        },
        "deprecated": false,
        "signature_version": "v1",
        "id": "CVE-2016-5768-62f748d5"
    }
]