VDB
Sign up
CRITICAL9.8

PYSEC-2023-16

Quick fix

PYSEC-2023-16 — gradio: upgrade to the fixed version with the command below.

pip install --upgrade 'gradio>=3.13.1'

Details

Gradio is an open-source Python library to build machine learning and data science demos and web applications. Versions prior to 3.13.1 contain Use of Hard-coded Credentials. When using Gradio's share links (i.e. creating a Gradio app and then setting `share=True`), a private SSH key is sent to any user that connects to the Gradio machine, which means that a user could access other users' shared Gradio demos. From there, other exploits are possible depending on the level of access/exposure the Gradio app provides. This issue is patched in version 3.13.1, however, users are recommended to update to 3.19.1 or later where the FRP solution has been properly tested.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/gradio
Introduced in: 0Fixed in: 3.13.1
Fixpip install --upgrade 'gradio>=3.13.1'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/gradio"]}'