The only free and comprehensive online etymological dictionary of the Spanish language
hambre f. (Noun) "hunger"

10th cent. Old Spanish fambre, earlier famne. The n in famne was tapped by the tongue and became *famre. *b intervenes between *mr via epenthesis to become fambre. From Vulgar Latin *famine 'id.,' from Latin fames 'id.' Of unknown origin. A connection to *dhH- "to disappear" has been proposed, albeit with its own problems. See Walde & Hoffman (1954) for further discussion.

Romance: Western Vulgar Latin: Asturian fame, Portuguese fome, Galician fame, Catalan fam, French faim, Italian fame; Eastern Vulgar Latin: Aromanian foami, Romanian foame; Sardinian fàmene

Words for hunger tended to be borrowed into Indo-European languages or internally innovated. "There is only one word reconstructed in Proto-Indo-European that means 'hunger' (a Hittite-Tocharian isogloss) and even this is problematic in tha a comparison between Hit kāst- 'hunger' and Toch B kest 'hunger' still only yields a PIE *Kos-t-, i.e. we can only say that the word begins with a velar but must be uncertain which velar that is (it could be *ges- for example)." ~ Mallory & Adams, The Oxford Introduction to Proto-Indo-European and the Proto-Indo-European World (2006)