Skip to content
Memory corruption Advisory Advanced CVE-2020-3453

Cisco RV340 upload.cgi Stack-based Buffer Overflow Remote Code Execution Vulnerability

The upload.cgi endpoint on Cisco RV340 routers copies the user-supplied fileparam value into a fixed-length stack buffer without checking its length. An authenticated, network-adjacent attacker could overflow that buffer and execute code as the www-data user.

0x00string Follow

Originally disclosed on Zero Day Initiative

Medium 6.8 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Cisco RV340 routers. Authentication is required to exploit this vulnerability.

0x00string, on the Zero Day Initiative

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 upload.cgi handler copies the fileparam parameter into a fixed-length stack buffer without validating its length.

Impact

An authenticated, network-adjacent attacker could execute arbitrary code on the router as the www-data user.

What the attacker needed

Network-adjacent access; valid authentication

The fix

Cisco issued an update to correct the vulnerability.

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 buffer is a small reserved area of memory. This router's web upload page copies whatever length of input it is given into a fixed-size buffer without checking the size first, so a long value spills over into neighbouring memory. An attacker who is already logged in and close to the network could use that spill to run their own code on the device.

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 from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.