Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-20354

An invalid read of 8 bytes due to a use-after-free vulnerability during a "return" in the mg_http_get_proto_data function in mongoose.c in Cesanta Mongoose Embedded Web Server Library 6.13 and earlier allows a denial of service (application crash) or remote code execution.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-20354
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:47 UTC · Revision 1

Source evidence

CVE-2018-20354

core-osv · Original source

Published 10 Jun 2019, 17:29 UTC

An invalid read of 8 bytes due to a use-after-free vulnerability during a "return" in the mg_http_get_proto_data function in mongoose.c in Cesanta Mongoose Embedded Web Server Library 6.13 and earlier allows a denial of service (application crash) or remote code execution.

osv:CVE-2018-20354
Complete source record
{
  "id": "6ae354f98ae9af52b62e5e4a26a37e00b3a2265b59cad8ace32a5c059221929c",
  "url": "https://osv.dev/vulnerability/CVE-2018-20354",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-20354",
    "summary": "An invalid read of 8 bytes due to a use-after-free vulnerability during a \"return\" in the mg_http_get_proto_data function in mongoose.c in Cesanta Mongoose Embedded Web Server Library 6.13 and earlier allows a denial of service (application crash) or remote code execution.",
    "evidence": "osv:CVE-2018-20354",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2018-20354",
      "aliases": [
        "CVE-2018-20354"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cesanta/mongoose",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "95afa323c0e7740151f661629616daebe2915b61"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "6.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "6.13",
            "6.12",
            "6.11",
            "6.10",
            "6.9",
            "6.7",
            "6.6",
            "6.5",
            "6.4",
            "6.3",
            "6.2",
            "6.1",
            "6.0",
            "5.6",
            "5.5_20140120",
            "5.5",
            "5.4",
            "5.3",
            "5.2",
            "5.1",
            "5.0",
            "4.1",
            "4.0",
            "3.8",
            "3.7",
            "3.6",
            "3.5",
            "3.4",
            "3.3",
            "3.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20354.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:33.250811480Z",
      "provider": "osv",
      "references": [
        "https://github.com/insi2304/mongoose-6.13-fuzz/blob/master/Simplest_Web_Server_Use_After_Free-read-mg_http_get_proto_data.png"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-20354",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 433216,
  "published_at": "2019-06-10T17:29:02.093+00:00"
}