According to Merriam-Webster's usage note "Is it 'Hung' or 'Hanged'?" eithr may be used and is correct:
A stripped-down version of why we have these two different words is that the word hang came from two different verbs in Old English (and possibly also one from Old Norse). One of these Old English verbs was what we might think of as a regular verb, and this gave rise to hanged; the other was irregular, and ended up becoming hung.
Hanged and hung were used interchangeably for hundreds of years, although over time the one from the irregular verb (hung) eventually became the more common one. Hanged retained its position when used to refer to death by hanging, possibly due to being favored by judges who were passing a sentence. However, both forms are commonly found, and both are commonly found used in either sense.
Is the distinction important? It's still commonly found in usage guides, which typically say that the past and the past participle of hang should be hanged only when referring to a person being subjected to death. Hung is preferred, at least by people who make a distinction, in almost every circumstance. However, not everyone makes this distinction. The Merriam-Webster Dictionary of English Usage has a take on this that differs slightly from the one commonly found in usage guides:
The distinction between hanged and hung is not an especially useful one (although a few commentators claim otherwise). It is, however, a simple one and certainly easy to remember. Therein lies its popularity. If you make a point of observing the distinction in your writing, you will not thereby become a better writer, but you will spare yourself the annoyance of being corrected for having done something that is not wrong.