Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› What causes path equivalence: ‘/./’ (single dot directory)?
Cyber Security

What causes path equivalence: ‘/./’ (single dot directory)?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Cyber Security

Path equivalence with '/./' occurs because the single dot represents the current directory, so '/./' resolves to the same location as '/'. Attackers use it to bypass naive path checks, filters, or allow lists that compare strings instead of normalised paths. Defenders should canonicalise paths before validation and access control decisions.

Why '/./' Resolves to the Same Path

The sequence /./ contains the single dot directory, which means “current directory.” Because it does not move the path anywhere, normal path resolution collapses it to the same location as /. The important point is that this is a filesystem normalization rule, not a special access path.

That equivalence becomes security-relevant when software compares raw strings instead of canonicalised paths. A request that looks different on the surface can still point to the same resource after normalisation, which is why string-based checks are easy to bypass.

How Attackers Abuse Path Equivalence

Attackers use /./ to make a blocked or constrained path appear harmless to filters, routing rules, or allow lists that do not resolve the path first. This is the same class of problem as path equivalence weaknesses more broadly: the application reasons over the text, while the operating system reasons over the normalised path.

It also overlaps with other canonicalisation failures such as alternate-name handling and incomplete mediation. If the security decision happens before path normalisation, an attacker can sometimes reach a protected file, endpoint, or directory through a syntactic variation that the defender did not anticipate.

What Defenders Should Validate Before Trusting a Path

Defensive logic should compare canonicalised paths, not user-supplied strings. In practice that means resolving dot segments, redundant separators, encoding variations, and platform-specific quirks before you decide whether the request is allowed.

That control is only effective if the exact same normalisation rules are used consistently across validation, authorisation, logging, and downstream file access. If one component validates the raw path and another component later resolves it, the application can create a mismatch that attackers exploit.

For path-based controls, the safest pattern is to normalise first, then apply policy, then access the resource through the already-resolved form. That reduces the chance that a security rule, cache entry, or audit record refers to one path while the filesystem actually serves another.

Risk and Threat Considerations

Path equivalence flaws matter because they let untrusted input influence access control decisions through syntax rather than content. The result is often a bypass of file restrictions, directory boundaries, or content filters without needing a complex exploit chain.

Failure mechanism: The application evaluates the raw path string before canonicalisation, so a request containing /./ can evade a comparison that was intended to block the resolved target path.

Impact: An attacker may reach files, directories, or handlers that were meant to be hidden, restricted, or denied, which can expose data or enable follow-on abuse of the application’s file handling logic.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while CIS Controls v8, NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-16 — Application Software SecurityPath canonicalisation failures are a software input-handling weakness.
Recommendation — Validate and normalise file paths before enforcement in application code.
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationThe issue is caused by accepting unnormalised path input in security decisions.
Recommendation — Normalize and validate path input before using it in access decisions.
OWASP ASVSV5 — File HandlingThe topic concerns secure file and path handling in application logic.
Recommendation — Apply canonicalization checks before granting file or directory access.
OWASP Non-Human Identity Top 10NHI-08 — Environment IsolationPath confusion can cross expected boundaries between environments or directories.
Recommendation — Enforce strict boundary checks after path normalization.

Practitioner Guidance

What to verify: Confirm that the security gate uses the same canonical form that the runtime or filesystem uses, and test cases that include dot segments, redundant slashes, and mixed encoding. If the pre-check and the actual access path differ, the control is not trustworthy.

Common mistake: Treating a deny rule on the literal string as equivalent to denying the resolved resource. That assumption fails as soon as the platform normalises the path after the check.

Practitioner takeaway: The key decision is not whether /./ looks unusual, it is whether every access decision is made after path normalisation and on the same canonical form end to end.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org