Depending on how it was stored it could last up to 20-25 yrs assuming there are O2 absorbers in ther and it was air tight. If not the flour is most likely rancid. Pasta is already dehydrated so it can last a good amount of time outside a airtight container.
Personally I would be worried about what they did to it. I would throw it away and start fresh with my own stock....but thats just me.