Advisory

GHSA-v4f4-23wc-99mh

Also known as: CVE-2023-31543, PYSEC-2023-99

Summary

pipreqs vulnerable to Dependency Confusion

Details

A dependency confusion in pipreqs v0.3.0 to v0.4.11 allows attackers to execute arbitrary code via uploading a crafted PyPI package to the chosen repository server.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-06-30 21:30 UTC
Modified
2024-10-14 18:48 UTC

Affected packages and fixes

pipreqs

PyPI · All systems

Affected

  • introduced 0.3.0, fixed 0.4.12 (ecosystem)

Fixed versions

0.4.12

Fix

  • Fixed version 0.4.12
    pip install --upgrade pipreqs==0.4.12

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences