Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2023-24021

Incorrect handling of '\0' bytes in file uploads in ModSecurity before 2.9.7 may allow for Web Application Firewall bypasses and buffer over-reads on the Web Application Firewall when executing rules that read the FILES_TMP_CONTENT collection.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-24021
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 01:12 UTC · Revision 1

Source evidence

CVE-2023-24021

core-osv · Original source

Published 20 Jan 2023, 00:00 UTC

Incorrect handling of '\0' bytes in file uploads in ModSecurity before 2.9.7 may allow for Web Application Firewall bypasses and buffer over-reads on the Web Application Firewall when executing rules that read the FILES_TMP_CONTENT collection.

osv:CVE-2023-24021
Complete source record
{
  "id": "d915ce19387cc0f34c497cc15d6d57a0afb90d6323ac1876daf83b28fd0b0bb4",
  "url": "https://osv.dev/vulnerability/CVE-2023-24021",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2023-24021",
    "summary": "Incorrect handling of '\\0' bytes in file uploads in ModSecurity before 2.9.7 may allow for Web Application Firewall bypasses and buffer over-reads on the Web Application Firewall when executing rules that read the FILES_TMP_CONTENT collection.",
    "evidence": "osv:CVE-2023-24021",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-24021",
      "aliases": [
        "BIT-modsecurity-2023-24021",
        "BIT-modsecurity2-2023-24021",
        "CVE-2023-24021"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/owasp-modsecurity/ModSecurity",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "053965529cb6993fbeb931e6760097e66936fd81"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.9.7"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "053965529cb6993fbeb931e6760097e66936fd81"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.9.7"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.9.6",
            "v2.9.5",
            "v2.9.4",
            "v2.9.3",
            "v2.9.2",
            "v2.9.1",
            "v2.9.1-rc1",
            "v2.9.0",
            "v2.9.0-rc2",
            "v2.9.0-rc1",
            "v2.7.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-24021.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.344880474Z",
      "provider": "osv",
      "references": [
        "https://github.com/SpiderLabs/ModSecurity/pull/2857/commits/4324f0ac59f8225aa44bc5034df60dbeccd1d334",
        "https://github.com/SpiderLabs/ModSecurity/releases/tag/v2.9.7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/24xxx/CVE-2023-24021.json",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/52TGCZCOHYBDCVWJYNN2PS4QLOHCXWTQ/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYRTXTOQQI6SB2TLI5QXU76DURSLS4XI/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WCH6JM4I4MD4YABYFHSBDDOUFDGIFJKL/",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-24021",
        "https://github.com/SpiderLabs/ModSecurity/pull/2857",
        "https://lists.debian.org/debian-lts-announce/2023/01/msg00023.html"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/24xxx/CVE-2023-24021.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-24021",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508946,
  "published_at": "2023-01-20T00:00:00+00:00"
}