obererlinsbach is a former municipality in the district gösgen in the canton of solothurn in switzerland. on 1 january 2006 the former municipalities of niedererlinsbach and obererlinsbach became the municipality of erlinsbach.