Skip to content
Heist/ feed
Back to feed
Critical

mongoose — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-73251

Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impersonate a TLS server to a Mongoose client configured with a multi-certificate CA bundle. In src/tls_builtin.c, the mg_tls_init() function stores the bundle in tls->ca_bundle_der while tls->ca_der.len remains zero, and mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without calling mg_tls_verify_cert_signature(). A forged self-signed certificate can therefore satisfy hostname and CertificateVerify checks and enable interception, credential disclosure, traffic modification, and malicious responses. This issue is fixed in version 7.23.

Products
mongoose
Affected versions
7.21+ds-1, 7.21+ds-2, 7.22+ds-1, 7.23+ds-1
Fixed versions
Not specified
CVEs
CVE-2026-73251
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:15 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-73251

core-osv · Original source

Published 20 Aug 2026, 18:16 UTC

Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impersonate a TLS server to a Mongoose client configured with a multi-certificate CA bundle. In src/tls_builtin.c, the mg_tls_init() function stores the bundle in tls->ca_bundle_der while tls->ca_der.len remains zero, and mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without calling mg_tls_verify_cert_signature(). A forged self-signed certificate can therefore satisfy hostname and CertificateVerify checks and enable interception, credential disclosure, traffic modification, and malicious responses. This issue is fixed in version 7.23.

osv:UBUNTU-CVE-2026-73251

mongoose

Fixed versions: Not specified

Complete source record
{
  "id": "2c50e2eb125dfc86c1923db9b9e9eacc3733795b5f03109e5d04dbfb0fe7cf51",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-73251",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-73251",
    "summary": "Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impersonate a TLS server to a Mongoose client configured with a multi-certificate CA bundle. In src/tls_builtin.c, the mg_tls_init() function stores the bundle in tls->ca_bundle_der while tls->ca_der.len remains zero, and mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without calling mg_tls_verify_cert_signature(). A forged self-signed certificate can therefore satisfy hostname and CertificateVerify checks and enable interception, credential disclosure, traffic modification, and malicious responses. This issue is fixed in version 7.23.",
    "evidence": "osv:UBUNTU-CVE-2026-73251",
    "products": [
      {
        "name": {
          "value": "mongoose",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.21+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.21+ds-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.22+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.23+ds-1",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2026-73251",
      "aliases": [
        "UBUNTU-CVE-2026-73251"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongoose",
            "purl": "pkg:deb/ubuntu/mongoose?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "7.21+ds-1",
            "7.21+ds-2",
            "7.22+ds-1",
            "7.23+ds-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-73251.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mongoose-webserver-source",
                "binary_version": "7.23+ds-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:01.830622416Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-73251"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-73251",
        "https://www.cve.org/CVERecord?id=CVE-2026-73251"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-73251",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360893,
  "published_at": "2026-08-20T18:16:00+00:00"
}