Redocly CLI: Path traversal when using `split` command
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 4.4epss 0.2%
exploitation probability
0.2%top 93% of all CVEs
observed exploitation
nono source reports it
Redocly CLI makes OpenAPI validation, linting, and documentation workflows easier. Prior to @redocly/cli 2.33.2, the split command constructs output paths under --outDir from untrusted OpenAPI or AsyncAPI component names and x-codeSamples lang values without verifying that the resolved target remains inside the selected directory. A description containing literal ../ traversal segments in those fields can cause the split command to place or overwrite files outside --outDir. Component data remains constrained to YAML or JSON, and code-sample filenames remain based on the HTTP method, so this is not an unrestricted arbitrary-content file write. This issue is fixed in @redocly/cli version 2.33.2.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Affected products
Redocly · redocly-cliReferences
https://github.com/Redocly/redocly-cli/commit/26a0f299fae0b3bb7bd513043d2f1e90e69f79eehttps://github.com/Redocly/redocly-cli/commit/504120419a72b5c684471478337ee3b45d8bfad3https://github.com/Redocly/redocly-cli/pull/2891https://github.com/Redocly/redocly-cli/pull/2923https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@1.34.17https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@2.33.2https://github.com/Redocly/redocly-cli/security/advisories/GHSA-657c-g7qc-r9j2