Can you successful cut EVA foam on a CNC machine? That’s the question they wanted to answer at Carbide 3D. The answer is, yes, yes you can.
There are a few issues to consider, like how to clamp your workpiece to the table (use not-too-aggressive double-sided tape) and what end mill to use (you can get away with a standard mill, but one specialized for use on plastic and foam works best).
It’s also recommended that you use a shop vac during cutting as cut strings of the foam tend to wrap around the mill. And use conventional cutting, not climb cutting.
With these few considerations, you can achieve a reasonable fit and finish to EVA foam cut on a router.
source