The number of attachments are tracked in a database field in every module. The calendar module didn't correctly account for concurrent access to this field, therefore the number of attachments was tracked incorrectly. The UpdateTask com.openexchange.groupware.update.tasks.CorrectAtt achmentCountInAppointments fixes the table.