ultralytics is vulnerable to Path Traversal
73
CVE Score
High
Path Traversal
convert_ndjson_to_yolo() in ultralytics/data/converter.py joins NDJSON split, file, and classification class-name fields directly into output image and label paths under the generated dataset directory. A crafted NDJSON record can supply traversal segments or other unsafe path components in those fields so conversion writes outside the intended dataset tree, overwriting or creating files the converter process can reach. The fix restricts split to train/val/test, rewrites each image to a collision-free index-based filename, and maps classification classes onto dense numeric directories so untrusted display names never own filesystem paths.
Upgrade the ultralytics library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application converts or trains on untrusted NDJSON datasets via convert_ndjson_to_yolo() or model.train(data=...) with an .ndjson source.
8.0.136 - 8.4.95
Fixed in 8.4.96ultralytics is vulnerable to Path Traversal in versions 8.0.136 - 8.4.95.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.