Skip to content
Heist/ feed
Back to feed
Medium

Elasticsearch StackOverflow vulnerability

Type: advisorySources: OSV

A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause a Stack Overflow and ultimately a Denial of Service.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-31419
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:27 UTC · Revision 1

Source evidence

Elasticsearch StackOverflow vulnerability

core-osv · Original source

Published 26 Oct 2023, 17:06 UTC

A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause a Stack Overflow and ultimately a Denial of Service.

osv:CVE-2023-31419
Complete source record
{
  "id": "d99f2d6b4b1a09463b8490a23902e012fafff0e93d86dc7eb7e5f65a0981d805",
  "url": "https://osv.dev/vulnerability/CVE-2023-31419",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Elasticsearch StackOverflow vulnerability",
    "summary": "A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause a Stack Overflow and ultimately a Denial of Service.",
    "evidence": "osv:CVE-2023-31419",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-31419",
      "aliases": [
        "BIT-elasticsearch-2023-31419",
        "CVE-2023-31419",
        "GHSA-qwrx-45xf-jjf7"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/elastic/elasticsearch",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b7e28a7232616c7a21bc879a535d801b8553ba77"
                },
                {
                  "last_affected": "e3b0c3d3c5c130e1dc6d567d6baef1c73eeb2059"
                },
                {
                  "introduced": "1b6a7ece17463df5ff54a3e1302d825889aa1161"
                },
                {
                  "last_affected": "8aa461beb06aa0417a231c345a1b8c38fb498a0d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "last_affected": "7.17.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "last_affected": "8.9.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-31419.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.815886189Z",
      "provider": "osv",
      "references": [
        "https://discuss.elastic.co/t/elasticsearch-8-9-1-7-17-13-security-update/343297",
        "https://www.elastic.co/community/security",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31419.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-31419",
        "https://security.netapp.com/advisory/ntap-20231116-0010/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-121"
        ],
        "cna_assigner": "elastic",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "fixed": "7.17.12"
                  },
                  {
                    "introduced": "8.0.0"
                  },
                  {
                    "fixed": "8.9.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31419.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-31419",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 501134,
  "published_at": "2023-10-26T17:06:14.305+00:00"
}