Medium
Security advisory
An issue was discovered in cpp-peglib through v0.1.12. A NULL pointer dereference exists in the peg::AstOptimizer::optimize() located in peglib.h. It allows an attacker to cause Denial of Service.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-23914
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:15 UTC · Revision 1
Source evidence
An issue was discovered in cpp-peglib through v0.1.12. A NULL pointer dereference exists in the peg::AstOptimizer::optimize() located in peglib.h. It allows an attacker to cause Denial of Service.
osv:CVE-2020-23914
Complete source record
{
"id": "bc3cb16e54c540ec9d0e8cdd987d55c65eeb16180eff42a4d0818722f43a7fb6",
"url": "https://osv.dev/vulnerability/CVE-2020-23914",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-23914",
"summary": "An issue was discovered in cpp-peglib through v0.1.12. A NULL pointer dereference exists in the peg::AstOptimizer::optimize() located in peglib.h. It allows an attacker to cause Denial of Service.",
"evidence": "osv:CVE-2020-23914",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-23914",
"aliases": [
"CVE-2020-23914"
],
"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": "0061f393de54cf0326621c079dc2988336d1ebb3"
}
],
"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": "0061f393de54cf0326621c079dc2988336d1ebb3"
}
],
"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-23914.json",
"vanir_signatures": [
{
"id": "CVE-2020-23914-69176862",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143327657411845853706364732432047714027",
"334920685749213769228073951731449746527",
"12291384508830736500925591445046188984",
"183003434346659421475079663696476586312",
"138597885167665837198154317017487449694",
"162740308102681216509902116999422262881",
"141486962610510453940099920915013980409",
"227739702468128197815300046015901413046",
"39693275491623016054556102765444652823",
"210855172614649982907027233225598125993",
"253555357260913864384411709209377704997"
]
},
"source": "https://github.com/yhirose/cpp-peglib/commit/0061f393de54cf0326621c079dc2988336d1ebb3",
"target": {
"file": "peglib.h"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:24:42Z"
}
}
],
"modified": "2026-10-20T13:24:42.417627012Z",
"provider": "osv",
"references": [
"https://github.com/yhirose/cpp-peglib/commit/0061f393de54cf0326621c079dc2988336d1ebb3",
"https://github.com/yhirose/cpp-peglib/issues/121"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-23914",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387644,
"published_at": "2021-04-21T18:15:08.237+00:00"
}