“Several” US federal government agencies have been hit in a global cyberattack that exploits a vulnerability in widely used software.