@salvador, thank you very much!! took me almost 2 days to figure this out. i was working in a docker container with vscode and remote containers extension when running the cdk synth command. i knew it had something to do with docker in docker (dind) but never found a good solution.
you had the right answer in my case