Intel

AIKIDO-2025-10565

aiogram is vulnerable to Observable Timing Discrepancy

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 18, 2025
August 18, 2025

15

CVE Score

Low

Observable Timing Discrepancy

Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to observable timing discrepancies in signature validation. The utils.web_app module compares the calculated HMAC with the provided hash using ==, which can inadvertently leak timing information and expose the application to timing attacks. While verification still functions correctly, the non-constant-time comparison creates a side channel risk. The patch replaces == with hmac.compare_digest, ensuring constant-time comparison and mitigating potential timing-based exploits.

How do I fix this?

Upgrade the aiogram library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

3.0.0 - 3.21.0

Fixed in 3.22.0

Background info

aiogram is vulnerable to Observable Timing Discrepancy in versions 3.0.0 - 3.21.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea