All vulnerabilities

Servers and applications

CVE-2026-33710

Weak REST API Key Generation (Predictable) (<=1.11.36)

Severity
High 7.5
Published
10 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.11.38
Exploit chance
0.3% in the next 30 daysHigher than 22% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Insufficiently random values (CWE-330)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-rpmg-j327-mr39
Sources
NVD, Project advisories (GitHub)

Description

REST API keys are generated using md5(time() + (user_id * 5) - rand(10000, 10000)). The rand(10000, 10000) call always returns exactly 10000 (min == max), making the formula effectively md5(timestamp + user_id*5 - 10000). An attacker who knows a username and approximate key creation time can brute-force the API key.

Affected code: main/inc/lib/usermanager.lib.php (Line 4521)

  • time(): Unix timestamp at key creation
  • $user_id: sequential integer, admin is typically 1
  • rand(10000, 10000): always returns 10000 (min == max is a no-op)
  • Result: md5(timestamp + user_id*5 - 10000) -- fully deterministic given timestamp

Keyspace for 24-hour window: 86,400 possibilities. For 1-hour window: 3,600 attempts.

  • Any user's API key is brute-forceable without knowing their password
  • Combined with Advisory 1 (privilege escalation), enables unauthenticated attack chain:
  • Brute-force API key → use update_user_from_username → escalate privileges
  • Combined with Advisory 5 (PII) + Advisory 3…
From chamilo/chamilo-lms's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Chamilo LMSServers and applications · cpe:a:chamilo:chamilo_lms
  • Version 2.0.0-rc2
  • Version 2.0.0-rc1
  • Version 2.0.0-beta3
  • Version 2.0.0-beta2
All 11 release lines
  • Every version before 1.11.38
  • Version 2.0.0-alpha1
  • Version 2.0.0-alpha2
  • Version 2.0.0-alpha3
  • Version 2.0.0-alpha4
  • Version 2.0.0-alpha5
  • Version 2.0.0-beta1
  • Version 2.0.0-beta2
  • Version 2.0.0-beta3
  • Version 2.0.0-rc1
  • Version 2.0.0-rc2
Chamilo LMSServers and applications · github:chamilo/chamilo-lms
  • Every version before 1.11.38

About Chamilo LMS

Free Software Learning Management System

From Wikidata, CC0 1.0.
Share of websites with a known CMS
0.6%W3Techs, Nov 2026
GitHub stars
1,024GitHub, 15 Nov 2026
Forks
567GitHub, 15 Nov 2026
Latest release
v3.0.2GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
License
GPL-3.0GitHub
Written in
PHP, JavaScriptWikidata
First released
18 Jan 2010Wikidata
First published on GitHub
29 Mar 2013GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-33710
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-33710
  • GitHub Advisory Database https://github.com/advisories/GHSA-rpmg-j327-mr39
  • github.com https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-rpmg-j327-mr39