A last-gasp own goal was enough for Brazil to beat gallant Bosnia-Herzegovina 2-1 in an international friendly in the five-time world champions' first match this year.

The 2014 FIFA World Cup™ hosts took a fourth-minute lead when Marcelo burst forward to latch onto Dani Alves' pass, the Real Madrid back then finishing off the move in style, drilling the ball low into the far corner of Asmir Begovic's goal.

Bosnia, though, were back level nine minutes later. Brazil were largely at fault when Chelsea defender David Luiz gave the ball away, and striker Vedad Ibisevic seized his chance with Brazil goalkeeper Julio Cesar unable to stop his weak effort.

Begovic, who plays his club football in England with Stoke City, was instrumental in preventing the South American giants reclaiming their advantage in the 17th minute when he saved Leandro Damiao's attempt, with Bosnia defender Emir Spahic clearing the loose ball away to safety.

Despite enjoying much of the possession in an open-sided first half Brazil, with Ronaldinho and Neymar in their ranks but no Kaka, went into the break on level terms against the team that only just missed out on qualifying for the UEFA EURO 2012.

Brazil's attack was missing its first-half potency after the interval, with coach Mano Menezes replacing veteran Ronaldinho for Ganso after the hour mark, while Hulk came on for Hernanes shortly after. Menezes, who wants to go through various permutations in the two years before Brazil host the FIFA World Cup, could afford to use this friendly as a test for some home-based players, like Neymar.

And on 74 minutes the Santos starlet saw his curling shot into the far corner saved by Begovic in a move set up by Ze Elias. Hulk fluffed a gilt-edged chance late on when he missed the ball completely after being set up by Alves.

But Brazil, who looked more dangerous following the introduction of Lucas Moura for Leandro late on, ended the night on a fortuitous high when Bosnia's Sasa Papac, who plays his club football for Scottish champions Rangers, turned the ball into his own net after Hulk had fired into the area.

As FIFA World Cup hosts, Brazil have no qualifiers to go through and are therefore honing their preparations for 2014 on a diet of friendly matches. There are fixtures to come later this year against Denmark, USA, Mexico and Argentina, while they are also targeting a strong Olympic showing in London, having never landed gold to date.