I've done two transfers recently DXB-DOH-BKK and BKK-DOH-DXB in a few minutes, no security - just gate to gate. Connection time was 50mins and there was a rep waiting. Took 10mins or less but plane was on a jet bridge.
But if plane parks on a remote stand, it could be risky. There will be someone waiting for sure. Biz pax get a dedicated vehicle to the terminal, so still better chances than economy travellers.
You should make it.