9.6critical
NuGet Gallery: Arbitrary Blob Overwrite via Nuspec Confusion and URI Fragment Truncation
- Severity
- 9.6critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.85% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
NuGet Gallery is a package repository that powers nuget.org. A security vulnerability exists in the NuGetGallery backend job’s handling of .nuspec files within NuGet packages. An attacker can supply a crafted nuspec file with malicious metadata, leading to cross package metadata injection that may result in remote code execution (RCE) and/or arbitrary blob writes due to insufficient input validation. The issue is exploitable via URI fragment injection using unsanitized package identifiers, allowing an attacker to control the resolved blob path. This enables writes to arbitrary blobs within the storage container, not limited to .nupkg files, resulting in potential tampering of existing content. This issue has been patched in commit 0e80f87628349207cdcaf55358491f8a6f1ca276.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| NuGet NuGetGallery | < 0e80f87628349207cdcaf55358491f8a6f1ca276 | CVE List |
Classification
What each source says
CVE List
NuGet Gallery is a package repository that powers nuget.org. A security vulnerability exists in the NuGetGallery backend job’s handling of .nuspec files within NuGet packages. An attacker can supply a crafted nuspec file with malicious metadata, leading to cross package metadata injection that may result in remote code execution (RCE) and/or arbitrary blob writes due to insufficient input validation. The issue is exploitable via URI fragment injection using unsanitized package identifiers, allowing an attacker to control the resolved blob path. This enables writes to arbitrary blobs within the storage container, not limited to .nupkg files, resulting in potential tampering of existing content. This issue has been patched in commit 0e80f87628349207cdcaf55358491f8a6f1ca276.
NVD (es)
NuGet Gallery es un repositorio de paquetes que impulsa nuget.org. Una vulnerabilidad de seguridad existe en el manejo de archivos .nuspec dentro de paquetes NuGet por parte del trabajo de backend de NuGetGallery. Un atacante puede suministrar un archivo nuspec manipulado con metadatos maliciosos, lo que lleva a la inyección de metadatos entre paquetes que puede resultar en ejecución remota de código (RCE) y/o escrituras arbitrarias de blobs debido a una validación de entrada insuficiente. El problema es explotable a través de la inyección de fragmentos URI utilizando identificadores de paquete no saneados, permitiendo a un atacante controlar la ruta de blob resuelta. Esto permite escrituras en blobs arbitrarios dentro del contenedor de almacenamiento, no limitado a archivos .nupkg, lo que resulta en una posible manipulación del contenido existente. Este problema ha sido parcheado en el commit 0e80f87628349207cdcaf55358491f8a6f1ca276.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39399 changed 2026-04-15 | CVE Terms of Use |
| NVD | CVE-2026-39399 changed 2026-07-24 | Public domain |