People on buprenorphine maintenance treatment (BMT) commonly present cognitive deficits that have been associated with illicit drug use and dropout from buprenorphine treatment. This study has compared cognitive responses to the Stroop Task and the Continuous Performance Task (CPT) among individuals on BMT, with recent drug use, and healthy controls and explored the associations between cognitive responses and drug use, craving, and buprenorphine use among participants on BMT. The participants were 16 individuals on BMT and 23 healthy controls. All participants completed a 60 min laboratory session in which they completed the Stroop Task and the CPT, a saliva drug test, a brief clinical history that collected substance-use- and treatment-related information, and the Opioid Craving Scale. The results showed that the BMT participants presented more commission errors (MBMT participants = 2.49; Mhealthy controls = 1.38; p = 0.048) and longer reaction times (MBMT participants = 798.09; Mhealthy controls = 699.09; p = 0.047) in the Stroop Task than did the healthy controls. More days on buprenorphine were negatively associated with reaction time in the CPT (-0.52) and the number of commission errors (-0.53), simple reaction time (-0.54), and reaction time correct (-0.57) in the Stroop Task. Neither drug use nor craving was significantly associated with the results for the cognitive tasks. Relative to the control participants, the BMT individuals performed worse in terms of longer reaction times and more commission errors in the Stroop Task. Within the BMT participants, longer times on buprenorphine were associated with better cognitive results in terms of faster reaction times for both tasks and lower commission errors for the Stroop Task.