chafa: NULL Pointer Dereference in function gif_internal_decode_frame at libnsgif.c:599 allows attackers to cause a denial of service (crash) via a crafted input file. in hpjansson/chafa
Reported on
Apr 20th 2022
Steps to reproduce the issue
git clone https://github.com/hpjansson/chafa.git
cd chafa
export CFLAGS="-g -O0" export CXXFLAGS="-g -O0" ./autogen.sh ./configure --disable-shared
make
./tools/chafa/chafa ./poc.gif
gdb --args ./tools/chafa/chafa ./poc.gif
https://github.com/JieyongMa/poc/raw/main/gdb.jpg
Proof of Concept
https://github.com/JieyongMa/poc/raw/main/poc.gif
Impact
chafa: NULL Pointer Dereference in function gif_internal_decode_frame at libnsgif.c:599 allows attackers to cause a denial of service (crash) via a crafted input file.
SECURITY.md
2 years ago
Hi, thanks for reporting this. I've verified the issue and am working on a fix.
@maintainer - are you happy for us to assign and publish a CVE for this?
Feel free :-) I'm happy to have the support in securing Chafa and the platform more generally, with all it entails.