Intel

AIKIDO-2024-10297

github.com/Go-resty/resty/v2 is vulnerable to NULL Pointer Dereference

NULL Pointer Dereference Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 27, 2024

25

Low Risk

This Affects:

gogithub.com/Go-resty/resty/v2
2.15.0 - 2.15.2
Fixed in 2.15.3
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to null pointer dereference. When request and response logging is activated and the execute function is used, a nil reference dereference occurs if there is a bad connection, potentially leading to a crash or unexpected behavior.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/Go-resty/resty/v2 is vulnerable to NULL Pointer Dereference in versions 2.15.0 - 2.15.2.

How to fix this

Upgrade the github.com/Go-resty/resty/v2 library to the patch version.