It is native to Eurasia and Africa . It has been naturalized in the Americas , southern Africa , Australia , and New Zealand . It is native to Eurasia and North Africa , but it is known in the Americas , southern Africa , Australia and New Zealand as an introduced species and often a noxious weed .