The question is, do you really need open source? Or just no cost?
If the latter, then Windows Sharepoint Services (WSS) is a pretty good DMS. It's free from Microsoft, and you can write .NET code to enhance it if you want. It doesn't have all the Office Sharepoint stuff, but it's pretty good.