Buffer overflow in ovt_packet.cpp`– Buffer Overflow / Invalid Packet Size Handling #1990
Replies: 9 comments
-
|
Do you see the same issue when testing with 0.20.0? 0.20.0 addresses an issue related to OVT depacketizing. |
Beta Was this translation helpful? Give feedback.
-
|
The server is running the latest docker image which has ome version 0.20.0
|
Beta Was this translation helpful? Give feedback.
-
If my understanding is incorrect, please explain in more detail which part of the packet parsing you believe is unsafe, and under what specific condition the buffer is accessed incorrectly. |
Beta Was this translation helpful? Give feedback.
-
|
@getroot On the server , its showing error that packet is dropped when its corrupted but the response received shows that there is some internal server error . The internal server error coming is not coming from the dropped packet . Can you investigate it .
|
Beta Was this translation helpful? Give feedback.
-
|
@getroot I can provide the POC over the email that i have prepared, if you need it for investigation on the dev side |
Beta Was this translation helpful? Give feedback.
-
|
Is this an issue that occurs between the same versions of OME Origin and OME Edge? I still don’t understand what the problem is. Please explain what you are trying to do and what is not working, and share the log files and the Server.xml. |
Beta Was this translation helpful? Give feedback.
-
|
I am trying to get my hands on the server.xml and the log files for your analysis . During recent engagement , oven media server was tested for any vulnerabilites . The server is responding ( Server Internals Error ) on invalid packet size . The server in question is a media server which streams |
Beta Was this translation helpful? Give feedback.
-
|
As the title of this issue suggests, if a buffer overflow occurs, that's an issue. However, I don't think properly detecting malformed packets and responding with an Internal Error is a problem. Furthermore, the OVT protocol isn't open for third-party implementation. (Of course, anyone can implement it by looking at the code.) |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🐛 Buffer Overflow in
ovt_packet— Invalid Packet Size HandlingDescribe the bug
A buffer overflow / unsafe buffer handling issue occurs in
ovt_packet.cppat line 61 during packet depacketization.Although the error is currently logged as an invalid packet, the underlying problem is a buffer size mismatch that can lead to unsafe buffer access (overread / overflow) when malformed or truncated packets are received.
The issue is reproducible and causes repeated depacketizer errors followed by client disconnects.
To Reproduce
Steps to reproduce the behavior:
9000)📎 I can provide a
POC.pyscript to reliably reproduce the issue if needed.Expected behavior
Actual behavior
Logs
Please upload the entire
OvenMediaEngine.log.(You may remove any sensitive or personal information.)
Server (please complete the following information)
Player (please complete the following information)
NA
Additional context
ovt_packet.cpp:61should prevent this issue entirelyIf helpful, I can:
Beta Was this translation helpful? Give feedback.
All reactions