readsb before 3.16.8 contains an out-of-bounds read vulnerability in apiReadRequest() in api.c that, when searching newly received request data for a newline, passes the total buffered request length to memchr() instead of the length of the new data. Remote unauthenticated attackers who can reach the HTTP API port enabled with --net-api-port can send a request in several chunks without a newline to make readsb read past the end of the heap request buffer, potentially crashing the process.
readsb 3.14.1607 before 3.16.8 contains a heap-based buffer overflow vulnerability in readFspec() in netio.c that copies ASTERIX FSPEC and variable-length item bytes into a fixed-size heap buffer for as long as each byte has its extension (FX) bit set, without a length limit or a check against the end of the received data. Remote unauthenticated attackers who can send data to an ASTERIX input, enabled with --net-asterix-in-port or an asterixin net-connector, can send a record with a long FX chain to write attacker-controlled bytes past the end of the buffer, crashing readsb or corrupting heap memory.
readsb 3.14.1607 before 3.16.8 contains an improper length validation vulnerability in readAsterix() in netio.c that trusts the length field of each ASTERIX data block without checking that it covers at least the 3-byte block header or that the block fits within the received data. Remote unauthenticated attackers who can send data to an ASTERIX input, enabled with --net-asterix-in-port or an asterixin net-connector, can send a block with a length of zero to make readsb loop forever on the same input, causing a denial of service, or a length larger than the received data to make it decode bytes past the end of the received data.
readsb before 3.16.8 contains a NULL pointer dereference vulnerability in readProxy() in netio.c that searches a PROXY protocol v1 header for three successive spaces with memchr() without checking whether each search found one. Remote unauthenticated attackers who can connect to a network input of a readsb instance that parses PROXY headers, enabled with --net-ingest or, since 3.14.1646, --devel=readProxy, can send a PROXY line with fewer than three spaces to crash the process.