Bamba joins as a player but will also be working as a coach with the club’s academy.
The 36-year-old started training with Boro last month and has been trying to build up his fitness following a break from football after he was diagnosed with Non-Hodgkin lymphoma cancer earlier this year.
Boss Neil Warnock said: “Initially Sol had asked if he could come and train with us, and I was more than happy. He’s a great lad to have around.
"When we were away in Cornwall he was at Rockliffe and helped with the U23s and U18s, and everyone was really impressed with him.
“I have to be honest, I didn’t expect him to look as sharp as he has done after everything he's been through, but he’s done remarkably well.
"At the moment the priority for him is to concentrate on his fitness and being in the squad, but we want him to be involved with the U23s as well. I feel he's just the type of person we need to be involved with that age group.
“He has bags of experience and he will be a real asset for us both on and off the pitch. I'm delighted to have him on board."
We gathered the best of today’s transfer speculation below...
1. Arsenal and Villa join race to sign Fulham star
Arsenal and Aston Villa have joined Everton and several other clubs in the race to sign Fulham’s Andre-Franck Zambo Anguissa. The midfielder has been heavily linked with a move away from Craven Cottage this summer following the club’s relegation. (The 72)
2. Nottingham Forest struggling to tie down star amid Premier League interest
Nottingham Forest are struggling to tie Brennan Johnson down to a new contract. Leeds United, Leicester and Burnley are reportedly interested in the 20-year-old. (The Athletic)
Photo: Catherine Ivill
3. Ipswich Town will listen to offers for last season’s top scorer
Ipswich Town are expected to listen to offers for James Norwood this summer. The striker is falling down the pecking order after Paul Cook brought in Joe Pigott, Conor Chaplin and Macauley Bonne. (Football League World)
Photo: Nathan Stirk
4. Reading preparing triple transfer swoop for midfield trio
Reading are expected to make moves for Derby County’s Louie Sibley, former Birmingham midfielder Alen Halilovic and Manchester United’s James Garner this summer. Sibley is the most likely to arrive, with the latter two attracting interest elsewhere. (Football League World)
Photo: Tony Marshall