Join our Newsletter — 33% off our NHI Course
Foundations & NHI Taxonomy

RFC 4122

← Back to Glossary
By NHI Mgmt Group Updated November 2, 2026 Domain: Foundations & NHI Taxonomy

RFC 4122 is the Internet standard that defines the UUID format and the methods for generating versioned universally unique identifiers. It specifies the 128-bit layout, variant bits, and common versions such as time-based and random UUIDs, so systems can create identifiers that are unique enough for distributed use without central coordination.

What RFC 4122 defines in practice

RFC 4122 is the standard that made UUIDs predictable to implement across systems. It defines the 128-bit structure, the variant and version bits, and the rules for generating identifiers so different applications can create values that are unique enough for distributed use without relying on a central registry.

The practical value of the RFC is interoperability. When teams use the same UUID format, databases, services, queues, logs, and APIs can exchange identifiers without first agreeing on a shared numbering authority or sequence generator.

Why UUID structure matters

The version and variant bits are not decorative, they tell parsers and generators how to interpret the identifier. That lets systems distinguish between UUID variants, preserve compatibility across implementations, and avoid treating every 128-bit value as an interchangeable blob.

Different UUID versions support different operational goals. Time-based identifiers can encode creation order, while random identifiers reduce coordination needs. The choice affects sortability, collision behaviour, traceability, and how much information the identifier may reveal about when or where it was created.

Where RFC 4122 is used

UUIDs are common in distributed systems because they can be generated locally and still remain globally practical for uniqueness. That makes them useful for primary keys, correlation IDs, object references, session-like tokens, and cross-service message identifiers.

They are also attractive in event-driven and loosely coupled architectures, where multiple writers may create records at the same time. RFC 4122 gives engineers a shared grammar for that problem, even when the underlying storage, language, or platform differs.

Security and operational considerations

RFC 4122 solves identifier uniqueness, not secrecy or access control. A UUID can be hard to guess, but that does not make it an authentication factor, an authorization decision, or a safe substitute for entropy-aware secret design.

Teams should also remember that some UUID versions can leak timing or structure clues, and that poor generators can still collide or repeat values under load. In security-sensitive designs, the identifier format should be evaluated alongside logging, exposure, and any business meaning attached to the identifier.

Risk and Threat Considerations

UUIDs are often treated as if they are unguessable by default, but exposure risk depends on how the identifier is used. If a UUID becomes a direct object reference, account handle, or workflow selector, attackers may still enumerate, replay, or abuse it when surrounding access checks are weak.

Failure mechanism: Weak generator quality, predictable time-based structure, or missing authorization around identifier lookups can turn a supposedly opaque ID into a usable attack path.

Impact: The result can be unauthorized access, record discovery, object tampering, or easier correlation of activity across systems.

Standards & Framework Alignment

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

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementUUID use can intersect with token and secret lifecycle when identifiers are exposed as access material.
AC-6 — Least PrivilegeUUIDs used as object references still require access restriction beyond identifier opacity.
Recommendation — Manage any UUID-based access tokens separately from identifier generation and rotate them when exposure is suspected. Enforce least privilege on every UUID-addressed object or resource lookup.
OWASP ASVSV8 — AuthorizationUUIDs are often used in object references, where authorization must prevent insecure direct access.
Recommendation — Verify every UUID-based object access against explicit authorization rules.
OWASP API Security Top 10API1 — Broken Object Level AuthorizationUUIDs frequently appear in API object references, where weak object checks enable unauthorized access.
API9 — Improper Inventory ManagementUUIDs are commonly used across APIs and services, where poor inventory makes hidden or legacy endpoints discoverable.
Recommendation — Test UUID-backed endpoints for object-level authorization failures and deny access by default. Keep an inventory of UUID-exposed services and retire stale endpoints that still accept them.

Practitioner Guidance

Why practitioners should care: RFC 4122 is an interoperability standard, not a security control, so it should be chosen for identifier compatibility rather than assumed protection. Use it where distributed uniqueness is the requirement, then separately decide whether the identifier will be exposed externally, logged, or used in URLs and APIs.

What to watch for: Review any system that relies on UUIDs for obscurity and any implementation that still uses a noncompliant or low-quality generator. If identifier predictability would matter to an attacker, treat the surrounding authorization model, not the UUID format, as the real control boundary.

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 November 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org