This sentence can only be translated as "She has a friend." or "She has a boyfriend." (not girlfriend as that would be "eine Freundin"). With this sentence, you don't know and either of the two options are correct. In the real world, context would be given, or you could even say "Sie hat einen Freund von ihr." which literally means "She has a friend of hers."