It is fixed by upstream: https://git.lysator.liu.se/nettle/nettle/commit/abf3870cba401bc797676cdee84fea0091a2a581