CVE-2026-40908: Wwbn/avideo WWBN AVideo Has An Unauthenticated Vulnerability

MODERATE
Advisory Identifier: GHSA-52hf-63q4-r926
CVSS 5.3
CWE-200
Published
Advisory Summary

CVE-2026-40908 is a MODERATE (CVSS 5.3) wwbn avideo has an unauthenticated vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Wwbn/avideo libraries in the Packagist ecosystem. The issue involves wwbn avideo has an unauthenticated information disclosure via git.json.php exposes developer emails and deployed version. Remediation is available in the latest vendor maintenance releases.

CVE-2026-40908 at a Glance

CVE Identifier CVE-2026-40908
GHSA Identifier GHSA-52hf-63q4-r926
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Wwbn/avideo
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-40908

To remediate this vulnerability, upgrade all affected Wwbn/avideo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

wwbn/avideo fixed: Latest secure release
Upgrade wwbn/avideo to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for wwbn/avideo

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-40908, inspect your project dependencies for Wwbn/avideo:

inspect dependencies for wwbn/avideo

Analyze the terminal output to locate any version of Wwbn/avideo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Wwbn/avideo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The file `git.json.php` at the web root executes `git log -1` and returns the full output as JSON to any unauthenticated user. This exposes the exact deployed commit hash (enabling version fingerprinting against known CVEs), developer names and email addresses (PII), and commit messages which may contain references to internal systems or security fixes. ## Details `git.json.php` is a standalone PHP script with no authentication, no session validation, and no framework bootstrap. It directly executes a shell command and returns the result: ```php // git.json.php — complete file <?php header('Content-Type: application/json'); $cmd = "git log -1"; exec($cmd . " 2>&1", $output, $return_val); $obj = new stdClass(); $obj->output = $output; foreach ($output as $value) { preg_match("/Date:(.*)/i", $value, $match); if (!empty($match[1])) { $obj->date = strtotime($match[1]); $obj->dateString = trim($match[1]); $obj->dateMySQL = date("Y-m-d H:i:s", $obj->date); } } echo json_encode($obj); ``` The file does not `require` any configuration or authentication module. It is not protected by `.htaccess` rules. The endpoint is directly accessible to any network client. The exposed data enables: 1. **Version fingerprinting**: The commit hash identifies the exact deployed version, allowing attackers to cross-reference the project's public git history against known CVEs (AVideo has 22 published GHSAs) to determine which vulnerabilities remain unpatched on a given instance. 2. **Developer PII leakage**: Author name and email from the git commit are exposed. On self-hosted instances, this may reveal internal/corporate email addresses not otherwise publicly available. 3. **Commit message intelligence**: Commit messages may reference internal bug trackers, security fixes in progress, or infrastructure details. ## PoC ```bash # Single unauthenticated request — no cookies, no headers needed curl -s https://target.example/git.json.php | python3 -m json.tool ``` Verified response from test instance: ```json { "output": [ "commit 80a8af96e861cff45cd80fdd2478d00b2c07749e", "Author: Daniel Neto <me@danielneto.com>", "Date: Wed Apr 8 16:07:23 2026 -0300", "", " fix: Update payment response handling to include transaction token and URL" ], "date": 1775675243, "dateString": "Wed Apr 8 16:07:23 2026 -0300", "dateMySQL": "2026-04-08 19:07:23" } ``` ## Impact - Any unauthenticated remote attacker can determine the exact deployed version and identify which known CVEs (22 published GHSAs for AVideo) apply to the target instance. - Developer email addresses are leaked, enabling targeted phishing or social engineering against project maintainers and contributors. - Commit messages may disclose internal project details, security fix status, or infrastructure information. ## Recommended Fix Delete `git.json.php` entirely — it serves no user-facing purpose and exists only as a development/debug artifact: ```bash rm git.json.php ``` If version display is needed for administrators, gate it behind authentication: ```php <?php require_once 'videos/configuration.php'; if (!User::isAdmin()) { header('HTTP/1.1 403 Forbidden'); die(json_encode(['error' => 'Forbidden'])); } header('Content-Type: application/json'); $cmd = "git log -1"; exec($cmd . " 2>&1", $output, $return_val); $obj = new stdClass(); $obj->output = $output; foreach ($output as $value) { preg_match("/Date:(.*)/i", $value, $match); if (!empty($match[1])) { $obj->date = strtotime($match[1]); $obj->dateString = trim($match[1]); $obj->dateMySQL = date("Y-m-d H:i:s", $obj->date); } } echo json_encode($obj); ```

CVE-2026-40908 Affected Wwbn/avideo Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
wwbn/avideo
Packagist
≤ 29.0

References

Frequently Asked Questions

