# CVE-2024-50379: Apache Tomcat: RCE due to TOCTOU issue in JSP compilation

Status: published. Published: 2024-12-17. Updated: 2026-11-03.

Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability during JSP compilation in Apache Tomcat permits an RCE on case insensitive file systems when the default servlet is enabled for write (non-default configuration).

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.

Users are recommended to upgrade to version 11.0.2, 10.1.34 or 9.0.98, which fixes the issue.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Apache Software Foundation / Apache Tomcat: ≥ 11.0.0-M1; ≤ 11.0.1 (affected, semver); ≥ 10.1.0-M1; ≤ 10.1.33 (affected, semver); ≥ 9.0.0.M1; ≤ 9.0.97 (affected, semver); ≥ 8.5.0; ≤ 8.5.100 (affected, semver); ≥ 3; < 8.5.0 (unknown, semver); ≥ 10.0.0-M1; ≤ 10.0.27 (unknown, semver). Source: CNA: apache

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "9.0.98",
            "versionStartIncluding": "9.0.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "10.1.34",
            "versionStartIncluding": "10.1.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "11.0.2",
            "versionStartIncluding": "11.0.0",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:netapp:bootstrap_os:-:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      },
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:h:netapp:hci_compute_node:-:*:*:*:*:*:*:*",
            "vulnerable": false
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "AND"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 9.8 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; source: ADP: CISA-ADP

- CVSS 3.1: 9.8 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; source: NVD: 134c704f-9b21-4f2e-91b3-4a467353bcc0

- CISA KEV: No listing in collected sources

- EPSS: 31.82% as of 2026-11-03; percentile 98.30%

- SSVC: exploitation poc; automatable yes; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-367

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://lists.apache.org/thread/y6lj6q1xnp822g6ro70tn19sgtjmr80r (CNA: apache; vendor-advisory)

- http://www.openwall.com/lists/oss-security/2024/12/17/4 (ADP: CVE)

- http://www.openwall.com/lists/oss-security/2024/12/18/2 (ADP: CVE)

- https://security.netapp.com/advisory/ntap-20250103-0003/ (ADP: CVE)

- https://lists.debian.org/debian-lts-announce/2025/01/msg00009.html (ADP: CVE)

- https://lists.apache.org/thread/y6lj6q1xnp822g6ro70tn19sgtjmr80r (security@apache.org; Mailing List, Vendor Advisory)

- http://www.openwall.com/lists/oss-security/2024/12/17/4 (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

- http://www.openwall.com/lists/oss-security/2024/12/18/2 (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

- https://lists.debian.org/debian-lts-announce/2025/01/msg00009.html (af854a3a-2127-422b-91ae-364da2661108)

- https://security.netapp.com/advisory/ntap-20250103-0003/ (af854a3a-2127-422b-91ae-364da2661108; Third Party Advisory)

## Provenance

- CNA: apache: https://www.cve.org/CVERecord?id=CVE-2024-50379; retrieved 2026-11-03; source updated 2026-11-03

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-50379; retrieved 2026-11-04; source updated 2026-11-03

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2024-50379; retrieved 2026-11-03; source updated Not reported

Revision: 6494a470f1f49cf8ba68b8e41e9a57eaf1d131ba4569db32058594863d2708ff

Canonical: https://y2.dev/cve/CVE-2024-50379

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.