Skip to content
Memory corruption Write-up Advanced

CVE-2022–36934: An integer overflow in WhatsApp leading to remote code execution in an established video call

An integer overflow in WhatsApp's video call handler could lead to a heap-based buffer overflow, allowing an attacker to overwrite memory and potentially execute code remotely. The text claims this could let an attacker take over WhatsApp Messenger.

Anshul vyas Follow

Published on infosecwriteups.com

The number of digits in an established video call could be increased by an integer overflow that can result in remote code execution (RCE). It can be higher or lower than the minimum representable value depending on the number of digits.

Anshul vyas, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an integer overflow when calculating a buffer size in the video call handler, leading to a heap-based buffer overflow.

What the attacker needed

Established video call

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

An integer overflow happens when a number gets too big for the space set aside for it, so it wraps around to a small or negative value. If that number is used to decide how much memory to reserve, the program might reserve too little and then write more data than fits, spilling into neighbouring memory. This is called a buffer overflow, and an attacker could use it to run their own code.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Anshul vyas

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.