In most state, a person must have effective custody and control over the drugs in order to be in "possession". A passenger in a car is usually deemed to have constuctive possession.
The only way to avoid prosecution in this situation is for the driver to fully admit that the drugs were his, that the passenger had nothing to do with it, and the passenger did not know they were in the car. At some point (with a lawyer), your boyfriend will have to explain the situation.
Here's the problem, prosecutors are reluctant to believe these stories, because they assume it's just one party to a crime trying top help out a buddy. Both versions will have to make sense given the circumstances.
All of this would impact sentencing greatly, especially if the charges are dropped or reduced.
Your boyfrind will have to discuss all of this with his attorney. He absolutely should not talk about it with anyone else, not the police, no one other than his attorney. If at all possible, I would recommend that you work towards hiring a good private attorney that has experience in the court that your boyfriend will appear. Those relationships are invaluable.
I hope this helps.
DISCLAIMER: Answers from Experts on JustAnswer are not substitutes for the advice of an attorney. JustAnswer is a public forum and questions and responses are not private or confidential or protected by the attorney-client privilege. The Expert above is not your attorney, and the response above is not legal advice. You should not read this response to propose specific action or address specific circumstances, but only to give you a sense of general principles of law that might affect the situation you describe. Application of these general principles to particular circumstances must be done by a lawyer who has spoken with you in confidence, learned all relevant information, and explored various options. Before acting on these general principles, you should hire a lawyer licensed to practice law in the jurisdiction to which your question pertains.
The responses above are from individual Experts, not JustAnswer. The site and services are provided “as is”. To view the verified credential of an Expert, click on the “Verified” symbol in the Expert’s profile. This site is not for emergency questions which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service (last updated February 8, 2012).