Skip to main content

Scramble CVE-2026-44262

CRITICAL
Code Injection (CWE-94)
2026-05-06 https://github.com/dedoc/scramble GHSA-4rm2-28vj-fj39
9.4
CVSS 3.1 · Vendor: https://github.com/dedoc/scramble
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed Scramble docs endpoint
  2. Delivery
    Analyze API schema for dynamic validation rules
  3. Exploit
    Craft request with PHP code injection payload
  4. Execution
    Trigger documentation generation via endpoint access
  5. Persist
    Injected code evaluated in validation rule expression
  6. Impact
    Arbitrary PHP execution in application context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires three concurrent conditions: (1) Scramble documentation endpoints /docs/api or /docs/api.json must be publicly accessible without authentication - many production deployments disable these or restrict to internal networks; (2) Application validation rules must reference user-controlled variables within rule expressions, specifically values derived from request input (query parameters, POST body, headers) - this is not default behavior but occurs in applications with dynamic validation logic; (3) Attacker must trigger documentation generation while supplying malicious input - exploitation timing depends on whether documentation is generated on-demand per request or cached. Exploitation is remote and unauthenticated per CVSS vector (AV:N/PR:N), but the specific configuration prerequisites (exposed docs + dynamic validation rules) significantly limit real-world attack surface compared to universally exploitable network vulnerabilities. Attack complexity is low (AC:L) once prerequisites are met, requiring only HTTP requests without cryptographic or race condition challenges.

Impact

The CVSS 3.1 score of 9.4 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L) indicates critical severity with network-based unauthenticated exploitation requiring low complexity. However, real-world risk is substantially constrained by exploitation prerequisites: documentation endpoints must be publicly accessible AND validation rules must incorporate user-controlled request data in their expressions. Most production Laravel deployments disable documentation endpoints or restrict them to internal networks, significantly reducing attack surface. The advisory explicitly states these conditions, suggesting this is not universally exploitable against default Scramble installations. No CISA KEV listing indicates no confirmed widespread exploitation. No EPSS score provided, but given the specific configuration requirements and recent disclosure (2026 timeline suggests very recent), probability of mass exploitation is likely low in the near term. Primary risk exists for development/staging environments with exposed documentation endpoints or production systems that intentionally publish API docs with dynamic validation logic. The high CVSS score reflects worst-case exploitability rather than typical deployment risk.

Exploit ScenarioDerived

An attacker identifies a Laravel application running Scramble with publicly accessible documentation at example.com/docs/api.json. They analyze the API schema and identify validation rules that incorporate request parameters in rule expressions. The attacker crafts a malicious HTTP request to a documented endpoint, injecting PHP code into a parameter referenced by validation rules (e.g., a custom validation expression like 'required_if:$request->input(malicious_param)'). When Scramble generates documentation for this request pattern, it evaluates the validation rule expression, executing the attacker's injected PHP code in the application context with web server privileges, enabling data exfiltration, system command execution, or further lateral movement.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 06, 2026

Remote code execution in Scramble API documentation generator versions 0.13.2 through 0.13.21 allows unauthenticated attackers to execute arbitrary PHP code when documentation endpoints are publicly accessible and validation rules reference user-controlled input. Fixed in version 0.13.22. The CVSS score of 9.4 (Critical) reflects the network-accessible, low-complexity attack requiring no authentication, though exploitation requires specific configuration where documentation endpoints remain enabled and validation rules incorporate request-supplied data. No active exploitation (CISA KEV) or public POC identified at time of analysis, but the GitHub security advisory provides full technical details enabling reproduction.

RemediationAI

Upgrade to Scramble version 0.13.22 immediately, available at https://github.com/dedoc/scramble/releases/tag/v0.13.22. The fix implements improved rules evaluation safety and proper handling of $this references in validation expressions (PR #1145). If immediate upgrade is not feasible, apply compensating controls in order of effectiveness: (1) Disable documentation endpoints entirely in production by removing Scramble route registration or setting SCRAMBLE_ENABLED=false in environment configuration - this eliminates the attack surface but prevents API documentation access; (2) Restrict /docs/api and /docs/api.json endpoints to internal IP ranges or authenticated users via web server rules (nginx location blocks, Apache .htaccess) or Laravel middleware - maintains documentation availability for authorized users but adds authentication bypass risk if misconfigured; (3) Audit all validation rules to eliminate references to request-derived variables in rule expressions, replacing dynamic rules with static alternatives - labor-intensive and may break intended validation logic for complex APIs. The vendor advisory at https://github.com/dedoc/scramble/security/advisories/GHSA-4rm2-28vj-fj39 confirms version 0.13.22 as the definitive fix with no known bypasses.

Affected Packages

composer dedoc/scramble fix: 0.13.22

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Scramble is a PHP Composer package (pkg:composer/dedoc_scramble) that generates API documentation for Laravel applications. The vulnerability stems from CWE-94 (Improper Control of Generation of Code/Code Injection) during the documentation generation process. When Scramble evaluates validation rule expressions to produce API documentation schemas, it processes user-controlled input from HTTP requests without adequate sanitization. If validation rules reference variables derived from request parameters (common in dynamic validation scenarios), the documentation generator evaluates these expressions in the PHP runtime, creating a code injection vector. The issue exists in the rule expression evaluation logic, which was addressed in PR #1145 by adding support for $this in rule expressions and improving evaluation safety through sandboxing or input validation. This affects Laravel applications using Scramble with publicly accessible documentation endpoints at /docs/api and /docs/api.json.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/dedoc/scramble) PRIMARY 9.4 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Primary rating from Vendor (https://github.com/dedoc/scramble) · only source for this CVE.

CVSS VectorVendor: https://github.com/dedoc/scramble

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

DescriptionCVE.org

Impact

A remote code execution (RCE) vulnerability affects versions 0.13.2 through 0.13.21. When documentation endpoints are publicly accessible and validation rules reference user-controlled input, request supplied data may be evaluated during documentation generation, leading to execution of arbitrary PHP code in the application context.

Patches

Fixed in version 0.13.22.

Workarounds

If upgrading is not immediately possible:

  • Restrict access to documentation endpoints (/docs/api, /docs/api.json)
  • Avoid using user-controlled variables inside validation rule expressions (e.g., values derived from request input)
  • Disable documentation endpoints in production environments if not required

These measures significantly reduce or prevent exploitability.

Executive ViewAI

Why It Matters

Scramble API documentation generator versions 0.13.2 through 0.13.21 contain a critical remote code execution vulnerability (CVSS 9.4) affecting any organization with publicly accessible documentation endpoints and validation rules that process user input. An unauthenticated attacker can execute arbitrary PHP code on affected servers, potentially compromising sensitive data, application integrity, and backend infrastructure. Immediate inventory and upgrade are required for any deployments using affected versions.

Business Impact: Severe
Compensating Controls

Until upgrade to version 0.13.22 is completed: restrict network access to documentation endpoints via firewall or reverse proxy rules; disable documentation endpoints entirely if not actively required; implement Web Application Firewall (WAF) rules to block requests with suspicious payload patterns targeting documentation routes; monitor access logs and PHP execution for anomalous activity. These are interim mitigations only-vendor patch application is mandatory.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS GHSA POC (1) Exploit-DB GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

67
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:composer/dedoc_scramble

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy