Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-23915

An issue was discovered in cpp-peglib through v0.1.12. peg::resolve_escape_sequence() in peglib.h has a heap-based buffer over-read.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-23915
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:35 UTC · Revision 1

Source evidence

CVE-2020-23915

core-osv · Original source

Published 21 Apr 2021, 18:15 UTC

An issue was discovered in cpp-peglib through v0.1.12. peg::resolve_escape_sequence() in peglib.h has a heap-based buffer over-read.

osv:CVE-2020-23915
Complete source record
{
  "id": "5e2d0da5c422fa0cd2c7c80756829bb377e9ae6a40c9930ae9fda31492b78d4c",
  "url": "https://osv.dev/vulnerability/CVE-2020-23915",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-23915",
    "summary": "An issue was discovered in cpp-peglib through v0.1.12. peg::resolve_escape_sequence() in peglib.h has a heap-based buffer over-read.",
    "evidence": "osv:CVE-2020-23915",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-23915",
      "aliases": [
        "CVE-2020-23915"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/yhirose/cpp-peglib",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "14305f9f53cde207568f21675a1b9294a3ab28b4"
                },
                {
                  "fixed": "b3b29ce8f3acf3a32733d930105a17d7b0ba347e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cpp-peglib_project:cpp-peglib:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.1.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b3b29ce8f3acf3a32733d930105a17d7b0ba347e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.1.12",
            "v0.1.11",
            "v0.1.10",
            "v0.1.9",
            "v0.1.8",
            "v0.1.7",
            "v0.1.6",
            "v0.1.5",
            "v0.1.4",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-23915.json",
            "vanir_signatures": [
              {
                "id": "CVE-2020-23915-8629b90c",
                "digest": {
                  "length": 335,
                  "function_hash": "73004964111901588551179169896409950747"
                },
                "source": "https://github.com/yhirose/cpp-peglib/commit/b3b29ce8f3acf3a32733d930105a17d7b0ba347e",
                "target": {
                  "file": "peglib.h",
                  "function": "codepoint_length"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-23915-988a499c",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "305731826359281247296869654299113449651",
                    "339036016034052883856440544981514003458",
                    "56011554680543042233893566455295825915",
                    "255636933513162664645131821946322598403",
                    "57542540629536009684787878544379393432",
                    "312831212263277916743638332390265291222",
                    "204655458009423361391753162629023155560",
                    "37513945751004088926040296577665629182"
                  ]
                },
                "source": "https://github.com/yhirose/cpp-peglib/commit/b3b29ce8f3acf3a32733d930105a17d7b0ba347e",
                "target": {
                  "file": "peglib.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:56:03Z"
          }
        }
      ],
      "modified": "2026-10-20T13:56:03.109698166Z",
      "provider": "osv",
      "references": [
        "https://github.com/yhirose/cpp-peglib/issues/122",
        "https://github.com/yhirose/cpp-peglib/commit/b3b29ce8f3acf3a32733d930105a17d7b0ba347e",
        "https://cwe.mitre.org/data/definitions/126.html"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-23915",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388401,
  "published_at": "2021-04-21T18:15:08.27+00:00"
}