Critical Vulnerability in python-aiohttp: Unauthorized File Access Risk

python-aiohttp Updated 03 Oct 2025

Summary

05/09/2024
N/A
Yes i
Unrated
Not published

USN-6991-1: python-aiohttp vulnerability. Affects python-aiohttp versions < 3.0.1-1ubuntu0.1~esm4. Fixed in 3.0.1-1ubuntu0.1~esm4. 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-aiohttp is an asynchronous HTTP client/server framework for Python, designed to facilitate the development of web applications and services. It provides features such as support for web sockets, middleware, and routing, making it a popular choice among developers. However, a recent vulnerability has been identified that affects its security, particularly concerning file access permissions when the 'follow_symlinks' option is enabled.

Vulnerability Detail

The vulnerability arises from improper restrictions on file access within the AIOHTTP framework. When the 'follow_symlinks' option is set to True, a remote attacker could exploit this flaw to gain unauthorized access to sensitive files on the server. This could lead to data breaches, exposure of confidential information, and potential further exploitation of the system. The issue has been documented under CVE-2024-23334.

How To Fix

Minimum fixed version

3.0.1-1ubuntu0.1~esm4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-aiohttp

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

Workaround

As a temporary workaround, it is advisable to set the 'follow_symlinks' option to False in your AIOHTTP configuration to mitigate the risk of unauthorized file access until the package can be updated.

Conclusion

The python-aiohttp vulnerability poses a significant risk of unauthorized file access, which can lead to severe security breaches. It is crucial for users to update their packages to the latest patched versions and consider implementing workarounds until updates can be applied. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for python-aiohttp →

Share this vulnerability

FAQ

The vulnerability allows unauthorized file access when the 'follow_symlinks' option is enabled, potentially exposing sensitive data.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file. Check your application against this vulnerability at Vulert Scanner.

Exploitation of this vulnerability could lead to data breaches, unauthorized access to sensitive files, and further exploitation of the affected system.

Yes, patched versions of python-aiohttp are available for various Ubuntu LTS releases. It is recommended to update to the latest version.

As a temporary measure, disable the 'follow_symlinks' option in your AIOHTTP configuration to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for python-aiohttp.

How To Fix

Minimum fixed version

3.0.1-1ubuntu0.1~esm4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-aiohttp

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