Skip to content
DoS Advisory Intermediate CVE-2022-23462

GHSL-2022-066: Stack Buffer Overflow in iowow - CVE-2022-23462

A stack buffer overflow exists in iowow's JSON parser when handling scientific notation numbers, because a buffer of size 32 is used with a format string that assumes 64 bytes. An attacker could cause a denial of service by overwriting the stack canary.

Kwstubbs Follow

Originally disclosed on GitHub Security Lab

There is a stack buffer overflow present in iowow that allows for Denial of Service (DOS) when it parses scientific notation numbers present in JSON.

Kwstubbs, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The buffer size constant IWNUMBUF_SIZE is 32, but the snprintf call uses a hardcoded size of 64, causing a write beyond the buffer.

Impact

This issue may lead to Denial of Service (DOS).

What the attacker needed

Attacker can supply JSON input

The fix

The issue was fixed in commit [redacted].

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 report has not been written yet. The Original tab links to the source.

A stack buffer overflow happens when a program writes more data into a small memory area than it can hold, corrupting nearby data. Here, the program reserves 32 bytes for a number but tries to write up to 64 bytes, so it can crash the program. An attacker could send a specially crafted JSON number to make the service unavailable.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Kwstubbs

View all

43 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.