Laravel: Unbounded $ref chain resolution in Illuminate\JsonSchema\Deserializer allows denial of service
Summary
Laravel is a web application framework. Prior to 12.73.0 and 13.43.0, Illuminate\JsonSchema\Deserializer resolved chained local $ref pointers recursively without limiting the depth of the chain. Applications that pass attacker-influenced JSON Schema data to JsonSchema::fromArray() or Deserializer::d...
Original description The description as published by the source.
Laravel is a web application framework. Prior to 12.73.0 and 13.43.0, Illuminate\JsonSchema\Deserializer resolved chained local $ref pointers recursively without limiting the depth of the chain. Applications that pass attacker-influenced JSON Schema data to JsonSchema::fromArray() or Deserializer::deserialize() could be sent a crafted schema containing a long linear chain of $ref references. Resolving it consumes memory and CPU rapidly and can exhaust the PHP memory limit, terminating the worker process. Repeated requests can sustain the outage. Applications that only deserialize developer-defined schemas are not affected. This issue is fixed in versions 12.73.0 and 13.43.0.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com