Path traversal attacks occur when user input controls file system paths without proper validation. Attackers can use sequences like '../' to access files outside the intended directory. Privilege escalation, XSS, and buffer overflow are different vulnerability types.