The social media giant said that the information was used in its "tailored audiences and partner audiences advertising system," which allows companies to target ads to users based on the firms' own marketing lists.
When an advertiser uploaded its marketing list, some users were being matched to those lists based on their security email or phone number.
"This was an error and we apologize," Twitter said, adding that it "cannot say with certainty how many people were impacted."
The San Francisco-based company insisted that no data was shared externally and that as of September 17 the issue had been resolved.
"We're very sorry this happened and are taking steps to make sure we don't make a mistake like this again," Twitter said.
Twitter made a similar public apology in July, admitting that it may have shared data from its mobile app users, including country codes and ads engagement, with advertising partners "even if you didn't give us permission to do so."
--------------------------------------------------------------------------------------------------------