Chamilo chamilo-lms
Chamilo LMS: Unauthenticated SSRF via PENS Plugin allows attacker to probe internal network and reach cloud metadata services
Chamilo LMS is an open-source learning management system. In versions prior to 2.0.0-RC.3, the PENS (Package Exchange Notification Services) plugin endpoint at public/plugin/Pens/pens.php is accessible without authentication and accepts a user-controlled package-url parameter that the server fetches using curl without filtering private or internal IP addresses, enabling unauthenticated Server-Side Request Forgery (SSRF). An attacker can exploit this to probe internal network services, access cloud metadata endpoints (such as 169.254.169.254) to steal IAM credentials and sensitive instance metadata, or trigger state-changing operations on internal services via the receipt and alerts callback parameters. No authentication is required to exploit either SSRF vector, significantly increasing the attack surface. This issue has been fixed in version 2.0.0-RC.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.0-RC.3
Fixed in 2.0-RC.3
Mitigation
Upgrade chamilo-lms to 2.0-RC.3 or later.
References
- Vendor advisory github.com/chamilo/chamilo-lms/security/adviso…
- Patch github.com/chamilo/chamilo-lms/commit/de4058d7…
- Release notes github.com/chamilo/chamilo-lms/releases/tag/v2…
Timeline
Days relative to CVE publicationFirst public PoC 15 days after publication; not in CISA KEV. First PoC: romain-deperne/CVE-2026-34160 (created 29 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| romain-deperne/CVE-2026-34160 | 29 Apr 2026 +15 d | 0 | PoC via PoC Index |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /plugin/Pens/pens.php
- Body markers
pens-command=collect-packagepackage-url=http://192.168.1.1:80/package-format=SCORM-2004-3rdpackage-id=test-123client=testsystem-user=testpackage-url=http://169.254.169.254/latest/meta-data/iam/security-credentials/package-id=testpackage-url=http://example.com/legit.zipreceipt=http://10.0.0.50:8080/internal-endpointinapplication/x-www-form-urlencoded- Ports
- 80, 8080
- Seen in
- 1 repo: romain-deperne/CVE-2026-34160
- Evidence
- romain-deperne/CVE-2026-34160/README.md:63 romain-deperne/CVE-2026-34160/README.md:72 romain-deperne/CVE-2026-34160/README.md:81
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/plugin/Pens/pens\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [80,8080] (msg:"GG PoC-Monitor CVE-2026-34160 chamilo chamilo-lms exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/plugin/Pens/pens.php"; http.request_body; content:"pens-command=collect-package"; http.request_body; content:"package-url=http://192.168.1.1:80/"; http.request_body; content:"package-format=SCORM-2004-3rd"; http.request_body; content:"package-id=test-123"; http.request_body; content:"client=test"; http.request_body; content:"system-user=test"; http.request_body; content:"package-url=http://169.254.169.254/latest/meta-data/iam/security-credentials/"; http.request_body; content:"package-id=test"; http.request_body; content:"package-url=http://example.com/legit.zip"; http.request_body; content:"receipt=http://10.0.0.50:8080/internal-endpoint"; reference:url,poc.griffinguard.io/cve/CVE-2026-34160; classtype:web-application-attack; sid:9641391; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: chamilo chamilo-lms exploit attempt (CVE-2026-34160)
id: gg-pocmon-cve-2026-34160-9641391
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-34160. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-34160
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/plugin/Pens/pens.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.34160