This looks like it has the potential to be a bug; on the other hand, if you are over watering your aloe plant, it has the potential to be a fungus of some sort, or just a natural reaction to over watering, I have seen all three. Whenever I come across a problem like you are having here, this is the approach I follow. If the plant is outside, bring it inside and stop watering it. Let the soil dry out completely. I water my Aloe once a month so start to go light on the watering. If the plant starts to green up then we know it was over watering. However, a lot of problems can be a combination of issues such as bugs, soil and over watering. For the time being, I say your soil looks fairly decent. Now onto the treatment for bugs and fungi. I'm cautious to give you a definite answe, but we can still treat the plant.
Here are the steps to make an all in one pesticide for your succulent
1/4 gallon (4 cups) warm water
1/4 tablespoon neem oil (Kills bugs and fungi)
1/2 teaspoon 7.8% potassium silicate solution (Kills more bugs and fungi)
1/4 oz (1.5 teaspoons or 150 drops total) assorted essential oils - I use an even blend of ginger, rosemary, clove, and peppermint
1 tablespoon aloe vera juice
I wish you the best of luck. This treatment is best applied as a spray weekly depending on the environment the plant is being kept in. If it is inside then every 2 weeks should workout.