Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Partial PUT Request
Cyber Security

Partial PUT Request

← Back to Glossary
By NHI Mgmt Group Updated November 4, 2026 Domain: Cyber Security

A partial PUT request is an HTTP upload method used to write part of a resource to a server. In this context, it matters because Tomcat used the supplied filename and path to create temporary files, which became a security problem when path handling allowed crafted names to alter file placement.

How Partial PUT Requests Work

A partial PUT request is a way to write only part of a server-side resource instead of replacing the whole object in one operation. That makes it useful for resumable or segmented uploads, but it also means the server must interpret filenames, offsets, and temporary storage paths safely so that a malformed request cannot influence where files are created.

In practice, the security boundary is not the PUT verb itself, but how the application maps request data to filesystem operations. If the implementation treats user-controlled names as trusted path material, a partial write can become a file placement problem rather than a simple upload feature.

Why Partial PUT Requests Are Security-Sensitive

Partial upload handling increases complexity because the server has to merge request fragments, track state, and write temporary data before final assembly. Each of those steps expands the attack surface for path traversal, unexpected file creation, overwrite confusion, and permission mistakes. OWASP’s API Security Top 10 is a useful reference point because upload and object-handling flaws often turn into authorization or resource-handling failures at the API layer.

The risk becomes sharper when the implementation stores intermediate files in a shared directory or derives names from client input. A poorly constrained path may allow crafted names to escape the intended upload area, collide with another file, or create artefacts that are later executed, served, or processed as trusted content.

Common Failure Modes in File Placement and Temp Storage

Partial PUT implementations tend to fail in the same few ways: unsafe path concatenation, insufficient canonicalization, weak filename validation, and inconsistent handling of temporary versus final storage locations. The problem is often not the uploaded bytes themselves, but the metadata used to place those bytes on disk.

When a server creates temporary files before it has fully validated the request, the temporary name can become a security control bypass. A request that looks like a harmless partial update may still influence where the temporary object lands, what permissions it inherits, or whether a later cleanup step removes the wrong file.

Secure Handling and Validation Expectations

Defensive handling starts with treating all upload path components as untrusted input and mapping them to a server-owned storage policy, not to raw filesystem paths. The server should isolate upload workspaces, normalise paths before use, and enforce strict rules for which filenames, extensions, and destinations are allowed.

The broader control expectation is consistent with NIST SP 800-53 Rev 5 Security and Privacy Controls, especially controls around input handling, access restriction, configuration, and auditability. For organisations that prefer baseline hardening guidance, CIS Benchmarks help reduce the chance that upload directories, web roots, and temporary paths are left overly permissive.

Where file-transfer behaviour is part of a broader secure system design, keep the upload service as narrow as possible and do not let it inherit broader filesystem privileges than it needs. The safest pattern is usually a constrained write path with explicit post-upload validation rather than a general-purpose path resolver.

Why Tomcat Made This Pattern Dangerous

In the Tomcat case referenced by the definition, the danger came from the server using supplied filename and path data to create temporary files. That meant the upload mechanism was not just receiving content, it was also making a filesystem decision based on attacker-influenced input. Once that happens, a partial PUT feature can become a primitive for writing outside the intended location or shaping server-side file placement in ways the operator did not expect.

That is why partial PUT is best understood as an upload mechanic with security consequences, not as a neutral HTTP variation. Its safety depends on strict path handling, safe temporary storage, and a disciplined separation between client-controlled metadata and server-controlled filesystem state.

Risk and Threat Considerations

Partial PUT handling creates a real exposure when a server trusts client-supplied names or paths during temporary file creation. The resulting failure mode is often arbitrary or unintended file placement, which can lead to overwrite, disclosure, or code execution if the affected location is later processed by the application or web server.

Failure mechanism: The attacker supplies crafted path material that survives parsing or normalisation flaws, causing the server to create or move a temporary file into an unexpected location.

Impact: The resulting file may overwrite a sensitive object, land in a served directory, or become a stepping stone to broader compromise through content injection or execution.

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 CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API8 — Security MisconfigurationPartial PUT file placement flaws arise from unsafe server-side handling of upload paths.
Recommendation — Harden upload handling so client-supplied names cannot steer filesystem placement or temp-file creation.
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationRequest path and filename data must be validated before it affects file operations.
AC-6 — Least PrivilegeUpload services should not have broad filesystem authority beyond their required write scope.
Recommendation — Validate and constrain upload metadata before any filesystem write occurs. Restrict the upload process to the minimum filesystem privileges needed for its function.
CIS Controls v8CIS-4 — Secure Configuration of Enterprise Assets and SoftwareUpload and temporary storage paths need hardened configuration and restrictive permissions.
Recommendation — Apply hardened configuration to upload directories, temp paths, and related service permissions.

Practitioner Guidance

What to watch for: Treat partial upload features as filesystem-sensitive code paths, not just HTTP handlers. Review any implementation that writes temporary files, reconstructs uploads from fragments, or accepts user-influenced names before allocating storage.

Practitioner takeaway: If a partial PUT flow can influence where a file is created, the path handling itself becomes part of your attack surface and needs the same scrutiny as authentication or access control logic.

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