Regular JB Weld might work, but you'd need to get the area CLEAN. That might be an issue unless you remove the pan.
Welding them shut could work, but again, you'd need the pan clean, and burning thru the thin metal would be an issue.
If you've got pinholes in the pan from rust, there are probably more ready to show themselves.
A replacement pan would be the best fix.