What can be the cause of pain in rib cage under right breast?

Check gallbladder. Right upper quadrant pain may be due to gallstones or dysfunctional gallbladder. Labwork and ultrasound may assist in the diagnosis. Sharp , stabbing pain under the breast that radiates from front to back may indicate intercostal neuralgia. Check with your family physician.