Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-14227

In MongoDB libbson 1.7.0, the bson_iter_codewscope function in bson-iter.c miscalculates a bson_utf8_validate length argument, which allows remote attackers to cause a denial of service (heap-based buffer over-read in the bson_utf8_validate function in bson-utf8.c), as demonstrated by bson-to-json.c.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-14227
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:54 UTC · Revision 1

Source evidence

CVE-2017-14227

core-osv · Original source

Published 9 Sept 2017, 08:29 UTC

In MongoDB libbson 1.7.0, the bson_iter_codewscope function in bson-iter.c miscalculates a bson_utf8_validate length argument, which allows remote attackers to cause a denial of service (heap-based buffer over-read in the bson_utf8_validate function in bson-utf8.c), as demonstrated by bson-to-json.c.

osv:CVE-2017-14227
Complete source record
{
  "id": "0be2e785f5bcf73d780845ac75fab5e65099fb0c864772cb6780728a6ea74624",
  "url": "https://osv.dev/vulnerability/CVE-2017-14227",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-14227",
    "summary": "In MongoDB libbson 1.7.0, the bson_iter_codewscope function in bson-iter.c miscalculates a bson_utf8_validate length argument, which allows remote attackers to cause a denial of service (heap-based buffer over-read in the bson_utf8_validate function in bson-utf8.c), as demonstrated by bson-to-json.c.",
    "evidence": "osv:CVE-2017-14227",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-14227",
      "aliases": [
        "CVE-2017-14227"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mongodb-js/vscode",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3acde059a9b744c6fa551344dff826bc2ffa7c39"
                },
                {
                  "last_affected": "3acde059a9b744c6fa551344dff826bc2ffa7c39"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongodb:1.7.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.0"
                      },
                      {
                        "last_affected": "1.7.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.7.0",
            "v1.7.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14227.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/mongodb/mongo",
              "type": "GIT",
              "events": [
                {
                  "introduced": "02013802f63d6cbe41bf814b2bc30d82e436d48f"
                },
                {
                  "last_affected": "02013802f63d6cbe41bf814b2bc30d82e436d48f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mongodb:mongodb:1.7.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.0"
                      },
                      {
                        "last_affected": "1.7.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.7.0",
            "r1.7.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14227.json"
          }
        }
      ],
      "modified": "2026-10-24T10:31:00.025974598Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1489355",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1489356",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1489362"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-14227",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 439448,
  "published_at": "2017-09-09T08:29:00.287+00:00"
}