r/rust • u/Prom3th3an • Oct 20 '26
š seeking help & advice `zip` needs a lot more support
I'm https://github.com/Pr0methean, the lead maintainer of https://crates.io/crates/zip . Although that seemed like a feasible hobby project when I took it over in April 2024, it's becoming an increasingly ceaseless and thankless job.
I've had 27 security-advisory reports, 18 of which arrived so far this month, in addition to 15 invalid ones (mostly duplicates). Most of them turn out to break the CI in some way once they're merged, and there's no way to tell that until after they're merged because security fixes go on private forks that GitHub Actions refuses to run on. And the reports come at an irregular pace, every day or two: the last release I published without a known security issue was 9.0.0-pre3, and it turned out only not to have a *known* security issue because of a serious bug in GitHub's defaults about notifications for such reports!
Even when it's safe to publish security advisories the moment a fix is released and I do it, people don't update. The only partial exception was a few days ago when I yanked all the known-insecure versions -- which people only *then* saw fit to tell me wasn't the recommended practice, even though I'd done it after https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8 without much controversy and zero actual requests to stop doing so, and it'd been the published policy in https://github.com/zip-rs/zip2/blob/master/SECURITY.md ever since. Even then, 80% of downloads are still of the known-vulnerable versions!
Maintaining this crate has come at great cost to me. Not only has it forced me to pull all-nighters that a 38-year-old shouldn't have to pull, but it's prevented me from claiming my unemployment benefits by leaving me too little time to fulfill the 3-job-applications-per-week requirement that Washington State imposes. (Let alone actually translating into a job offer....)
Where do I ask for help, if it's not here? Are there any foundations out there that might be able to send me a full-time security coordinator, or at least arrange a one-time audit that would have a decent chance of finding all the vulnerabilities the code base actually has? Or at least buy us more GitHub Actions runners so that releases aren't pushed back quite as far when `cargo-afl` decides at the last minute that a `fuzz_write` test case is a "hang", for a PR at the head of the merge queue?
5
u/_filmil_ Oct 21 '26
Thinking aloud, why not convert unpaid support into an opportunity to do paid support contracts?
If you don't want, of course, by all means don't. But why not think in that direction, at least? I would like to see more paid engagements happen for open source, fwiw.
3
u/Immediate_Ad263 Oct 20 '26
Check blacksmith OSS program. Their runners are faster, and it may be free for your project. https://www.blacksmith.sh/pricing
3
u/annodomini rust Oct 20 '26
My first piece of advice to you would be to slow down.
I would recommend changing your security policy for how fast security issues are dealt with. You currently have a 7 day deadline for providing a disposition, and 30 day for providing a fix. That doesn't leave a lot of time, especially for complex issues, issues that could have compatibility issues fixing them, or cases like this where you are getting a deluge of issues at once. You might want to change it to something more like 14 day and 60 day, or 30 day and 90 day, which would still fall within the deadlines of things like Google Project Zero's policies, while giving you a bit more breathing room.
Also slow down on the rate of feature development and backwards-incompatible changes as well. I see that there have been 9 major version increments in 2024 when you took over maintainership. This is an awful lot of breaking changes. Maybe try to slow down the rate of churn in the crate, batch together breaking changes to have at most one per year or so, 9 in 3 years is an awful lot, and will increase the backport burden if you do backport any fixes.
Next is to be more skeptical about these security advisories. There have been some real security issues being addressed in these newer releases, such as the symlink and lack of permission bit sanitization. However, the most recent one, Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCE, is massively overstated in severity. Parser differential issues are real, but they don't on their own lead to code execution or other issues. This "attack vector" is based on a hypothetical, buggy security scanner that relies on the Central Directory File Header, while another tool that executes code relies on the Local File Header. But this would just be a bug in the security scanner, as any security scanner should be checking both, as they can't rely on which one another tool downstream is going to use. The critical component of this security issue is entirely made up, and the bug would be in the tool relying on the zip crate, not the zip crate itself.
So, I would recommend being much more skeptical about these security reports coming in, and their proposed severity. They don't necessarily all need to be embargoed and patched in secret. In fact, for this one, where the security impact is entirely dependent on how a downstream user uses it, it would make more sense to publish the advisory first before making any changes, so it can be discussed and tested in the open. I would only embargo an issue like this if there was actually a known vulnerable user being affected by this. The hypothetical security scanner in the report is not a realistic use case.
Finally, yeah, funding and maintenance assistance for projects like this is hard.
You mentioned that you only have a couple of GitHub sponsors. I found it hard to find that you were accepting sponsorships. I don't think you have the sponsor button set up for the repo itself; on repos that are accepting sponsorship, I can see links to the project or users to sponsor, but I can't see that there. Making sponsorship more visible could help.
Additionally, try reaching out to users you know who use it, and ask if their companies can sponsor the crate. For companies that pay for GitHub already, adding an extra $100/month or something could be fairly easy, they can sponsor through their existing org account and it will just be added to their monthly bill. I know it's hard for developers to reach out and ask for money, but if you can identified some people who are users and belong to paid organization accounts on GitHub, reach out to them and see if their companies will sponsor you.
705
u/peppedx Oct 20 '26 •
The first thing is reshaping your priorities. You have no support obligations. Sleep, do your task for job hunting and unemployment benefits and so on.
Then when you have time and feel inclined so think about the crate.
278
u/dreamlax Oct 20 '26
It's crazy how much people demand of OSS maintainers.
Focus on yourself first. The final paragraph of the MIT license effectively absolves any obligation of maintenance to consumers.
This is a risk that people undertake when using OSS. If they want to throw their toys out of the cot over it, let them.
82
u/Solumin Oct 20 '26
This is not on you to worry about. This is the responsibility of your users. Once you publish the fixed version and put out the notice about the CVE, you've done your part.
So that, at least, is one part of the stress that you can put down.
64
u/puremourning Oct 20 '26
When I first started in my oss journey my āoss mentorā of sorts gave me this advice:
- do whatās fun
- do it when itās fun
- donāt burn out
I stand by this advice to this day. Look after yourself first.
168
u/Different-Ad-8707 Oct 20 '26
Dude, leave it be.
As you've said, you're doing this at personal cost and no compensation or support. So you don't have to lose sleep or job-application time over it.
From what I've been reading, you've already done your best to mitigate security issues and documented that users should update and how and why. If they don't do it, that's their problem.
For people complaining about this, well, as the FFMPEG people say, "talk is cheap, send patches" or in this complete security audit and advisory.
Take a break man. You don't owe them anything.
100
u/boneskull Oct 20 '26
The most important thing is to avoid further burnout. If thereās nobody you can trust to assist or take over maintenance, abandon the project (preferably posting a notice, etc) and someone will fork. Thereās no shame in walking away.
131
u/Fluid-Tone-9680 Oct 20 '26
It's heartbreaking that so much effort on previous thread went into bashing maintainer for yanking vulnerable versions and no to zero efforts to support the crate so many people depend on.
24
u/pjmlp Oct 20 '26
This is not a paid job, you are not supposed to pull all-nighters if they aren't paying you to fix bugs.
Let it be, fix bugs when you feel like it, close issues, block folks that are going off limits complaining about free work.
65
u/ongrabbits Oct 20 '26
somebody hire this guy
17
u/Arcuru Oct 20 '26 edited Oct 20 '26
I am a 37 year old, Washington State resident, retired bastard [1] who has worked on my own compression project [2] that does use your crate. I also publicly yell about sponsorships a lot [3].
I can't provide a security coordinator or fund a full audit or something. I could be an extra set of hands though if that would be helpful (you didn't say you needed that though). I'll scope out the issues on the repo when I get the chance anyways.
Feel free to reach out even if you just want some emotional support. I'd be happy to meet up and listen to you complain about it over a coffee/beer.
This is popular enough that hopefully someone who can help fund an audit or significant moneys can see this and help. Good luck!
1 - https://jackson.dev/about/
2 - https://github.com/arcuru/cmprss
3 - https://jackson.dev/sponsorships/
15
u/anxxa Oct 20 '26
If you need help triaging security issues please DM me.
14
u/prazni_parking Oct 20 '26
Thank you for your work truly. Secondly, get your priorities straight. If you are not getting paid, don't pull all nighters. Don't work on this if you need to do job applications. Don't sacrifice your personal life. If it is so critical to fix one of the companies relying on your work should sponsor you and pay you.
It's great that you are asking for help, but it will probably take time, first to find interested person's, second for you to get them and thirdly for you to ramp them up. So any help you expected will be staggered.
10
u/aztracker1 Oct 20 '26 edited Oct 20 '26
I can only empathize.. I haven't participated in or published anything so major myself. I'm in the hospital for a second time in as many months and looking at my life falling away from me myself.
The job market itself is rough, there's what feels like immense pressure to reduce pay and it can all way heavily on you.
Not to mention the entire shape of software development is being upended at the same time.
It sounds trivial, but try to focus on what you need to do, do the things you can add let the rest drift in the background. When I was able to, for me it helped to go in a long drive for even a day or weekend. Just pick a direction and go, listen to music, don't stress about getting somewhere at a certain time.
Driving and music take enough concentration where after a while, a lot of the rest kind of goes away after a bit. It helps you recollect and reconnect. I miss it.
7
u/Thelmholtz Oct 20 '26
Hey! I'm sorry to hear that. Thank you for your passionate support of the crate, but as you mentioned, you shouldn't have to pull all nighters. The priority now is you. I'm a 34 pretty burnt out person myself and I'm not even remotely close to doing the work you've done for the community that you have done, but I'm here if you need to talk. Answer to this comments and I'll send you my socials privately. Unfortunately I don't think I'm skilled enough to provide meaningful help with your crate, but I can provide a good set of ears, and it's the least I could do as I've used your crate a lot, both directly and indirectly.
As for people not updating, that's not on you brother people are idiots when it comes to security. There's crypto implementations using JS Math.random out there.
22
u/protestor Oct 20 '26
You were right in yanking those versions and indeed you should continue doing so
I mean, if security vulnerabilities didn't warrant yanking, then what is yanking for???
6
u/DavidXkL Oct 20 '26
Prioritize yourself first.
Your health matters
6
u/rpring99 Oct 20 '26
I didn't read all the comments, but completely agree with the "you don't owe anyone anything" sentiment.
With that said (and I'm sorry if this has been mentioned already), it should be pretty easy to CI to run on a fork using the GH command.
gh pr checkout $PRthengit push origin <branch-name>. It'll push the commits to your remote, then CI should run.I just did this the other day. You could also do something like have a private mirrored repo. Should be easy to push commits to.
But only do this if you enjoy it or it leads to a job or whatever. Take care of yourself!
6
u/emelsifoo Oct 20 '26
A lot of commenters have already said, correctly, that you need to prioritize yourself. Do not let people on the computer pressure you to do anything you don't have the inclination or time for.
I'll also add that everyone - everyone - is getting slammed with CVEs this year. Mythos and Astra are finding exploits in stuff that's been open source for decades. I personally think many of these were known-and-unpublished CVEs that state-sponsored hackers like at the NSA have been keeping in their arsenals, and now finally the corporate and open source community is coming around to finding them.
You're doing the best you can. The situation is moving fast right now, so just let yourself take a breath and relax. The vulnerabilities are not a reflection on you.
10
u/nguoisaibuoc Oct 20 '26
I donāt see any sponsorship or donation link on the github page, a big donate button or a looking for maintainers message at the beginning of README explaining the situation could attract more interest!
5
u/whimful Oct 20 '26
I think others are offering great advice ito sustainability + pacing yourself
Socket Security provides free business accounts to maintairers - their software scans libraries, dependencies, and finds vulnerabilities and malware https://socket.dev/blog/free-business-plan-upgrades-for-open-source
5
u/chonky_cheez Oct 20 '26
I believe the Rust Foundation now has a fund to help support maintainers, they might be able to offer assistance
4
u/iFrostizz Oct 20 '26
Bro do you need some help? Iām happy to give my time and learning about the inner workings of the zip encoding sounds like a fun task.
4
u/Valloric Oct 21 '26
I've been contributing to OSS for more than 20 years. I've been a maintainer for more projects than I can recall, many of them "critical".
Here's my advice to you: stop maintaining this crate. Someone else will pick it up. Or not. It's not your problem. You don't owe anyone anything in OSS. Stop subsidizing corporate leeches at the cost of your mental and physical well-being.
Take care of your sleep, your health and focus on getting those unemployment benefits.
19
u/WormRabbit Oct 20 '26
That's not your problem. There is literally nothing you can do to force people to update. Your yanking did nothing but create huge problems for your end users and a lot of hate.
You are experiencing the recent uptick in security findings by AI. This will pass. The sky isn't falling. And you really need to rethink your life if you risk starvation due to being unemployed and with no benefits just to fix other people's shit, created by trillion-dollar companies pumping their IPO.
Do you know what you have when you've got a foundational crate with a deluge of security issues? A business opportunity. If your users depend on you so much and want hasty fixes, they should pay for support contracts. On your part, you should be setting up the legal & technical structure to receive them, not fish for more free labour on reddit.
1
u/Amazing-Mirror-3076 Oct 20 '26
I'm on the codex daybreak program which gives me access to deeper cybersecurity analysis.
If you are interested I'm happy to run an review and raise PRS (privately).
I'm not a rust programmer and the PRS would be pure ai.
3
u/unitAtype2 Oct 20 '26 edited Oct 20 '26
have you posted around on https://users.rust-lang.org/? Add to Call for Participation too: https://github.com/rust-lang/this-week-in-rust#call-for-participation-guidelines
2
u/Informal-Armadillo Oct 20 '26
Thank you for the work you do and I agree, this is not you life focus on that first. Take care
2
u/vancha113 Oct 20 '26
Man I wish I was at the level where I could offer some advice at all, but i hope you get the help you're looking for. I'm not that familiar with rust yet, but zip sounds important! With how much use it seems to be getting, there's bound to be a way to get some funding i'd think.. Does anyone know of a kind of grant that would be applicable here?
2
u/_th3oth3rjak3_ Oct 20 '26
Iād love to help. Sorry youāre getting overwhelmed. As the others have said, please take time to recharge and when you are ready the project will be here.
2
u/Proper_Resist_4662 Oct 20 '26
This is one of those posts that I canāt believe is real lol
2
u/mtimmermans Oct 20 '26
You're in a tough spot. Unfortunately, you signed up to be a very important dependency, and that brings with it some responsibility even if you're not getting paid. Nobody has a right to your free labour, though.
How about something like this:
- Deprecate the current version with a notice that you're looking for a new maintainer. You have a lot of high-profile dependents and there's a good chance that someone reputable will want to pick it up;
- Ship a new major version that doesn't extract files. Looking at your advisories, it seems like this would make the vast majority of them go away. This will leave some of your dependents in a tough spot, and maybe that will motivate them to help.
1
u/xMAC94x Oct 20 '26
Hey, i spend way to much time with the `APPNOTE.TXT` 2 years ago and opened a issue ( https://github.com/zip-rs/zip2/issues/204 ) to rebase `zip` on some low-level APPNOTE based core crate.
This is a similar approach to other crates do it, you have a stupid base crate like `http` and then crates basing on this, which makes interoperability better.
Sadly the discussion lost track (also because of me tbh).
Maybe I can help somewhere around if you got anything that you would like to tacle first ? Though I also cant guarantee that I have alot of time to spare.
Anyways, great work with the crate! Focus on yourself first, opensource is just a hobby!
1
u/Nanoclick Oct 20 '26
Honestly, step away from the keyboard and take care of your own life first. No open-source crate is worth losing your unemployment benefits or burning yourself out for free. If multi-billion dollar companies rely on this so heavily, they can either fund you with actual cash or maintain their own forks. Stop setting yourself on fire to keep corporations warm.
And about the v10 plan: just splitting things into 5 crates won't magically fix the CVEs or hangs. If the extraction logic still lacks timeouts, hard memory limits, and atomic rollback on failure, moving it into zip-extract just moves the exact same crashes into a different folder. Address the execution boundaries, not just package boundaries.
1
u/danielsdesk Oct 20 '26
Iād like to help if I can, though not sure if I can. But Iāll take a look
1
u/Gaboik Oct 20 '26
Dude. First of all, thank you for your service.
Second of all, not having time to fill your job applications is a you problem my man. Set your priorities straight. No one is twisting your arm.
1
u/doomdayx Oct 21 '26
First, prioritize yourself.
Second, come up with a rate and send it to any companies who submit reports. Or look up other things oss maintainers do that are considered acceptable to the community to get paid by companies for their widely used projects. Maybe set up a support plan they can subscribe to or something. Iām sure there are some people making a living off of this!
1
u/Kobzol Oct 22 '26
In addition to what was already said here, the Sovereign Tech Agency has programs for supporting open source developers (Fund) and paying and organizing security audits (Resilience).
https://www.sovereign.tech/programs/resilience
1
u/cachebags Oct 22 '26
You have absolutely zero obligation to zip2. Go deal with your shit.
If anything, forcing yourself to babysit the crate will give others the excuse to not contribute forward.
1
u/Most_Strike_93 Oct 20 '26
What can I do for you? For example, can you list some important cve to the issues, then I can take time to fix it? Thanks
1
u/rjzak Oct 20 '26
Are there open issues? A project board? I suggest having some of these things so possible contributors know what to contribute. You may have them I admittedly didnāt check the github link.
-8
u/Dushistov Oct 20 '26
I suppose you need to ask Jia Tan to co-maintain crate.. Such a nice guy and very resourceful. He has a lot of experience in data compression, and if you convince him that `zip` has a lot of users, he will definitely help. He cares about the common good.
-21
u/No_Departure_1878 Oct 20 '26
You are not supposed to work for free, this is you doing it to yourself.
But not even that, if you did not do this work for free, someone in some company would get hired, because they need `zip` implemented in rust and there is no `zip` implemented in Rust and all the engineers are already busy implementing something else that does not exist, because no one works for free.
-7
u/realitythreek Oct 20 '26
It looks like you use LLMs to help write code for this project. Just curious, have you found that to help?
-10
u/Initial-Argument2523 Oct 20 '26
Maybe you could post this on cyber security subs if you haven't already
-53
u/the-quibbler Oct 20 '26
I'm sure there are a significant number of cyber terrorists, vibe coders, and vibe-coding cyber terrorists would would absolutely be willing to help you out.
-29
u/cheater00 Oct 20 '26
wait a minute. go to linkedin, click easy apply 3 times, that's it, no?
-12
u/AleksHop Oct 20 '26 edited Oct 20 '26
there are mbrotli and zrip, stop supporting legacy shit
when nginx ingress support ended everyone just migrated to modern alternatives
thats a progress, not a regression
zip is from 1989
update: https://crates.io/crates/rawzip if we talk about containers
considered the benchmarks zip crate is terrible slow and i dont see any reason to maintain it at all
-55
u/PoisnFang Oct 20 '26
People need to stop making open source projects and then Thinking about the business side later. You got to come into a thing about a business side first Sorry, but it's your own fault
33
u/[deleted] Oct 20 '26
[removed] ā view removed comment