Vulnerability in python-networkx package

python3-networkx Updated 02 Oct 2025

Summary

28/04/2020
N/A
Yes i
Unrated
Not published

ALBA-2020:1669: python-networkx bug fix and enhancement update. Affects python3-networkx versions < 1.11-16.1.el8. Fixed in 1.11-16.1.el8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The python-networkx package is a Python library used for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. It provides various algorithms and data structures for graph analysis. The vulnerability affects versions 0 to 1.11-16.1.el8 of the package in the AlmaLinux 8 ecosystem.

Vulnerability Detail

The vulnerability in python-networkx allows for arbitrary code execution when processing specially crafted graph files. This can lead to remote code execution and potential compromise of the system. The issue originates from a lack of proper input validation and sanitization, allowing malicious inputs to trigger the execution of arbitrary code.

How To Fix

Minimum fixed version

1.11-16.1.el8

This is the first release that contains the fix.

sudo dnf update python3-networkx

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid processing untrusted or unknown graph files with the python-networkx package. By refraining from opening or executing suspicious graph files, the risk of exploitation can be mitigated.

Conclusion

In conclusion, the python-networkx package in the AlmaLinux 8 ecosystem is vulnerable to arbitrary code execution. It is crucial to update the package to the fixed version or apply the recommended workaround to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for python3-networkx →

Share this vulnerability

FAQ

Python-networkx is a Python library used for graph analysis and manipulation. It provides algorithms and data structures for studying complex networks.

The vulnerability allows for arbitrary code execution, which can lead to remote code execution and potential compromise of the system.

Versions 0 to 1.11-16.1.el8 of python-networkx in the AlmaLinux 8 ecosystem are affected.

To fix the vulnerability, update the python-networkx package to version 1.11-16.1.el8 or later.

As a temporary workaround, avoid processing untrusted or unknown graph files with the python-networkx package.

How To Fix

Minimum fixed version

1.11-16.1.el8

This is the first release that contains the fix.

sudo dnf update python3-networkx

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback