hjson-py icon indicating copy to clipboard operation
hjson-py copied to clipboard

hjson-py stack exhaustion vulnerability

Open scacaca opened this issue 9 months ago • 0 comments

Summary

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

Description

An issue was discovered in the latest hjson-py 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-py has not similar fix logic. The relevent code in file1 eg. parse_object ,parse_array,parse_string ,scan_object_once

Patch

there is a similar fix logic Limit parse depth.

Thanks

Thanks to YangChao Liu ([email protected])

scacaca avatar Mar 16 '25 09:03 scacaca