Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about External Control of File Name or Path vulnerabilities in an interactive lesson.
Start learningUpgrade datamodel-code-generator to version 0.81.0 or higher.
datamodel-code-generator is a Datamodel Code Generator
Affected versions of this package are vulnerable to External Control of File Name or Path via the _write_missing_weak_imports method in src/datamodel_code_generator/parser/protobuf.py when processing a Protocol Buffers schema file containing a weak import directive. An attacker who controls the input schema can supply a weak import path containing directory traversal sequences (e.g. ../../) that cause the parser to write arbitrary stub files outside the intended temporary directory, resulting in unauthorized file writes to the filesystem.