Critical SSRF Vulnerability in Python Packages - USN-7280-2

python2.7 Updated 03 Oct 2025

Summary

22/05/2025
N/A
Yes i
Unrated
Not published

USN-7280-2: python vulnerability. Affects python2.7 versions < 2.7.6-8ubuntu0.6+esm25. Fixed in 2.7.6-8ubuntu0.6+esm25. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Python is a widely-used high-level programming language known for its readability and versatility. It supports multiple programming paradigms and is commonly used for web development, data analysis, artificial intelligence, and more. The vulnerability identified in USN-7280-2 affects various Python packages across multiple Ubuntu releases, potentially exposing applications to security risks.

Vulnerability Detail

The vulnerability arises from improper handling of domain name parsing that includes square brackets. This flaw can be exploited by a remote attacker to conduct Server-Side Request Forgery (SSRF) attacks, which may allow unauthorized access to internal services or sensitive data.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm25

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python2.7

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

Workaround

As a temporary workaround, consider implementing network access controls to limit the ability of applications to make requests to internal services. This can help mitigate the risk of SSRF attacks until the packages are updated.

Conclusion

The vulnerability detailed in USN-7280-2 poses a significant risk to applications using affected Python packages. It is crucial for users to update their packages to the patched versions to mitigate the risk of SSRF attacks. Implementing network access controls can serve as a temporary measure until updates are applied.

See every vulnerability recorded for python2.7 →

Share this vulnerability

FAQ

Server-Side Request Forgery (SSRF) is a type of attack where an attacker can make requests from a vulnerable server to internal or external resources, potentially exposing sensitive information.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Failure to address this vulnerability may lead to unauthorized access to sensitive data, internal services being compromised, and potential data breaches.

Yes, you can use package management tools like apt or pip to automate updates for your Python packages, ensuring you always have the latest security patches.

Detailed information about this vulnerability can be found in the official Ubuntu Security Notices, specifically USN-7280-2.

Related vulnerabilities

Recent vulnerabilities recorded for python2.7.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm25

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python2.7

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