nday
CVE-2024-56337

Apache Tomcat: RCE due to TOCTOU issue in JSP compilation - CVE-2024-50379 mitigation was incomplete

Apache Software Foundation / Apache Tomcat

Preuve de concept publique parue 696 jours après la divulgation. nday n’a encore aucune trace de correctif ; cela ne veut pas dire qu’il n’en existe pas. Cette vulnérabilité figure dans une seule des 4 sources de PoC : nuclei. Aucune inscription au catalogue KEV de la CISA à ce jour.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

race condition
CWE-367, stated by the CNA apache et NVD, republishing [email protected]
remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from the ADP CISA-ADP
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from the ADP CISA-ADP
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from the ADP CISA-ADP
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from the ADP CISA-ADP
nuclei
nuclei templates CVE-2024-56337
Apache Tomcat
affected products in the CVE record: Apache Software Foundation · Apache TomcatCPE names NVD's analysts give as vulnerable: a:apache:tomcat
web / application server
affected products in the CVE record: Apache Software Foundation · Apache TomcatCPE names NVD's analysts give as vulnerable: a:apache:tomcatthe product type of Apache Tomcat in nday's product registry
étape actuelle
POC
divulgation
délai avant PoC
T+696d
CVSS
9.8 CRITICAL v3.1

Cycle de vie

Axe en UTC ; point = minute exacte, barre large = date seule, creux = inconnue ou déduite.
date inconnue
DISdivulguée
2024-12-20T15:28Z
PATcorrectif
aucune donnée
ANAanalyse
aucune donnée
POCPoC
2026-11-16T01:02Z
ITWexploitée
aucune donnée
KEVKEV
aucune donnée

Résumé

Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in Apache Tomcat.

This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.1, from 10.1.0-M1 through 10.1.33, from 9.0.0.M1 through 9.0.97. 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.

The mitigation for CVE-2024-50379 was incomplete.

Users running Tomcat on a case insensitive file system with the default servlet write enabled (readonly initialisation parameter set to the non-default value of false) may need additional configuration to fully mitigate CVE-2024-50379 depending on which version of Java they are using with Tomcat: - running on Java 8 or Java 11: the system property sun.io.useCanonCaches must be explicitly set to false (it defaults to true) - running on Java 17: the system property sun.io.useCanonCaches, if set, must be set to false (it defaults to false) - running on Java 21 onwards: no further configuration is required (the system property and the problematic cache have been removed)

Tomcat 11.0.3, 10.1.35 and 9.0.99 onwards will include checks that sun.io.useCanonCaches is set appropriately before allowing the default servlet to be write enabled on a case insensitive file system. Tomcat will also set sun.io.useCanonCaches to false by default where it can.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS 3.1 vector from the CVE record, added by the ADP CISA-ADP.

Journal des événements

+DISdivulgation

Fiche CVE publiée par apache. CVSS 9.8, gravité critique.

source cvelist · importé en masse par nday le · brut
{
  "id": 347559,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-56337",
  "occurred_at": "2024-12-20T15:28:54.738Z",
  "observed_at": "2026-11-13T05:38:45.966745Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "adp:CISA-ADP",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "version": "3.1",
      "base_score": 9.8,
      "base_severity": "CRITICAL"
    },
    "ssvc": {
      "timestamp": "2025-08-13T13:28:46.946742Z",
      "automatable": "yes",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2024-12-20T15:28:54.738Z",
    "assigner_short_name": "apache"
  }
}
source non datée ; vu en direct par nday
+POCPoC publique

Nuclei propose le modèle de détection CVE-2024-56337 (« Apache Tomcat - Write-Enabled Default Servlet (TOCTOU RCE Exposure) »). La source n’indique pas la date de publication du modèle.

source nuclei · observé en direct par nday le · brut
{
  "id": 472457,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-56337.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-16T01:02:25.136998Z",
  "is_backfill": false,
  "dedupe_key": "CVE-2024-56337",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-56337.yaml",
    "kind": "detection_template",
    "title": "Apache Tomcat - Write-Enabled Default Servlet (TOCTOU RCE Exposure)",
    "severity": "critical",
    "confidence": "curated",
    "cvss_score": "9.8",
    "template_id": "CVE-2024-56337",
    "template_path": "http/cves/2024/CVE-2024-56337.yaml"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Échanges entre chercheurs

0 chercheur en a parlé ces 7 derniers jours

Publications sur X de chercheurs suivis par nday citant cette CVE, telles que publiées. nday ne les vérifie pas.

nday n’a encore recueilli aucune publication sur X d’un chercheur de sa liste citant cette CVE.

Discussion

0 comments

No comments yet.