Moderate: python-idna security update

python3-idna Updated 02 Oct 2025

Summary

02/07/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:4260: Moderate: python-idna security update. Affects python3-idna versions < 2.5-7.el8_10. Fixed in 2.5-7.el8_10. 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

The python3-idna package is a Python library that provides support for Internationalized Domain Names (IDNs). It allows users to encode and decode domain names containing non-ASCII characters. This package is commonly used in web applications and networking tools to handle IDNs. The vulnerability identified in this package can potentially lead to a denial-of-service (DoS) attack by consuming excessive system resources.

Vulnerability Detail

The vulnerability, identified as CVE-2024-3651, exists in the idna.encode() function of the python-idna library. By providing specially crafted inputs to this function, an attacker can cause the application to consume excessive resources, leading to a DoS condition. This vulnerability has been rated as moderate in severity. It is important to note that this vulnerability only affects versions of python-idna up to 2.5-7.el8_10.

How To Fix

Minimum fixed version

2.5-7.el8_10

This is the first release that contains the fix.

sudo dnf update python3-idna

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

Conclusion

The python-idna library, specifically the idna.encode() function, is vulnerable to a DoS attack due to excessive resource consumption. To mitigate this vulnerability, it is crucial to update the python3-idna package to version 2.5-7.el8_10 or later. No specific workaround has been provided, and it is recommended to apply the security update promptly.

See every vulnerability recorded for python3-idna →

Share this vulnerability

FAQ

Python-idna is a library that provides support for Internationalized Domain Names (IDNs). It allows encoding and decoding of domain names containing non-ASCII characters.

The vulnerability can lead to a denial-of-service (DoS) attack by causing excessive resource consumption in the application.

Versions up to 2.5-7.el8_10 of python-idna are affected by this vulnerability.

To fix this vulnerability, update the python3-idna package to version 2.5-7.el8_10 or later using the package manager of your operating system.

No specific workaround has been provided for this vulnerability. It is recommended to apply the security update as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for python3-idna.

How To Fix

Minimum fixed version

2.5-7.el8_10

This is the first release that contains the fix.

sudo dnf update python3-idna

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