Make the Cupcakes
Preheat the oven to 350°F (175°C). Line two standard muffin pans with paper cupcake liners.
In a medium bowl, whisk together the flour, cocoa powder, baking soda, and salt. Set aside.
In a large mixing bowl, beat the softened butter and granulated sugar with an electric mixer for 2–3 minutes until light and creamy.
Add the oil and mix until combined.
Beat in the eggs one at a time, mixing after each addition. Add the vanilla extract and red food coloring.
With the mixer on low speed, add one-third of the dry ingredients, followed by half of the buttermilk. Repeat, ending with the remaining dry ingredients. Mix just until combined.
Gently stir in the white vinegar. Do not overmix.
Divide the batter evenly among the cupcake liners, filling each about two-thirds full.
Bake for 18–22 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs. If baking both pans at once, rotate them halfway through for even baking.
Let the cupcakes cool in the pans for 5 minutes, then transfer to a wire rack to cool completely before frosting.
Make the Chocolate Cream Cheese Frosting
Beat the softened butter in a large bowl for 1–2 minutes until smooth and creamy.
Add the cream cheese and beat on medium-low speed just until smooth. Avoid overbeating.
Add the sifted powdered sugar and cocoa powder gradually, mixing on low speed until incorporated.
Add the vanilla extract and salt. Beat briefly until smooth and creamy.
If the frosting is too soft for piping, refrigerate for 15–20 minutes before using.
Pipe or spread the frosting onto the completely cooled cupcakes.