Skip to content

hjson-cpp stack exhaustion vulnerability #52

@scacaca

Description

@scacaca

Summary

A DOS vulnerability in hjson-cpp caused by crafted objects that deeply nested structures.

Description

An issue was discovered in the latest hjson-cpp allows attackers to cause a denial of service or other unspecified impacts via crafted objects that deeply nested structures.
there is a similar vulnerable,but hjson-cpp has not similar fix logic.
The relevent code in file1
eg. static Value _readValue(Parser *p),static Value _readObject(Parser *p),static Value _readArray(Parser *p)

Patch

there is a similar fix logic
Limit parse depth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions