ultralytics is vulnerable to Path Traversal
73
High Risk
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.
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.
ultralytics is vulnerable to Path Traversal in versions 8.0.136 - 8.4.95.
Upgrade the ultralytics library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant