Acetic acid is the chemical that makes up vinegar. The main reason vinegar is an effective cleaning agent is that it's an acid. And like other acids, it can corrode a wide array of substances, including patina on brass.