The undocumented migrants, who came from El Salvador, Guatemala and Honduras, were locked up in "overcrowded conditions" in a house in a remote area in the southeastern state of Tabasco, the attorney general's office said in a statement.
Authorities found them after receiving an anonymous tip, it said yesterday.
Two people were arrested on kidnapping charges. The migrants were handed over to immigration authorities.
Hundreds of thousands of migrants cross Mexico each year seeking to reach the United States.
They often travel in perilous conditions, prey to human traffickers known as "coyotes" and drug gangs that charge them "taxes" to cross their turf.
Last month,10 migrants suffocated to death in the back of a truck that was found in a Walmart parking lot in San Antonio, Texas, just across the border.
Disclaimer: No Business Standard Journalist was involved in creation of this content