Infestation, Volume 2
You may be looking for the series itself.

Premise 
Back cover blurb
The first-ever event in IDW Publishing's history crosses over into the Star Trek universe! A routine visit to a colony world takes a horrifying turn when Admiral Kirk, Mr. Spock and Dr. McCoy find themselves surrounded by hordes of the undead! Then, the event continues into the Ghostbusters universe, thanks to a plague of poltergeists that resist long-term storage in the containment grid, the Ghostbusters are dealing with a surplus of work... and their job is only going to get harder when Britt's zombies try to take a nibble out of the Big Apple! And, finally, back to the IDW universe for the grand finale. Britt has returned, armed with new technology that will spread the Infestation across all known realities. Zombie apocalypse looms and the remaining members of CVO are running out of options... humanity's last hope may be a risky sacrifice that could alter the IDW universe forever!

Issues 
 "Star Trek: Infestation, Issue 1"
 "Star Trek: Infestation, Issue 2"
 "Ghostbusters: Infestation, Issue 1"
 "Ghostbusters: Infestation, Issue 2"
 "Infestation, Issue 2"

Credits 
Credits for Star Trek segments only
 Writers:
 Scott Tipton
 David Tipton
 Artists:
 Casey Maloney (pencil layouts)
 Gary Erskine (pencil finishes)
 Luis Antonio Delgado (colors)
 Chris Mowry (letters)
 Editors
 Tom Waltz
 Bobby Curnow (assistant editor)
 Collection edited by:
 Justin Eisinger
 Collection designed by:
 Chris Mowry
 Cover art by:
 John K. Snyder III
Comic collections