KeyDB
KeyDB copied to clipboard
Fix issue of listen before chmod on Unix sockets (CVE-2023-45145)
Description
This PR fixes a potential vulnerability in anetListen() in src/anet.c that was cloned from redid but did not receive the security patch. The original issue was reported and fixed under https://github.com/redis/redis/commit/03345ddc7faf7af079485f2cbe5d17a1611cbce1.
This PR applies the same patch to eliminate the vulnerability.
References https://nvd.nist.gov/vuln/detail/CVE-2023-45145 https://github.com/redis/redis/commit/03345ddc7faf7af079485f2cbe5d17a1611cbce1