CVE-2025-61785
Beschrijving NL
Deno is een runtime voor JavaScript, TypeScript en WebAssembly. In versies vóór 2.5.3 en 2.2.15 worden `Deno.FsFile.prototype.utime` en `Deno.FsFile.prototype.utimeSync` niet beperkt door de controle van het rechtenmodel `--deny-write=./`. Het is mogelijk om de toegangs- (`atime`) en wijzigingstijden (`mtime`) van de bestandsstroombron te wijzigen, zelfs wanneer het bestand is geopend met alleen-lezen (`read`) rechten (en `write`: `false`) en schrijfbewerkingen op het bestand niet zijn toegestaan (het script wordt uitgevoerd met `--deny-write=./`). Vergelijkbare API's zoals `Deno.utime` en `Deno.utimeSync` vereisen de `allow-write`-toestemming. Wanneer een bestand echter wordt geopend, zelfs met alleen-lezen-vlaggen en de `deny-write`-toestemming, is het nog steeds mogelijk om de toegangs- (`atime`) en wijzigingstijden (`mtime`) te wijzigen en zo het toestemmingsmodel te omzeilen. Versies 2.5.3 en 2.2.15 lossen het probleem op.
Origineel (Engels) tonen
Deno is a JavaScript, TypeScript, and WebAssembly runtime. In versions prior to 2.5.3 and 2.2.15, `Deno.FsFile.prototype.utime` and `Deno.FsFile.prototype.utimeSync` are not limited by the permission model check `--deny-write=./`. It's possible to change to change the access (`atime`) and modification (`mtime`) times on the file stream resource even when the file is opened with `read` only permission (and `write`: `false`) and file write operations are not allowed (the script is executed with `--deny-write=./`). Similar APIs like `Deno.utime` and `Deno.utimeSync` require `allow-write` permission, however, when a file is opened, even with read only flags and deny-write permission, it's still possible to change the access (`atime`) and modification (`mtime`) times, and thus bypass the permission model. Versions 2.5.3 and 2.2.15 fix the issue.