Yes, hackers can attack the RSA algorithm. However, being attacked is not equal to weak protection.
Mostly, there are two ways employed for attacking RSA :
Brute force : Includes all potential secret keys.
Mathematical attacks : In this, we use different techniques that are similar to factor the product of two primes.