Drinking Black Ooze gives you Ironshank or Glotrot, unless you roll at least 14 on a 1d20+toughness modifier roll. The choice of disease depends on Z coordinate of the ooze (ie. current map depth). Food cooked with it will likewise infect you with Glotrot.
It does not seem to have an effect when you walk on it, or pour it on yourself however.