Skip to content
Memory corruption Advisory Advanced CVE-2022-40992CVE-2022-41018CVE-2022-41005CVE-2022-41028CVE-2022-40990CVE-2022-40985CVE-2022-40989CVE-2022-40991CVE-2022-40994CVE-2022-41002CVE-2022-41012CVE-2022-41019CVE-2022-41030CVE-2022-41011CVE-2022-41027CVE-2022-40986CVE-2022-41007CVE-2022-41022CVE-2022-41020CVE-2022-40995CVE-2022-40998CVE-2022-41001CVE-2022-41006CVE-2022-41014CVE-2022-41029CVE-2022-41010CVE-2022-40997CVE-2022-40996CVE-2022-41016CVE-2022-40988CVE-2022-41017CVE-2022-41004CVE-2022-41013CVE-2022-41000CVE-2022-40999CVE-2022-41025CVE-2022-41008CVE-2022-41015CVE-2022-41026CVE-2022-41024CVE-2022-41009CVE-2022-41003CVE-2022-40993CVE-2022-41021CVE-2022-40987CVE-2022-41023

Siretta QUARTZ-GOLD DetranCLI command parsing stack-based buffer overflow vulnerabilities

The DetranCLI command parser in the Siretta QUARTZ-GOLD router uses sprintf into fixed-size stack buffers without checking the length of user-supplied command parameters, causing stack-based buffer overflows. An attacker who can send crafted CLI commands could overflow these buffers and potentially execute arbitrary commands.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.2 View original

Several stack-based buffer overflow vulnerabilities exist in the DetranCLI command parsing functionality of Siretta QUARTZ-GOLD G5.0.1.5-210720-141020. A specially-crafted network packet can lead to arbitrary command execution.

Francesco Benvenuto, on Cisco Talos

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 DetranCLI binary uses sprintf to copy command parameters into fixed-size stack buffers without validating their length.

What the attacker needed

Access to the DetranCLI interface; high privileges (PR:H in CVSS)

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 overflow happens when a program copies more data into a fixed-size memory area than it can hold, so the extra data spills over into nearby memory. Here, the router's command-line tool builds text strings from your input without checking length, so a very long input can overwrite important memory and let an attacker take control. The attacker needs to be able to send commands to the router's CLI.

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 Francesco Benvenuto

View all

152 more disclosed reports, best first.

More from Cisco Talos

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.