What is CVE-2026-40908?
CVE-2026-40908 is a security vulnerability in Wwbn/avideo involving WWBN AVideo has an Unauthenticated Information Disclosure via git.json.php Exposes Developer Emails and Deployed Version under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Wwbn/avideo versions are affected?
Affected versions include releases prior to current release patches across affected packages: wwbn/avideo.
What version fixes CVE-2026-40908?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is wwbn/avideo affected?
Yes, wwbn/avideo is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-40908?
CVE-2026-40908 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-40908?
CVE-2026-40908 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for CVE-2026-40908?
Run the dependency tree command: 'inspect dependencies for wwbn/avideo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-52hf-63q4-r926",
  "modified" : "2026-04-24T20:30:02Z",
  "published" : "2026-04-14T22:49:25Z",
  "aliases" : [ "CVE-2026-40908" ],
  "summary" : "WWBN AVideo has an Unauthenticated Information Disclosure via git.json.php Exposes Developer Emails and Deployed Version",
  "details" : "## Summary\n\nThe file `git.json.php` at the web root executes `git log -1` and returns the full output as JSON to any unauthenticated user. This exposes the exact deployed commit hash (enabling version fingerprinting against known CVEs), developer names and email addresses (PII), and commit messages which may contain references to internal systems or security fixes.\n\n## Details\n\n`git.json.php` is a standalone PHP script with no authentication, no session validation, and no framework bootstrap. It directly executes a shell command and returns the result:\n\n```php\n// git.json.php — complete file\n<?php\nheader('Content-Type: application/json');\n$cmd = \"git log -1\";\nexec($cmd . \"  2>&1\", $output, $return_val);\n\n$obj = new stdClass();\n$obj->output = $output;\n\nforeach ($output as $value) {\n    preg_match(\"/Date:(.*)/i\", $value, $match);\n    if (!empty($match[1])) {\n        $obj->date = strtotime($match[1]);\n        $obj->dateString = trim($match[1]);\n        $obj->dateMySQL = date(\"Y-m-d H:i:s\", $obj->date);\n    }\n}\n\necho json_encode($obj);\n```\n\nThe file does not `require` any configuration or authentication module. It is not protected by `.htaccess` rules. The endpoint is directly accessible to any network client.\n\nThe exposed data enables:\n1. **Version fingerprinting**: The commit hash identifies the exact deployed version, allowing attackers to cross-reference the project's public git history against known CVEs (AVideo has 22 published GHSAs) to determine which vulnerabilities remain unpatched on a given instance.\n2. **Developer PII leakage**: Author name and email from the git commit are exposed. On self-hosted instances, this may reveal internal/corporate email addresses not otherwise publicly available.\n3. **Commit message intelligence**: Commit messages may reference internal bug trackers, security fixes in progress, or infrastructure details.\n\n## PoC\n\n```bash\n# Single unauthenticated request — no cookies, no headers needed\ncurl -s https://target.example/git.json.php | python3 -m json.tool\n```\n\nVerified response from test instance:\n```json\n{\n    \"output\": [\n        \"commit 80a8af96e861cff45cd80fdd2478d00b2c07749e\",\n        \"Author: Daniel Neto <me@danielneto.com>\",\n        \"Date:   Wed Apr 8 16:07:23 2026 -0300\",\n        \"\",\n        \"    fix: Update payment response handling to include transaction token and URL\"\n    ],\n    \"date\": 1775675243,\n    \"dateString\": \"Wed Apr 8 16:07:23 2026 -0300\",\n    \"dateMySQL\": \"2026-04-08 19:07:23\"\n}\n```\n\n## Impact\n\n- Any unauthenticated remote attacker can determine the exact deployed version and identify which known CVEs (22 published GHSAs for AVideo) apply to the target instance.\n- Developer email addresses are leaked, enabling targeted phishing or social engineering against project maintainers and contributors.\n- Commit messages may disclose internal project details, security fix status, or infrastructure information.\n\n## Recommended Fix\n\nDelete `git.json.php` entirely — it serves no user-facing purpose and exists only as a development/debug artifact:\n\n```bash\nrm git.json.php\n```\n\nIf version display is needed for administrators, gate it behind authentication:\n\n```php\n<?php\nrequire_once 'videos/configuration.php';\nif (!User::isAdmin()) {\n    header('HTTP/1.1 403 Forbidden');\n    die(json_encode(['error' => 'Forbidden']));\n}\nheader('Content-Type: application/json');\n$cmd = \"git log -1\";\nexec($cmd . \"  2>&1\", $output, $return_val);\n\n$obj = new stdClass();\n$obj->output = $output;\n\nforeach ($output as $value) {\n    preg_match(\"/Date:(.*)/i\", $value, $match);\n    if (!empty($match[1])) {\n        $obj->date = strtotime($match[1]);\n        $obj->dateString = trim($match[1]);\n        $obj->dateMySQL = date(\"Y-m-d H:i:s\", $obj->date);\n    }\n}\n\necho json_encode($obj);\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "wwbn/avideo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "29.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/WWBN/AVideo/security/advisories/GHSA-52hf-63q4-r926"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40908"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/WWBN/AVideo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-14T22:49:25Z",
    "nvd_published_at" : "2026-04-21T20:17:03Z"
  }
}