{"id":"CVE-2026-33486","aliases":["CVE-2026-33486","GHSA-rc55-58f4-687g"],"related":[],"kind":"vulnerability","state":"published","title":"Roadiz has Server-Side Request Forgery (SSRF) in roadiz/documents","summary":"Roadiz is a polymorphic content management system based on a node system that can handle many types of services. A vulnerability in roadiz/documents prior to versions 2.7.9, 2.6.28, 2.5.44, and 2.3.42 allows an authenticated attacker to read any file on the server's local file system that the web server process has access to, including highly sensitive environment variables, database credentials, and internal configuration files. Versions 2.7.9, 2.6.28, 2.5.44, and 2.3.42 contain a patch.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Roadiz is a polymorphic content management system based on a node system that can handle many types of services. A vulnerability in roadiz/documents prior to versions 2.7.9, 2.6.28, 2.5.44, and 2.3.42 allows an authenticated attacker to read any file on the server's local file system that the web server process has access to, including highly sensitive environment variables, database credentials, and internal configuration files. Versions 2.7.9, 2.6.28, 2.5.44, and 2.3.42 contain a patch.","source":"cvelist"},{"lang":"en","text":"This vulnerability allows an authenticated attacker to read any file on the server's local file system that the web server process has access to, including highly sensitive environment variables, database credentials, and internal configuration files.\n\n| Field | Details |\n| :--- | :--- |\n| **Vulnerability Class** | Server-Side Request Forgery (SSRF) & Local File Inclusion (LFI) |\n| **Affected Component** | `RZ\\Roadiz\\Documents\\DownloadedFile::fromUrl()` |\n| **Prerequisites** | Authenticated user with `ROLE_ACCESS_DOCUMENTS` |\n\n## Technical Description\n\nThe Roadiz backend features tools for importing external media, such as compiling cover art from Podcast RSS Feeds or OEmbed providers. This feature is handled by various `MediaFinders`, which ultimately pass the extracted media URLs to the `DownloadedFile::fromUrl(string $url)` parsing mechanism.\n\nInside `fromUrl()`, the application uses PHP's native `fopen()` function to fetch the remote resource and copy it into the local temporary directory before injecting it into the Flysystem Documents storage.\n\n##  The Flaw\n\nThe `$url` parameter is passed to `fopen` *without any schema validation or sanitization*. In PHP, when stream wrappers are enabled, functions like `fopen` do not restrict operations to HTTP streams. If a `file://` scheme is supplied, PHP seamlessly converts the operation into a local file system read. Because an attacker tightly controls the XML feed (e.g., from a Podcast integration), they can inject a `file://` URI, forcing the CMS to \"download\" internal system files directly into the publicly accessible Media Library.\n\n---\n\n## Proof of Concept (PoC)\n\nTo reliably reproduce this vulnerability without requiring a live external URL, the attacker simply mimics the behavior of the Podcast importer manipulating the internal system.\n\n### Step 1: Craft the Malicious Payload\nThe attacker creates a standard Podcast RSS XML feed (`podcast.xml`) and hosts it externally (or on an internal network reachable by the CMS). Inside this XML, the `href` attribute for the podcast thumbnail is weaponized to target a sensitive system file:\n\n```xml\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\" xmlns:itunes=\"http://www.itunes.com/dtds/podcast-1.0.dtd\">\n  <channel>\n    <title>Roadiz LFI Exploit</title>\n    <!-- Payload triggers the local filesystem fetch via PHP streams -->\n    <itunes:image href=\"file:///app/.env\" /> \n  </channel>\n</rss>\n```\n\n### Step 2: Exploit the CMS\n1. Authenticate to the Roadiz Backoffice.\n2. Navigate to **Documents (Media Manager)**.\n3. Select **Add a document** -> **Import from URL** (or trigger a Podcast sync).\n4. Supply the URL of the malicious `podcast.xml` file.\n\n### Step 3: Extract the Data\n1. The `AbstractPodcastFinder` processes the XML and feeds `file:///app/.env` directly into `DownloadedFile::fromUrl()`.\n2. The Roadiz application silently reads its own `.env` file, creating a new \"Document\" arrayed with the contents of the file.\n3. The file manifests in the Media Manager grid as a broken image icon.\n4. The attacker actively downloads the newly generated Document from the dashboard, successfully extracting the framework's internal API keys, database credentials, and `APP_SECRET`.\n\n---\n\n## Impact Analysis\n\nExploitation of this vulnerability results in a total loss of **Confidentiality** for the web application and underlying operating system. \n\n- **Application Compromise:** An attacker can retrieve `.env`, `security.yaml`, or database `.sqlite` files, leading to complete horizontal and vertical privilege escalation.\n- **System Enumeration:** The attacker can read `/etc/passwd`, enumerating system users in preparation for lateral movement.\n- **Cloud Environment Compromise:** If deployed within AWS, Azure, or GCP, the SSRF vector can be pivoted to read internal cloud metadata endpoints (e.g., `http://169.254.169.254/latest/meta-data/`), allowing the attacker to steal Root IAM roles globally compromising the victim's infrastructure.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Roadiz es un sistema de gestión de contenido polimórfico basado en un sistema de nodos que puede manejar muchos tipos de servicios. Una vulnerabilidad en roadiz/documents anterior a las versiones 2.7.9, 2.6.28, 2.5.44 y 2.3.42 permite a un atacante autenticado leer cualquier archivo en el sistema de archivos local del servidor al que el proceso del servidor web tiene acceso, incluyendo variables de entorno altamente sensibles, credenciales de base de datos y archivos de configuración internos. Las versiones 2.7.9, 2.6.28, 2.5.44 y 2.3.42 contienen un parche.","source":"nvd"}],"published":"2026-03-23T21:43:14.000Z","modified":"2026-06-17T10:37:34.913Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":">= 2.7.0, < 2.7.9","status":"affected"},{"version":">= 2.6.0, < 2.6.28","status":"affected"},{"version":">= 2.4.0, < 2.5.44","status":"affected"},{"version":"< 2.3.42","status":"affected"}],"vendor":"roadiz","product":"core-bundle-dev-app","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.7.0","status":"affected","fixed":"2.7.9"}],"ecosystem":"Packagist","package":"roadiz/documents","purl":"pkg:composer/roadiz/documents","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.6.0","status":"affected","fixed":"2.6.28"}],"ecosystem":"Packagist","package":"roadiz/documents","purl":"pkg:composer/roadiz/documents","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.4.0","status":"affected","fixed":"2.5.44"}],"ecosystem":"Packagist","package":"roadiz/documents","purl":"pkg:composer/roadiz/documents","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.42"}],"ecosystem":"Packagist","package":"roadiz/documents","purl":"pkg:composer/roadiz/documents","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.42"},{"status":"affected","introduced":"2.4.0","fixed":"2.5.44"},{"status":"affected","introduced":"2.6.0","fixed":"2.6.28"},{"status":"affected","introduced":"2.7.0","fixed":"2.7.9"}],"vendor":"roadiz","product":"core-bundle-dev-app","cpe":"cpe:2.3:a:roadiz:core-bundle-dev-app:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/roadiz/core-bundle-dev-app/security/advisories/GHSA-rc55-58f4-687g","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/roadiz/core-bundle-dev-app/commit/7904f690a51b88b1c72c02149ebdf85fa81f19f2","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33486","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/roadiz/core-bundle-dev-app","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-03-26T18:47:20.504Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33486","url":"https://www.cve.org/CVERecord?id=CVE-2026-33486","licence":"CVE Terms of Use","modified":"2026-03-26T18:47:26.997Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rc55-58f4-687g","url":"https://github.com/advisories/GHSA-rc55-58f4-687g","licence":"CC-BY-4.0","modified":"2026-03-27T21:18:48.839Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33486","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33486","licence":"Public domain","modified":"2026-06-17T10:37:34.913Z"}],"updatedAt":"2026-11-25T22:59:17.082Z","epss":{"score":0.00431,"percentile":0.39207,"date":"2026-12-01T12:00:22.000Z"}}