Character walks on the side of rotated object

On rotated objects, the character controller detects collision. The rotated object is using a mesh collider and trying a box collider didn’t seem to change the issue. I also tried an object with a capsule collider and gravity, and it didn’t detect collision on the side of the wall. This makes me believe it’s the character controller incorrectly detecting a collision. Is there any way to fix this?