Either the tank valve has had water in it, and/or the dust cap is wet when fitted, and/or it has been socked and the dust cap was not sealing, and/or it has been dropped in the water without the dust cap on.
Given the state of the filter I agree with @TBone. you need a rebuild. But you also need to understand what/how it is contaminated so that you can avoid the issue in the future. 6 months and 25 dives is not a good service life.
Given the state of the filter I agree with @TBone. you need a rebuild. But you also need to understand what/how it is contaminated so that you can avoid the issue in the future. 6 months and 25 dives is not a good service life.