# GHSA-2VW5-QCF8-4JM6: GenAI review summary discloses activity/metadata from cameras outside the caller's access (cross-camera information disclosure)

- Database: GitHub
- Severity: CVSS 4.3 (Medium)
- Published: 2026-09-12
- Modified: 2026-09-12

## Affected versions

- blakeblackshear/frigate (PyPI): through 0.17.2

## Description

## Vulnerability Details

**File**: `frigate/api/review.py` (route), `frigate/data_processing/post/review_descriptions.py` (sink)
**Line**: `review.py:744-774` (`generate_review_summary`), `review_descriptions.py:205-237` (`handle_request` / `summarize_review` query)
**CWE**: CWE-862 — Missing Authorization

### Root Cause

Frigate supports role-based, per-camera access restriction via `auth.roles: Dict[str, List[str]]`
(e.g. a `neighbor` role scoped to only one camera). Every other read-side listing endpoint in
the codebase consistently derives an `allowed_cameras` list via
`Depends(get_allowed_cameras_for_filter)` and constrains its query accordingly (verified
directly in `events()`, `all_recordings_summary()`, and others).

`POST /review/summarize/start/{start_ts}/end/{end_ts}` — a feature that uses GenAI to produce a
natural-language summary of review/activity items over a time period — breaks this pattern
completely:

```python
# frigate/api/review.py:744
@router.post(
    "/review/summarize/start/{start_ts}/end/{end_ts}",
    dependencies=[Depends(allow_any_authenticated())],   # any authenticated role
)
def generate_review_summary(request: Request, start_ts: float, end_ts: float):
    context: EmbeddingsContext = request.app.embeddings
    summary = context.generate_review_summary(start_ts, end_ts)   # no allowed_cameras passed
    ...

# frigate/embeddings/__init__.py:317
def generate_review_summary(self, start_ts: float, end_ts: float) -> str | None:
    return self.requestor.send_data(
        EmbeddingsRequestEnum.summarize_review.value,
        {"start_ts": start_ts, "end_ts": end_ts},   # no camera scoping at all
    )

# frigate/data_processing/post/review_descriptions.py:205
def handle_request(self, topic, request_data):
    if topic == EmbeddingsRequestEnum.summarize_review.value:
        segments = [
            {"camera": r["camera"].replace("_", " ").title(), ..., "metadata": r["data"]["metadata"]}
            for r in (
                ReviewSegment.select(ReviewSegment.camera, ReviewSegment.start_time,
                                      ReviewSegment.end_time, ReviewSegment.data)
                .where((ReviewSegment.data["metadata"].is_null(False))
                       & (ReviewSegment.start_time < end_ts)
                       & (ReviewSegment.end_time > start_ts))
                # NO ReviewSegment.camera << allowed_cameras clause anywhere
                .order_by(ReviewSegment.start_time.asc()).dicts().iterator()
            )
        ]
```

The route neither declares an `allowed_cameras` dependency nor passes any camera-scoping
argument down the call chain. The downstream query selects `ReviewSegment` rows across **every
configured camera** with no scoping clause. Camera names and any recorded `metadata` — which
includes GenAI-derived fields like `potential_threat_level` and `other_concerns`, i.e.
security-relevant descriptive content about what happened on camera — for out-of-scope cameras
is pulled into the summary generation and returned to whichever authenticated user asked for it.

### Attack Scenario

Prerequisites: `auth.enabled: true`, a custom role scoped to only some cameras (e.g. `neighbor:
[front_door]`), GenAI configured (`genai.provider` set) and enabled for at least one camera's
review pipeline (a normal configuration for this feature to be useful).

1. Attacker authenticates as the `neighbor` account, whose `auth.roles` entry only grants access
   to `front_door`.
2. Attacker sends `POST /review/summarize/start/0/end/9999999999` (or any time range of
   interest).
3. The server queries `ReviewSegment` across all cameras — including e.g. `master_bedroom` or
   `backyard`, cameras `neighbor` has no configured access to — and generates a natural-language
   summary describing detected activity, threat levels, and concerns for those cameras too.
4. The response is returned to `neighbor` as-is, disclosing camera names and behavioral/security
   metadata for cameras outside their permitted set — exactly the scenario Frigate's custom-role
   camera-scoping feature exists to prevent.

### Impact

Disclosure of camera names, activity timing, and GenAI-assessed "concerns"/"threat level"
metadata for cameras the caller has no authorization to view. Any authenticated account
qualifies, including the lowest-privilege custom role.

### Vulnerable Code
See above.

### Recommended Fix

```python
@router.post(
    "/review/summarize/start/{start_ts}/end/{end_ts}",
    dependencies=[Depends(allow_any_authenticated())],
)
def generate_review_summary(
    request: Request,
    start_ts: float,
    end_ts: float,
    allowed_cameras: List[str] = Depends(get_allowed_cameras_for_filter),
):
    summary = context.generate_review_summary(start_ts, end_ts, allowed_cameras)
```
and thread `allowed_cameras` through to the query in `review_descriptions.py`:
```python
.where(
    (ReviewSegment.camera << allowed_cameras)
    & (ReviewSegment.data["metadata"].is_null(False))
    & (ReviewSegment.start_time < end_ts)
    & (ReviewSegment.end_time > start_ts)
)
```
matching the exact pattern already used correctly in `events()`/`all_recordings_summary()`.

### Verification

Dynamically confirmed via a real-code-import pytest
(`frigate/test/http_api/test_review_summary_cross_camera_leak.py`) that calls the REAL,
unmodified `ReviewDescriptionProcessor.handle_request()` against seeded `ReviewSegment` rows for
an in-scope and an out-of-scope camera (only the external GenAI HTTP call itself was mocked, not
the DB query/segment-building logic under test). The out-of-scope camera's unique marker string
and title-cased camera name both appeared in the payload the real handler builds — confirming no
camera filter exists anywhere in this call chain. 2/2 tests pass.

## References

- https://github.com/blakeblackshear/frigate/security/advisories/GHSA-2vw5-qcf8-4jm6

Page: https://cve.now/GHSA-2VW5-QCF8-4JM6

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
