01 - Preheat oven to 350°F. Line a 12-cup muffin tin with paper liners.
02 - Whisk together flour, sugar, cocoa powder, baking soda, and salt in a medium bowl.
03 - In a large bowl, whisk vegetable oil, buttermilk, egg, vanilla extract, white vinegar, and red food coloring until smooth.
04 - Add dry ingredients to wet mixture and stir until just combined, avoiding overmixing.
05 - Divide batter evenly among liners, filling each approximately two-thirds full.
06 - Bake for 18 to 20 minutes, or until a toothpick inserted in the center comes out clean.
07 - Allow cupcakes to cool in the pan for 5 minutes before transferring to a wire rack to cool completely.
08 - Beat cream cheese and butter together until smooth. Add powdered sugar, vanilla, and salt; beat on low speed to combine, then increase speed and beat until fluffy.
09 - Once cooled, frost cupcakes generously using a piping bag or spatula.