CVE-2016-1904

Source
https://nvd.nist.gov/vuln/detail/CVE-2016-1904
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-1904.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2016-1904
Published
2016-01-19T05:59:09.373Z
Modified
2025-11-14T04:35:06.939616Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
[none]
Details

Multiple integer overflows in ext/standard/exec.c in PHP 7.x before 7.0.2 allow remote attackers to cause a denial of service or possibly have unspecified other impact via a long string to the (1) phpescapeshellcmd or (2) phpescapeshellarg function, leading to a heap-based buffer overflow.

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
Fixed

Affected versions

Other

NEWS
NEWS-cvs2svn
POST_64BIT_BRANCH_MERGE
POST_AST_MERGE
POST_NATIVE_TLS_MERGE
POST_PHP7_EREG_MYSQL_REMOVALS
POST_PHP7_NSAPI_REMOVAL
POST_PHP7_REMOVALS
POST_PHPNG_MERGE
PRE_64BIT_BRANCH_MERGE
PRE_AST_MERGE
PRE_NATIVE_TLS_MERGE
PRE_PHP7_EREG_MYSQL_REMOVALS
PRE_PHP7_NSAPI_REMOVAL
PRE_PHP7_REMOVALS
PRE_PHPNG_MERGE

php-5.*

php-5.3.23RC1
php-5.3.29
php-5.3.29RC1
php-5.4.30RC1
php-5.4.32RC1
php-5.4.4RC2
php-5.5.24RC1

Database specific

vanir_signatures

[
    {
        "target": {
            "function": "php_escape_shell_cmd",
            "file": "ext/standard/exec.c"
        },
        "source": "https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "id": "CVE-2016-1904-ab212364",
        "digest": {
            "function_hash": "226189531185488838476725418751739334044",
            "length": 1400.0
        }
    },
    {
        "target": {
            "file": "ext/standard/exec.c"
        },
        "source": "https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "id": "CVE-2016-1904-b1127e15",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "117659872304452985398727624562538687260",
                "320556668755691563286244707536482766367",
                "11794313782276392130508157765939661100",
                "228617998571887586856532336695393756614",
                "142460229576488875644992908042681967756",
                "244165684301463545340692676494172903712",
                "32489114690226811644780649320839838199",
                "88025627161522347905451764707748517810"
            ]
        }
    },
    {
        "target": {
            "function": "php_escape_shell_arg",
            "file": "ext/standard/exec.c"
        },
        "source": "https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "id": "CVE-2016-1904-f650a616",
        "digest": {
            "function_hash": "218805386897322723145400729357493747163",
            "length": 1318.0
        }
    }
]