01 - Preheat the 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 the dry mixture to the wet ingredients and mix gently until just combined, avoiding overmixing.
05 - Divide batter evenly among liners, filling each about 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, then transfer to a wire rack to cool completely.
08 - Beat cream cheese and butter until smooth and creamy. Gradually add powdered sugar, vanilla, and salt; beat on low until incorporated, then increase speed until fluffy.
09 - Once fully cooled, frost cupcakes generously with cream cheese frosting using a piping bag or spatula.