Jordan White struck in extra-time as he appeared to elbow the ball home in controversial circumstances to dump Queens out of the Petrofac Training Cup.
White struck home from close range with just five minutes of the additional 30 minutes remaining in a dour encounter in which Queens had to field a side without some regulars due to injury..
Dale Hilson, Paul Heffernan and Mark Millar, twice, wasted chances for Queens, while Livi's Craig Sives had a header saved by Robbie Thomson.
Doonhamers sub Derek Lyle was denied by Darren Jamieson and Millar nodded wide before White bundled the ball in.
It was quick revenge for the West Lothian side following their 1-0 home loss in the Championship on Saturday.
Queens although not at their best created enough chances to win but fell for the sucker goal at the death which on video evidence looked very dodgy indeed.
Lineup, Bookings (8) & Substitutions (6)
Queen of the South
- 01 Thomson
- 02 Kidd
- 05 Brownlie
- 06 Higgins
- 10 Conroy
- 17 Pickard (Marshall - 45' )
- 16 Hutton Booked
- 08 Millar Booked
- 14 Jacobs
- 18 Heffernan (Lyle - 58' )
- 21 Hilson (Smith - 48' )
Substitutes
- 09 Lyle
- 12 Rutherford
- 19 Moxon
- 20 Atkinson
- 22 Hooper
- 23 Marshall
- 24 Smith
Livingston
- 01 Jamieson
- 05 Sives
- 06 Gordon Booked
- 14 Gallagher Booked
- 03 Longridge Booked (Glen - 102' )
- 17 Georgiev (Mullen - 64' )
- 07 Pittman Booked
- 04 Cole Booked
- 11 Hippolyte Booked
- 09 White
- 18 Sheerin (Buchanan - 64' )
Substitutes
- 02 Millen
- 10 Mullen
- 12 Gould
- 15 Neill
- 16 Gibbons
- 19 Buchanan
- 31 Glen