1. Archivio CVE
  2. 2025
  3. CVE-2025-24813

CVE-2025-24813

9.8 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critica

Descrizione

Path Equivalence: 'file.Name' (Internal Dot) leading to Remote Code Execution and/or Information disclosure and/or malicious content added to uploaded files via write enabled Default Servlet in Apache Tomcat. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.2, from 10.1.0-M1 through 10.1.34, from 9.0.0.M1 through 9.0.98. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. If all of the following were true, a malicious user was able to view security sensitive files and/or inject content into those files: - writes enabled for the default servlet (disabled by default) - support for partial PUT (enabled by default) - a target URL for security sensitive uploads that was a sub-directory of a target URL for public uploads - attacker knowledge of the names of security sensitive files being uploaded - the security sensitive files also being uploaded via partial PUT If all of the following were true, a malicious user was able to perform remote code execution: - writes enabled for the default servlet (disabled by default) - support for partial PUT (enabled by default) - application was using Tomcat's file based session persistence with the default storage location - application included a library that may be leveraged in a deserialization attack Users are recommended to upgrade to version 11.0.3, 10.1.35 or 9.0.99, which fixes the issue.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
apache tomcat < 9.0.99 –
apache tomcat >= 10.1.1 < 10.1.35 –
apache tomcat >= 11.0.1 < 11.0.3 –
apache tomcat 10.1.0 milestone1 –
apache tomcat 10.1.0 milestone10 –
apache tomcat 10.1.0 milestone11 –
apache tomcat 10.1.0 milestone12 –
apache tomcat 10.1.0 milestone13 –
apache tomcat 10.1.0 milestone14 –
apache tomcat 10.1.0 milestone15 –
apache tomcat 10.1.0 milestone16 –
apache tomcat 10.1.0 milestone17 –
apache tomcat 10.1.0 milestone18 –
apache tomcat 10.1.0 milestone19 –
apache tomcat 10.1.0 milestone2 –
apache tomcat 10.1.0 milestone20 –
apache tomcat 10.1.0 milestone3 –
apache tomcat 10.1.0 milestone4 –
apache tomcat 10.1.0 milestone5 –
apache tomcat 10.1.0 milestone6 –
apache tomcat 10.1.0 milestone7 –
apache tomcat 10.1.0 milestone8 –
apache tomcat 10.1.0 milestone9 –
apache tomcat 11.0.0 milestone1 –
apache tomcat 11.0.0 milestone10 –
apache tomcat 11.0.0 milestone11 –
apache tomcat 11.0.0 milestone12 –
apache tomcat 11.0.0 milestone13 –
apache tomcat 11.0.0 milestone14 –
apache tomcat 11.0.0 milestone15 –
apache tomcat 11.0.0 milestone16 –
apache tomcat 11.0.0 milestone17 –
apache tomcat 11.0.0 milestone18 –
apache tomcat 11.0.0 milestone19 –
apache tomcat 11.0.0 milestone2 –
apache tomcat 11.0.0 milestone20 –
apache tomcat 11.0.0 milestone21 –
apache tomcat 11.0.0 milestone22 –
apache tomcat 11.0.0 milestone23 –
apache tomcat 11.0.0 milestone24 –
apache tomcat 11.0.0 milestone25 –
apache tomcat 11.0.0 milestone3 –
apache tomcat 11.0.0 milestone4 –
apache tomcat 11.0.0 milestone5 –
apache tomcat 11.0.0 milestone6 –
apache tomcat 11.0.0 milestone7 –
apache tomcat 11.0.0 milestone8 –
apache tomcat 11.0.0 milestone9 –
debian debian linux 11.0 –
netapp bootstrap os tutte –
Tutte le 274 vulnerabilità di Apache Tomcat

Tipo di vulnerabilità

CWE-502 Deserializzazione di dati non attendibili

Il prodotto deserializza dati di provenienza non attendibile senza verificare a sufficienza che il risultato sia valido; spesso questo permette di eseguire codice.

Impatto sui sistemi

AmbitoImpatto
Integrità Modificare i dati dell’applicazione, Stato imprevisto
Disponibilità Interruzione del servizio: esaurimento della CPU
Altro Dipende dal contesto

Come si previene

Architettura e progettazione · Sviluppo If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
Sviluppo When deserializing data, populate a new object rather than just deserializing. The result is that the data flows through safe input validation and that the functions are safe.
Sviluppo Explicitly define a final object() to prevent deserialization.
Architettura e progettazione · Sviluppo Make fields transient to protect them from deserialization. An attempt to serialize and then deserialize a class containing transient fields will result in NULLs where the transient data should be. This is an excellent way to prevent time, environment-based, or sensitive variables from being carried over and used improperly.
Sviluppo Avoid having unnecessary types or gadgets (a sequence of instances and method invocations that can self-execute during the deserialization process, often found in libraries) available that can be leveraged for malicious ends. This limits the potential for unintended or unauthorized types and gadgets to be leveraged by the attacker. Add only acceptable classes to an allowlist. Note: new gadgets are constantly being discovered, so this alone is not a sufficient mitigation.
Architettura e progettazione · Sviluppo Employ cryptography of the data or code for protection. However, it's important to note that it would still be client-side security. This is risky because if the client is compromised then the security implemented on the client (the cryptography) can be bypassed.
Esercizio · Firewall Usa un firewall applicativo (WAF) in grado di rilevare attacchi contro questo tipo di vulnerabilità. È utile quando il codice non può essere corretto (perché controllato da terzi), come misura d’emergenza in attesa di interventi più completi, o come difesa aggiuntiva.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 3.533 CVE di tipo CWE-502, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org