GHSL-2020-058: OOB read in Apache Guacamole prior to 1.2.0 - CVE-2020-9497
An out-of-bounds read in Apache Guacamole's RDP audio channel occurs when a WaveInfo PDU contains a format index outside the 16-member array. An authenticated attacker could potentially leak memory contents from the guacd process.
Originally disclosed on GitHub Security Lab
There is an out of bounds read in Apache Guacamole server’s RDP protocol. The vulnerability exists in the RDP Audio Output Virtual Channel Extension, while trying to parse a PDU of type WaveInfo which is used to transmit audio data through the channel.
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 code reads a 16-bit format index from the network and uses it to index a fixed-size array without validating that the index is within bounds.
Impact
An authenticated user may potentially leak information about the memory contents of the `guacd` process.
What the attacker needed
Authenticated user; ability to send RDP audio PDUs
The fix
The vulnerability was fixed in version 1.2.0.
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.
The server keeps a list of 16 audio formats. A message from the client includes a number that says which format to use, but the server does not check that the number is between 0 and 15. If the number is larger, the server reads memory outside the list, which could reveal private data.
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.