The defeat left Brazil struggling to digest their worst performance in the Copa America since 1987, the last occasion the five-time world champions failed to make it past the group stage.
Brazil, needing only a draw to qualify for the quarter-finals as winners of Group B, looked to be on course for a place in the last eight with 15 minutes to go against Peru.
But a rare foray into Brazilian territory from Peru ended with Raul Ruidiaz bundling in Andy Polo's cross from the byline, appearing to use his arm to score.
Brazil's players protested furiously, swarming around Cunha in a bid to persuade the official to reverse his decision.
The protests appeared to have swayed Cunha, who looked to be frantically checking with the fourth official via his headpiece to determine whether the goal should stand.
Yet after a chaotic delay of around four minutes -- with players from both sides surrounding the referee -- Cunha ruled the goal should stand.
Multiple replays from different angles however showed that Ruidiaz had used his arm to knock the ball into the net past Brazil keeper Alisson.
Elias squandered a golden chance from close range in injury time and Brazil's fate was sealed.
Peru will now play Colombia in the quarter-finals after finishing top of Group B.
Despite the controversial nature of the result, Brazil coach Dunga is likely to come under renewed pressure after what was a lacklustre tournament.
The Brazilians, desperate to begin the road to recovery after their humiliating 7-1 defeat by Germany in the World Cup semi-finals two years ago, never convinced at any point of the group stage.
Another drab display against Peru followed on Sunday, with Dunga's side barely getting a shot on goal in the first-half with the exception of a shot by Gabriel in the 26th minute that was tipped away by Peru goalkeeper Pedro Gallese.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
