I'm a US speaker. They are close synonyms. To me, a cupboard is a _kind_ of cabinet. A cupboard is usually found in a kitchen or a dining room, and usually contains--as the word suggests--cups, or plates, spoons, knives... or food. Cupboards can be called cabinets.
In our dining room we have a piece of wooden freestanding furniture with glass doors, shelves, and drawers, and we call it a "cabinet." We could also call it a "cupboard," but we don't.
In contrast, in my office there is a piece of metal furniture with file folders hanging in it, and it is a "file cabinet." Nobody would call it a "file cupboard."
You probably know that "cupboard" is pronounced "cubbard." A famous nursery rhyme tells us
Old Mother Hubbard
Went to the cupboard
To get her poor dog a bone;
But when she got there
The cupboard was bare
And so the poor dog had none.
This rhyme illustrates both the pronunciation of "cupboard" and its use to store food. (However, in present-day English, "none" does not rhyme with "bone.")