Scramble CVE-2026-44262
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed Scramble docs endpoint
-
DeliveryAnalyze API schema for dynamic validation rules
-
ExploitCraft request with PHP code injection payload
-
ExecutionTrigger documentation generation via endpoint access
-
PersistInjected code evaluated in validation rule expression
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-4rm2-28vj-fj39
NVD
CVE.org
EPSS
Exploit-DB
VulDB