Skip to content

Discrepancy between what's in GitHub and what's been published to PyPI for v8.3.41 #18027

@metrizable

Description

@metrizable

Bug

Code in the published wheel 8.3.41 is not what's in GitHub and appears to invoke mining. Users of ultralytics who install 8.3.41 will unknowingly execute an xmrig miner.

Examining the file utils/download.py, the contents in the published wheel are not representative of what's in GitHub:

$ wget -q https://files.pythonhosted.org/packages/d0/99/13d92174aa6a470d348a95e31164769f2cdf77838ea3c3e3fd476285777d/ultralytics-8.3.41-py3-none-any.whl
$ unzip -q ultralytics-8.3.41-py3-none-any.whl 
$ cat ultralytics/utils/downloads.py | sed -n "278,301p"

For the 8.3.41 tag, the content looks quite different:
https://github.com/ultralytics/ultralytics/blob/v8.3.41/ultralytics/utils/downloads.py#L278

Environment

Ultralytics 8.3.41

Minimal Reproducible Example

$ wget -q https://files.pythonhosted.org/packages/d0/99/13d92174aa6a470d348a95e31164769f2cdf77838ea3c3e3fd476285777d/ultralytics-8.3.41-py3-none-any.whl
$ unzip -q ultralytics-8.3.41-py3-none-any.whl 
$ cat ultralytics/utils/downloads.py | sed -n "278,301p"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intended in the official Ultralytics package.dependenciesDependencies and packagesfixedBug has been resolved

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions