Description
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.
References (2)
Core 2
Core References
Exploit, Third Party Advisory x_refsource_misc
https://github.com/yhirose/cpp-peglib/issues/121
Patch, Third Party Advisory x_refsource_misc
https://github.com/yhirose/cpp-peglib/commit/0061f393de54cf0326621c079dc2988336d1ebb3
Scores
CVSS v3
5.5
EPSS
0.0016
EPSS Percentile
37.1%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Details
CWE
CWE-476
Status
published
Products (1)
cpp-peglib_project/cpp-peglib
< 0.1.12
Published
Apr 21, 2021
Tracked Since
Feb 18, 2026