GHSA-4rm2-28vj-fj39

Suggest an improvement
Source
https://github.com/advisories/GHSA-4rm2-28vj-fj39
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-4rm2-28vj-fj39/GHSA-4rm2-28vj-fj39.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4rm2-28vj-fj39
Aliases
Published
2026-05-06T19:54:56Z
Modified
2026-05-13T16:57:27Z
Severity
  • 9.4 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L CVSS Calculator
Summary
Scramble vulnerable to remote code execution via evaluation of user-controlled input in validation rules
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-94"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-06T19:54:56Z",
    "nvd_published_at":  "2026-05-12T22:16:36Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Packagist / dedoc/scramble

Package

Name
dedoc/scramble
Purl
pkg:composer/dedoc/scramble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.13.2
Fixed
0.13.22

Affected versions

v0.*
v0.13.2
v0.13.3
v0.13.4
v0.13.5
v0.13.6
v0.13.7
v0.13.8
v0.13.9
v0.13.10
v0.13.11
v0.13.12
v0.13.13
v0.13.14
v0.13.15
v0.13.16
v0.13.17
v0.13.18
v0.13.19
v0.13.20
v0.13.21

Database specific

last_known_affected_version_range
"<= 0.13.21"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-4rm2-28vj-fj39/GHSA-4rm2-28vj-fj39.json"