Certified GKH Gardening Expert
I see from the photo, that the soil is too moist. This has likely caused an infection, and it may be beyond repair at this point.
Cactus care requires a light mix made for cacti, that is fast draining. They like to be thoroughly dry between waterings in the future.
This collection of articles will give you more information on cactus care: https://www.gardeningknowhow.com/ornamental/cacti-succulents/scgen/
Thanks for the response! I had just watered it, so that is why the soil is wet, and its in a cacti soil (not sure how great those are, my other cacti seem okay?). It actually got like this after a prolonged drought (by me).