If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
Add your gear to cvedb and we'll alert you only when python ships something exploited.
Check my exposure →This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.