These cute little worms are the larvae from wax moths. And they are not cute or little. When a beehive is weakened, because of low bee populations for example, the wax moth can enter the hive and lay eggs. When the eggs mature they turn into these larvae.
The wax moth larvae have a ferocious appetite for beeswax, which is the foundation of the comb that bees store their honey. This can destroy a hive in no time. I found the pictured destruction in one of my hives and am currently working on saving the hive. I am trying to combine 2 weak hives into 1 strong hive. The problem is that if there are any unseen wax moth eggs, the problem will continue. Wish me luck!