Critical SSRF Vulnerability in Python 2.7: USN-7280-3 Update Required

python2.7 Updated 03 Oct 2025

Summary

29/09/2025
N/A
Yes i
Unrated
Not published

USN-7280-3: python2.7 regression. Affects python2.7 versions < 2.7.6-8ubuntu0.6+esm28. Fixed in 2.7.6-8ubuntu0.6+esm28. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Python 2.7 is a widely used programming language known for its simplicity and versatility in various applications, from web development to data analysis. The version 2.7.6-8ubuntu0.6+esm28, specifically in Ubuntu 14.04 LTS, has been identified with a critical vulnerability that affects its ability to handle domain names, potentially leading to serious security risks.

Vulnerability Detail

The vulnerability arises from Python's improper handling of domain names containing square brackets, which can be exploited by remote attackers to execute Server-Side Request Forgery (SSRF) attacks. This flaw can allow attackers to send unauthorized requests from the server, potentially accessing sensitive internal resources and leading to data breaches or further exploitation.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm28

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 restricting access to the affected services or implementing firewall rules to block unauthorized requests until the package can be updated.

Conclusion

The identified vulnerability in Python 2.7 poses significant security risks that can be mitigated through timely updates. Users are strongly encouraged to apply the necessary patches to safeguard their applications against potential exploitation.

See every vulnerability recorded for python2.7 →

Share this vulnerability

FAQ

The vulnerability allows for Server-Side Request Forgery (SSRF) attacks due to improper parsing of domain names with square brackets.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized access to internal resources, data breaches, and further attacks on the system.

Yes, updating to the patched version of Python 2.7 (2.7.6-8ubuntu0.6+esm28) resolves the vulnerability.

If immediate updates are not possible, implement firewall rules to restrict access and monitor for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for python2.7.

How To Fix

Minimum fixed version

2.7.6-8ubuntu0.6+esm28

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