nday
CVE-2026-63492 GHSA-j44m-77cc-p3cc

AVideo API vulnerable to OS command injection through an unescaped FFmpeg process keyword

此編號已遭 CVE 駁回(REJECTED),並非有效漏洞。揭露時間不明。已於 wwbn/avideo 29.1.0 修補。4 個 PoC 來源中有 1 個收錄:github。

目前階段
POC
揭露時間
時間不明
揭露 → 公開 PoC
T+? 揭露時間不明
CVSS
8.1 HIGH v3.1

生命週期

橫軸 UTC;點=精確到分鐘,寬條=僅日期,空心=不明或推斷。
時間不明
DIS揭露
cvelist
PAT修補
11-23T23:01Z
ANA分析
尚無紀錄
POCPoC
11-24 僅日期
ITW遭利用
尚無紀錄
KEVKEV
尚無紀錄

摘要

### Summary

The helper listFFmpegProcesses($keyword) in plugin/API/standAlone/functions.php builds a shell pipeline by interpolating $keyword inside single quotes and running it with exec():

$command .= " | grep '$keyword'";
exec($command, $output, $status);

The two callers in plugin/API/standAlone/ffmpeg.json.php (the list mode and the isKeywordRunning mode) pass the RAW decrypted codeToExec field, not the sanitized $keyword variable that the endpoint allowlists elsewhere. Because the value is placed inside a single-quoted shell context with no escaping, a payload that closes the quote (for example x'; touch /tmp/marker #) breaks out and injects an arbitrary command that runs via exec()'s /bin/sh -c. An attacker who can craft a valid encrypted payload achieves OS command execution as the web-server user.

### Vulnerable code

Sink — plugin/API/standAlone/functions.php, listFFmpegProcesses() (around lines 139-147):

function listFFmpegProcesses($keyword = '')
{
    $command = "ps -eo pid,etime,%cpu,%mem,cmd | grep '[f]fmpeg'";

    if (!empty($keyword)) {
        $command .= " | grep '$keyword'";   // $keyword interpolated inside single quotes, unescaped
    }

    exec($command, $output, $status);       // runs via /bin/sh -c

Callers — plugin/API/standAlone/ffmpeg.json.php pass the RAW decrypted field, bypassing the allowlisting applied to the local $keyword variable. That local variable is built at line ~136 as $keyword = preg_replace('/[^a-zA-Z0-9_-]/', '', $codeToExec->keyword), but the two callers below never use it:

// list mode (line ~221)
$list = listFFmpegProcesses($codeToExec->keyword);

// isKeywordRunning mode (line ~341)
$list = listFFmpegProcesses($codeToExec->isKeywordRunning);

Neither mode is gated by the $isStandAlone check that guards the deleteFolder / deleteFile modes, so both run on any AVideo instance.

### Reachability

Reached by sending a codeToExec payload with either list = 1 and a malicious keyword, or with a malicious isKeywordRunning value. Both modes call listFFmpegProcesses() with the raw field before any allowlist is applied to it.

### Privilege required

Same trust boundary as the parent command-injection fix in this endpoint: an attacker who can craft a valid encrypted codeToExec payload with a valid APISecret. _decryptString() calls the platform decryptString API (AES-256-CBC; key = hash('sha256', $global['saltV2']), iv = substr(hash('sha256', $global['systemRootPath']), 0, 16)), and the payload is accepted when payload->time is within the last 30 seconds. No interactive login is required.

### Reproduction (end-to-end, against master HEAD)

Deployed the master HEAD source (commit 8eaca9d5, dated 2026-06-30) in a PHP 8.2 / Apache container backed by MySQL 8.0, ran the genuine platform installer, enabled the API plugin, and confirmed the decryptString / isAPISecretValid platform APIs live over HTTP. APISecret is md5($global['salt'] . $global['systemRootPath'] . 'API').

A codeToExec was encrypted (encryptString()) with: - time = now - list = 1 - keyword = x'; touch /tmp/avideo_kw_rce_1782909694_20509 #

POST:

curl -s -X POST "http://<host>/plugin/API/standAlone/ffmpeg.json.php" \
  --data-urlencode "APISecret=<APISecret>" \
  --data-urlencode "codeToExecEncrypted=<encrypted codeToExec>"

Verbatim response (normal list output while the injection ran as a side effect):

{"error":false,"msg":"","list":[]}

The injected touch ran (marker created by the web-server user):

-rw-r--r-- 1 www-data www-data 0 Jul  1 12:41 /tmp/avideo_kw_rce_1782909694_20509

Same result through the isKeywordRunning mode (payload x'; touch /tmp/avideo_ikr_rce_1782909715_3303 #):

{"error":true,"msg":"No FFmpeg process found with the given keyword","isRunning":false,"keyword":"x'; touch /tmp/avideo_ikr_rce_1782909715_3303 #"}
-rw-r--r-- 1 www-data www-data 0 Jul  1 12:41 /tmp/avideo_ikr_rce_1782909715_3303

Negative control (benign alphanumeric keyword benignkw123, list mode): same code path, marker NOT created:

{"error":false,"msg":"","list":[]}
ls: cannot access '/tmp/avideo_kwneg_1782909713_28529': No such file or directory

Patched re-run (after applying escapeshellarg() as below): the injection is neutralized and the marker is NOT created:

{"error":false,"msg":"","list":[]}
ls: cannot access '/tmp/avideo_kw_rce_PATCHED_1782909782_8294': No such file or directory

### Impact

Arbitrary OS command execution on the AVideo host as the web-server user (the account that owns the application files, configuration, database credentials, and saltV2). An attacker can read and modify site data, pivot to the database, and persist. This is a distinct sink (the grep single-quote breakout in listFFmpegProcesses) from the completion-hook concatenation elsewhere in the same endpoint, and it is reachable through two different modes.

### Suggested fix

Escape the keyword at the shell boundary in listFFmpegProcesses():

if (!empty($keyword)) {
    $command .= " | grep " . escapeshellarg($keyword);
}

Alternatively, have the list / isKeywordRunning callers pass the already-allowlisted $keyword value instead of the raw decrypted field. Escaping inside listFFmpegProcesses() is preferred because it protects every caller.

### Credit

Reported by tonghuaroot.

Original text of GitHub advisory GHSA-j44m-77cc-p3cc, shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:H
High: success depends on conditions outside the attacker's control, such as gathering details of the target or winning a race
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS 3.1 vector from GitHub advisory GHSA-j44m-77cc-p3cc.

事件紀錄

來源無時間;nday 即時觀測
+PAT已有修補

公告列出的修補版本:wwbn/avideo 29.1.0。公告附有修補 commit。公告發布於 ;修補本身的釋出時間沒有紀錄。

來源 ghsa GHSA-j44m-77cc-p3cc · nday 於 即時觀測 · 原始
{
  "id": 527650,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-j44m-77cc-p3cc",
  "occurred_at": null,
  "observed_at": "2026-11-23T23:01:12.599017Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-j44m-77cc-p3cc",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 8.1,
        "vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Special Elements used in an OS Command",
        "cwe_id": "CWE-78"
      }
    ],
    "ghsa_id": "GHSA-j44m-77cc-p3cc",
    "packages": [
      {
        "name": "wwbn/avideo",
        "ecosystem": "composer",
        "first_patched_version": "29.1.0",
        "vulnerable_version_range": "< 29.1.0"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/WWBN/AVideo/security/advisories/GHSA-j44m-77cc-p3cc",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-63492",
      "https://github.com/WWBN/AVideo/commit/7559ddf72f48684cc40ae78be9cebcaa07f5fa06",
      "https://github.com/WWBN/AVideo/releases/tag/v29.1.0",
      "https://github.com/advisories/GHSA-j44m-77cc-p3cc"
    ],
    "fix_commit_urls": [
      "https://github.com/WWBN/AVideo/commit/7559ddf72f48684cc40ae78be9cebcaa07f5fa06"
    ],
    "github_reviewed_at": "2026-11-23T22:06:28Z",
    "advisory_updated_at": "2026-11-23T22:06:29Z",
    "source_code_location": "https://github.com/WWBN/AVideo",
    "advisory_published_at": "2026-11-23T22:06:28Z"
  }
}
2026-11-24僅日期,由來源提供
+POC公開 PoC

GitHub 上的 PoC 儲存庫:googlesky/CVE-2026-63492。日期為儲存庫的建立日。

來源 github 1469770273 · nday 於 即時觀測 · 原始
{
  "id": 531337,
  "type": "poc_published",
  "source": "github",
  "url": "https://github.com/googlesky/CVE-2026-63492",
  "occurred_at": "2026-11-24T06:53:54Z",
  "observed_at": "2026-11-24T00:00:00Z",
  "is_backfill": false,
  "dedupe_key": "1469770273",
  "detail": {
    "url": "https://github.com/googlesky/CVE-2026-63492",
    "title": "googlesky/CVE-2026-63492",
    "precision": "day"
  }
}
時間不明來源未提供時間
+DIS揭露

CVE 紀錄於 遭駁回(REJECTED)。

來源 cvelist · nday 於 批次匯入 · 原始
{
  "id": 436890,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-63492",
  "occurred_at": null,
  "observed_at": "2026-11-13T05:40:01.626611Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "REJECTED",
    "replaced_by": [
      "CVE-2026-63304"
    ],
    "date_rejected": "2026-11-03T17:59:59.931Z",
    "date_published": null,
    "rejected_reasons": [
      "This CVE is a duplicate of another CVE."
    ],
    "assigner_short_name": "GitHub_M"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

研究員討論

近 7 天有 0 位研究員提及

名單內研究員在 X 上提及此 CVE 的貼文,照原文呈現,nday 不查核。

尚未收錄名單內研究員在 X 上提及此 CVE 的貼文。

Discussion

0 comments

No comments yet.