CVE-2016-7125

NameCVE-2016-7125
Descriptionext/session/session.c in PHP before 5.6.25 and 7.x before 7.0.10 skips invalid session names in a way that triggers incorrect parsing, which allows remote attackers to inject arbitrary-type session data by leveraging control of a session name, as demonstrated by object injection.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-628-1, DSA-3689-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php5 (PTS)jessie, jessie (lts)5.6.40+dfsg-0+deb8u21fixed
php7.0 (PTS)stretch (security)7.0.33-0+deb9u12fixed
stretch (lts), stretch7.0.33-0+deb9u19fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php5sourcewheezy5.4.45-0+deb7u5DLA-628-1
php5sourcejessie5.6.26+dfsg-0+deb8u1DSA-3689-1
php5source(unstable)5.6.26+dfsg-1
php7.0source(unstable)7.0.10-1

Notes

PHP Bug: https://bugs.php.net/bug.php?id=72681
Fixed in 7.0.10, 5.6.25
https://www.openwall.com/lists/oss-security/2016/09/02/5
https://github.com/php/php-src/commit/8763c6090d627d8bb0ee1d030c30e58f406be9ce?w=1
Scope of CVE also includes the "The similar issue also exist in session php_binary
handler" part of 72681.

Search for package or bug name: Reporting problems