Do not rely on folder names. Check HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full to see the actual version installed.
Key attack surfaces in v4.0.30319 include: microsoft net framework 4.0 v 30319 vulnerabilities