What is the vague pain under the right rib cage at night?

There are three possible reasons for the vague pain under the right rib cage at night: 1. First of all, it is suspected that there is an attack of cholecystitis because the right side of the liver and gallbladder are under the rib cage. The painful attacks of cholecystitis are often painful at night after overeating.2. If there is a problem with the liver, sudden inflammation or liver abscess or liver tumor, it can cause vague pain under the right ribs.3. Pain caused by right-sided costochondritis, which is painful when pressed and not painful when not moving.4. It can also be intercostal neuralgia, which is caused by shingles.Above this this is the main reason for pain under the ribs.