CVE-2010-3065: Medium severity PHP PHP vulnerability

Published Jul 28, 2010
·
Updated

Stefan Esser discovered that PHP did not properly handle PSUNDEFMARKER ('!') character in session variable names. In cases where PHP script generated session variable names from untrusted user input, a malicious user could use this flaw to inject arbitrary variable into session. This could create additional attack vector for exploiting other possible unserialization flaws.

Reference: http://php-security.org/2010/05/31/mops-2010-060-php-session-serializer-session-data-injection-vulnerability/index.html

Upstream fix, added in 5.3.3 and 5.2.14: http://svn.php.net/viewvc?view=revision&revision=298608

Other sources

The default session serializer in PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 does not properly handle the PSUNDEFMARKER marker, which allows context-dependent attackers to modify arbitrary session variables via a crafted session variable name.

Affected Software

17 affected components
PHP PHP=5.2.9
PHP PHP=5.3.1
PHP PHP=5.2.7
PHP PHP=5.2.2
PHP PHP=5.2.5
PHP PHP=5.2.12
PHP PHP=5.2.11
PHP PHP=5.2.6
PHP PHP=5.3.0
PHP PHP=5.2.3
PHP PHP=5.2.13
PHP PHP=5.2.0
PHP PHP=5.2.4
PHP PHP=5.3.2
PHP PHP=5.2.10
PHP PHP=5.2.1
PHP PHP=5.2.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 5.3.3
  2. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 5.2.14

Event History

Jul 28, 2010
Data Sourced
via Red Hat·12:06 PM
DescriptionSeverityAffected Software
Aug 20, 2010
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Data Sourced
08:00 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·08:00 PM
DescriptionSeverityWeaknessAffected Software
Dec 10, 2010
Data Sourced
06:44 AM
Severity

Frequently Asked Questions

1

What is the severity of CVE-2010-3065?

CVE-2010-3065 is considered a moderate severity vulnerability due to its potential to allow attackers to modify session variables.

2

How do I fix CVE-2010-3065?

To fix CVE-2010-3065, upgrade your PHP version to 5.3.3 or later, as the vulnerability has been rectified in those versions.

3

Which versions of PHP are affected by CVE-2010-3065?

CVE-2010-3065 affects PHP versions 5.2.0 through 5.2.13 and 5.3.0 through 5.3.2.

4

What type of attack is possible with CVE-2010-3065?

CVE-2010-3065 allows context-dependent attackers to inject arbitrary session data by manipulating the session variable name.

5

Is CVE-2010-3065 still a concern for current PHP installations?

CVE-2010-3065 is not a concern for current PHP installations if they are updated to versions beyond 5.3.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203