The Forester has an RS motor, so I'll go out on a limb and guess that it's P0420 Cat Inefficiency.

The other likely possibility on a non-modded EJ25 is that your plugs and/or wires are aging or incorrectly gapped/installed and you're getting minor misfiring.