GLSA-200603-22 : PHP: Format string and XSS vulnerabilities

medium Nessus Plugin ID 21129
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.


The remote Gentoo host is missing one or more security-related patches.


The remote host is affected by the vulnerability described in GLSA-200603-22 (PHP: Format string and XSS vulnerabilities)

Stefan Esser of the Hardened PHP project has reported a few vulnerabilities found in PHP:
Input passed to the session ID in the session extension isn't properly sanitised before being returned to the user via a 'Set-Cookie' HTTP header, which can contain arbitrary injected data.
A format string error while processing error messages using the mysqli extension in version 5.1 and above.
Impact :

By sending a specially crafted request, a remote attacker can exploit this vulnerability to inject arbitrary HTTP headers, which will be included in the response sent to the user. The format string vulnerability may be exploited to execute arbitrary code.
Workaround :

There is no known workaround at this time.


All PHP 5.x users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-lang/php-5.1.2' All PHP 4.x users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-lang/php-4.4.2'

See Also

Plugin Details

Severity: Medium

ID: 21129

File Name: gentoo_GLSA-200603-22.nasl

Version: 1.16

Type: local

Published: 3/23/2006

Updated: 1/6/2021

Dependencies: ssh_get_info.nasl

Risk Information


Risk Factor: Low

Score: 3.4


Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N

Temporal Vector: E:U/RL:OF/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:php, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 3/22/2006

Vulnerability Publication Date: 1/11/2006

Reference Information

CVE: CVE-2006-0207, CVE-2006-0208

BID: 16220

GLSA: 200603-22