It does look questionable. I would normally prefer to have at least a couple of inches.
A lot does depend on the yeast and also the fermentation temps. You might be OK, but I would put a tin roasting pan under the bucket to catch any potential overflow.