Skip to content

An insecure deserialization vulnerability in `career.lib.php` and `import_csv.php` allows an attacker who can influence database content to execute arbitrary code on the server via PHP Object Injection (POP chain). (=2.0.0)

High
ywarnier published GHSA-pr59-4rm7-ghwx Jun 23, 2026

Package

Chamilo LMS (PHP)

Affected versions

2.0.0

Patched versions

2.0.1

Description

Two locations call PHP's native unserialize() on data retrieved from the database without the allowed_classes: false safety option:

File: public/main/inc/lib/career.lib.php — Line 495

$userResult = unserialize($careerData['extra_data']);

File: public/main/cron/import_csv.php — Line 2768

$userResult = unserialize($userCareerData['extra_data']);

The extra_data column is populated from user_career records. If an attacker can write crafted serialized PHP objects into this column (e.g., via a secondary SQL injection, a compromised admin CSV import, or a lower-privilege admin panel), they can instantiate arbitrary PHP objects and trigger POP gadget chains present in Symfony, Doctrine, or Monolog — all of which are in the autoloader.

The codebase already provides a safe wrapper at public/main/inc/lib/UnserializeApi.php which enforces an allowed-class whitelist. Line 475 of the same file (career.lib.php) correctly uses UnserializeApi::unserialize('career', $item['value']), proving the safe API is available but was not applied consistently.

Impact

Remote Code Execution (RCE). Any attacker who can write to the user_career.extra_data database column (via CSV import, SQL injection, or admin access) can execute arbitrary OS commands as the web server user. This compromises full server confidentiality, integrity, and availability.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2026-45145

Weaknesses

No CWEs

Credits